EvidenceMeasurement
¶
Source code in docs_src/capo_cloudwatchomni/types/evidence_measurement.py
baseline_is_new
instance-attribute
¶
baseline_is_new: NotRequired[bool]
True when the expectation came from a newly learned, still-thin baseline, so the comparison is less reliable than usual.
current_value
instance-attribute
¶
current_value: NotRequired[float]
The value observed in this window.
expected_lower
instance-attribute
¶
expected_lower: NotRequired[float]
Lower bound of the expected range. Absent when the detector produces a point prediction instead, or bounds only the other side.
expected_upper
instance-attribute
¶
expected_upper: NotRequired[float]
Upper bound of the expected range. Absent when the detector produces a point prediction instead, or bounds only the other side.
expected_value
instance-attribute
¶
expected_value: NotRequired[float]
The point prediction. Absent when the detector produces a band instead.
period_minutes
instance-attribute
¶
period_minutes: NotRequired[int]
Minutes the figures cover: the aggregation bucket width on most detectors, and the elapsed span of the episode so far on detectors that report running totals.
quantity
instance-attribute
¶
quantity: NotRequired[MeasurementQuantity]
What was measured. Absent on a metric anomaly, where the anomaly itself already names the metric.
sample_count
instance-attribute
¶
sample_count: NotRequired[int]
How many units the figures were computed over — calls for an error rate, turns for a per-turn quantity, events for a log count, buckets for a volume drop. A rate alone cannot distinguish 5 failures in 20 calls from 5 in 20,000.
statistic
instance-attribute
¶
statistic: NotRequired[MeasurementStatistic]
How the quantity was aggregated, as a CloudWatch statistic name — "Sum", "Average", "Maximum", "Minimum", "SampleCount" or a percentile. Absent when nothing aggregated the figure in CloudWatch's sense, as on a derived error rate or request rate.
threshold
instance-attribute
¶
threshold: NotRequired[float]
The value the comparison had to cross for this detector to fire, in the same unit as currentValue. Distinct from expectedLower and expectedUpper, which describe the learned normal range: a detector can fire on a boundary it chose rather than on the edge of that range. Absent whenever the band itself was the boundary, which is every anomaly but a trace one today.
transform
instance-attribute
¶
transform: NotRequired[MeasurementTransform]
Transform applied before comparison. Absent when the raw value was compared.
unit
instance-attribute
¶
unit: NotRequired[MeasurementUnit]
Unit of currentValue, expectedValue, expectedLower and expectedUpper. On a metric anomaly this is the unit CloudWatch published the metric as, so it is absent when the metric was published without one, and on a counted statistic, which has no unit.