MetricPublishingSettingsinterface
Controls the publishing of the metric.
Properties (4)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| additionalAttributes⚓︎ | { [x: string]: unknown } | (() => { [x: string]: unknown }) | x | x | Additional attributes to publish with the values of the metric, specified as key/value
pairs or as a callback returning them (called for every value). Can be specified for a
single metric ( |
| attributeSettings⚓︎ | { [x: string]: MetricAttributeSettings; } | x | x | Controls the publishing of specific attributes, by name. An entry names an attribute by its
flattened (dot-separated) name, or everything nested under it - Can be specified for a single metric ( |
| attributeSettingsMode⚓︎ | AttributeSettingsMode | x | x | How the |
| sample⚓︎ | number | boolean | true | x | Defines sampling probability for the metric. |