Skip to content

Evidence

Source code in docs_src/capo_cloudwatchomni/types/evidence.py
class Evidence(TypedDict, closed=True):
    started_at: NotRequired["datetime.datetime"]
    """Start of the window these figures cover."""
    ended_at: NotRequired["datetime.datetime"]
    """End of the window these figures cover."""
    measurement: NotRequired[
        "capo_cloudwatchomni.types.evidence_measurement.EvidenceMeasurement"
    ]
    """What was measured in this window and how it compared to expectation."""
    detector: NotRequired["str"]
    """The rule that raised this occurrence. May differ between occurrences in the same episode."""
    source: NotRequired["capo_cloudwatchomni.types.evidence_source.EvidenceSource"]
    """What the figures were computed from."""
    sampled_fraction: NotRequired["float"]
    """The trace sampling rate: the share of the service's calls that its raw spans kept, measured over the last hour against a view that counts every call. When `source` is "raw", this is the lowest share measured against any of the service's views. When `source` names a view, it is the share measured against that view. Absent when the view it is measured against (for raw evidence, every view of the service) counted too few calls in the last hour. Present only on trace evidence."""
    top_contributors: NotRequired[
        "capo_cloudwatchomni.types.top_contributor_list.TopContributorList"
    ]
    """What accounted for the anomalous excess, by dimension."""
    omitted_contributors: NotRequired["int"]
    """Contributors with excess beyond those listed in topContributors."""
    telemetry_samples: NotRequired[
        "capo_cloudwatchomni.types.telemetry_sample_list.TelemetrySampleList"
    ]
    """Telemetry recorded in this window. May be absent on older occurrences even when the signal type produces samples, because the total retained per anomaly is bounded and the most recent occurrences are kept."""
    signal_details: NotRequired[
        "capo_cloudwatchomni.types.evidence_details.EvidenceDetails"
    ]
    """Fields specific to the signal type."""

detector instance-attribute

detector: NotRequired[str]

The rule that raised this occurrence. May differ between occurrences in the same episode.

ended_at instance-attribute

ended_at: NotRequired[datetime]

End of the window these figures cover.

measurement instance-attribute

measurement: NotRequired[EvidenceMeasurement]

What was measured in this window and how it compared to expectation.

omitted_contributors instance-attribute

omitted_contributors: NotRequired[int]

Contributors with excess beyond those listed in topContributors.

sampled_fraction instance-attribute

sampled_fraction: NotRequired[float]

The trace sampling rate: the share of the service's calls that its raw spans kept, measured over the last hour against a view that counts every call. When source is "raw", this is the lowest share measured against any of the service's views. When source names a view, it is the share measured against that view. Absent when the view it is measured against (for raw evidence, every view of the service) counted too few calls in the last hour. Present only on trace evidence.

signal_details instance-attribute

signal_details: NotRequired[EvidenceDetails]

Fields specific to the signal type.

source instance-attribute

source: NotRequired[EvidenceSource]

What the figures were computed from.

started_at instance-attribute

started_at: NotRequired[datetime]

Start of the window these figures cover.

telemetry_samples instance-attribute

telemetry_samples: NotRequired[TelemetrySampleList]

Telemetry recorded in this window. May be absent on older occurrences even when the signal type produces samples, because the total retained per anomaly is bounded and the most recent occurrences are kept.

top_contributors instance-attribute

top_contributors: NotRequired[TopContributorList]

What accounted for the anomalous excess, by dimension.