MetricMetadata
¶
Source code in docs_src/capo_cloudwatchomni/types/metric_metadata.py
aggregation_temporality
instance-attribute
¶
aggregation_temporality: NotRequired[MetricAggregationTemporality]
Aggregation temporality for the selected metric stream represented by this metadata entry. Present when known, including cumulative for OTel Summary metrics. Absent for Gauge metrics or when the information is unavailable.
attributes
instance-attribute
¶
attributes: NotRequired[MetadataAttributeMap]
Per-metric qualifying attributes used to query this metric's telemetry. Keys are the metric store's own label names, not bare OTel attribute names: service identity arrives as "@resource.service.name" and "@resource.service.namespace", and the instrumentation scope as "@instrumentation.@name". Span-derived metrics can additionally carry the service as a bare data point "service.name" label. Cloud provider, account and region are not repeated per metric — read those from the node. Values are RAW, deliberately NOT the node's merged identity, so a selector built from them matches the emitted series. A merged node can carry different values per metric, which is why these live here rather than on the node.
metric_type
instance-attribute
¶
metric_type: NotRequired[str]
OTel metric kind: "gauge", "sum", "histogram", "exponential_histogram", or "summary" (CloudWatch-vended metrics carry the same kinds). Absent when the producer did not report one.
monotonicity
instance-attribute
¶
monotonicity: NotRequired[MetricMonotonicity]
Whether the selected Sum metric stream represented by this metadata entry is a non-negative accumulation. Absent for metrics other than Sum or when the information is unavailable.
operations
instance-attribute
¶
operations: NotRequired[MetricOperationList]
Names of the operations this metric measures. Each is a key in the node's operationDetails, whose identifier sets select that operation on this metric. Absent when the metric measures no operation or when the association is unknown.
preferred_stat
instance-attribute
¶
preferred_stat: NotRequired[str]
The statistic to chart or alarm on, such as "p99" or "Sum". Free-form and frequently absent.
semantics
instance-attribute
¶
semantics: NotRequired[MetricSemantics]
What the metric means and the unit it is reported in.