Skip to content

ListAnomaliesInput

Source code in docs_src/capo_cloudwatchomni/types/list_anomalies_input.py
class ListAnomaliesInput(TypedDict, closed=True):
    time_range: NotRequired[
        "capo_cloudwatchomni.types.intelligence_time_range.IntelligenceTimeRange"
    ]
    """Time window to scope the anomaly search."""
    services: NotRequired[
        "capo_cloudwatchomni.types.intelligence_service_name_list.IntelligenceServiceNameList"
    ]
    """Filter by service names."""
    signal_types: NotRequired[
        "capo_cloudwatchomni.types.anomaly_signal_type_list.AnomalySignalTypeList"
    ]
    """Filter by signal types (e.g. logs, metrics, traces)."""
    max_results: NotRequired["int"]
    """Maximum number of anomalies to return per page."""
    next_token: NotRequired[
        "capo_cloudwatchomni.types.pagination_token.PaginationToken"
    ]
    """Pagination token from a previous response."""
    severity: NotRequired["capo_cloudwatchomni.types.severity.Severity"]
    """Filter by severity level. Anomaly severities are lowercase, so send "high", not "HIGH". One level only; there is no severity list and no minimum-severity filter."""
    source_account_id: NotRequired[
        "capo_cloudwatchomni.types.source_account_id_list.SourceAccountIdList"
    ]
    """Filter by the accounts that produced the signal."""
    anomaly_ids: NotRequired["capo_cloudwatchomni.types.anomaly_id_list.AnomalyIdList"]
    """Optional batch-get filter. When set, anomalies are fetched by ID under the caller's account. Pagination still applies: maxResults bounds the returned anomalies per page; nextToken cursors through the input ID list. An ID that does not exist, or that the caller is not permitted to read, is omitted from items; compare the IDs you requested against the IDs returned across all pages to find them. anomalyIds is mutually exclusive with the other filters (timeRange, services, signalTypes, severity, sourceAccountId) — passing any of them alongside anomalyIds returns a ValidationException. Use a follow-up ListAnomalies call without anomalyIds for filtered queries."""

anomaly_ids instance-attribute

anomaly_ids: NotRequired[AnomalyIdList]

Optional batch-get filter. When set, anomalies are fetched by ID under the caller's account. Pagination still applies: maxResults bounds the returned anomalies per page; nextToken cursors through the input ID list. An ID that does not exist, or that the caller is not permitted to read, is omitted from items; compare the IDs you requested against the IDs returned across all pages to find them. anomalyIds is mutually exclusive with the other filters (timeRange, services, signalTypes, severity, sourceAccountId) — passing any of them alongside anomalyIds returns a ValidationException. Use a follow-up ListAnomalies call without anomalyIds for filtered queries.

max_results instance-attribute

max_results: NotRequired[int]

Maximum number of anomalies to return per page.

next_token instance-attribute

next_token: NotRequired[PaginationToken]

Pagination token from a previous response.

services instance-attribute

services: NotRequired[IntelligenceServiceNameList]

Filter by service names.

severity instance-attribute

severity: NotRequired[Severity]

Filter by severity level. Anomaly severities are lowercase, so send "high", not "HIGH". One level only; there is no severity list and no minimum-severity filter.

signal_types instance-attribute

signal_types: NotRequired[AnomalySignalTypeList]

Filter by signal types (e.g. logs, metrics, traces).

source_account_id instance-attribute

source_account_id: NotRequired[SourceAccountIdList]

Filter by the accounts that produced the signal.

time_range instance-attribute

time_range: NotRequired[IntelligenceTimeRange]

Time window to scope the anomaly search.