Skip to content

Anomaly

Source code in docs_src/capo_cloudwatchomni/types/anomaly.py
class Anomaly(TypedDict, closed=True):
    anomaly_id: "capo_cloudwatchomni.types.anomaly_id.AnomalyId"
    """The unique identifier of the anomaly episode."""
    service: "capo_cloudwatchomni.types.service_name.ServiceName"
    """The monitored service the anomaly was detected on."""
    signal_type: "capo_cloudwatchomni.types.anomaly_signal_type.AnomalySignalType"
    """The kind of telemetry signal the anomaly was detected in."""
    anomaly_type: NotRequired["str"]
    """The analyzer-specific classification of what kind of anomaly this is."""
    severity: NotRequired["capo_cloudwatchomni.types.severity.Severity"]
    """The severity of the anomaly as most recently evaluated."""
    description: NotRequired[
        "capo_cloudwatchomni.types.anomaly_description.AnomalyDescription"
    ]
    """A human-readable description of the detected behavior. Sensitive customer content."""
    last_seen_at: NotRequired["datetime.datetime"]
    """Timestamp of the most recent occurrence in this episode, serialized as epoch seconds."""
    first_seen_at: NotRequired["datetime.datetime"]
    """Timestamp of the first occurrence in this episode, serialized as epoch seconds."""
    details: NotRequired["capo_cloudwatchomni.types.anomaly_details.AnomalyDetails"]
    """Arbitrary key-value details. Nested values are flattened to strings. Sensitive customer content."""
    title: NotRequired[
        "capo_cloudwatchomni.types.anomaly_description.AnomalyDescription"
    ]
    """Short human-readable label assigned by the analyzer. Sensitive customer content."""
    occurrence_count: NotRequired["int"]
    """Total occurrences merged into this anomaly episode."""
    source_account_id: NotRequired["str"]
    """Account that produced the signal (may differ from owner for centralized monitoring)."""
    source_region: NotRequired["str"]
    """Region where the source signal was produced."""
    node_id: NotRequired["str"]
    """Topology graph node ID resolved at write time. Absent when the topology resolver could not match the service to a graph node."""
    node_type: NotRequired["capo_cloudwatchomni.types.node_type.NodeType"]
    """Whether the node is a service, a resource, or a remote service."""
    cloud_provider: NotRequired["str"]
    """Cloud provider from the topology node identity (e.g. "aws", "azure")."""
    evidence_samples: NotRequired[
        "capo_cloudwatchomni.types.evidence_list.EvidenceList"
    ]
    """Up to 100 timestamped per-occurrence samples."""

anomaly_id instance-attribute

anomaly_id: AnomalyId

The unique identifier of the anomaly episode.

anomaly_type instance-attribute

anomaly_type: NotRequired[str]

The analyzer-specific classification of what kind of anomaly this is.

cloud_provider instance-attribute

cloud_provider: NotRequired[str]

Cloud provider from the topology node identity (e.g. "aws", "azure").

description instance-attribute

description: NotRequired[AnomalyDescription]

A human-readable description of the detected behavior. Sensitive customer content.

details instance-attribute

details: NotRequired[AnomalyDetails]

Arbitrary key-value details. Nested values are flattened to strings. Sensitive customer content.

evidence_samples instance-attribute

evidence_samples: NotRequired[EvidenceList]

Up to 100 timestamped per-occurrence samples.

first_seen_at instance-attribute

first_seen_at: NotRequired[datetime]

Timestamp of the first occurrence in this episode, serialized as epoch seconds.

last_seen_at instance-attribute

last_seen_at: NotRequired[datetime]

Timestamp of the most recent occurrence in this episode, serialized as epoch seconds.

node_id instance-attribute

node_id: NotRequired[str]

Topology graph node ID resolved at write time. Absent when the topology resolver could not match the service to a graph node.

node_type instance-attribute

node_type: NotRequired[NodeType]

Whether the node is a service, a resource, or a remote service.

occurrence_count instance-attribute

occurrence_count: NotRequired[int]

Total occurrences merged into this anomaly episode.

service instance-attribute

service: ServiceName

The monitored service the anomaly was detected on.

severity instance-attribute

severity: NotRequired[Severity]

The severity of the anomaly as most recently evaluated.

signal_type instance-attribute

signal_type: AnomalySignalType

The kind of telemetry signal the anomaly was detected in.

source_account_id instance-attribute

source_account_id: NotRequired[str]

Account that produced the signal (may differ from owner for centralized monitoring).

source_region instance-attribute

source_region: NotRequired[str]

Region where the source signal was produced.

title instance-attribute

title: NotRequired[AnomalyDescription]

Short human-readable label assigned by the analyzer. Sensitive customer content.