Skip to content

CloudWatchLogsClient.update_anomaly

rboto-cloudwatch-logs==0.4.0 · Service index · Types

Model summary (excerpt): Use this operation to suppress anomaly detection for a specified anomaly or pattern. If you suppress an anomaly, CloudWatch Logs won't report new occurrences of that anomaly and won't update that anomaly with new data. If you suppress a pattern, CloudWatch Logs won't report any anomalies related to that pattern. You must specify either anomalyId or patternId , but you can't specify both...

Install and imports

python -m pip install "rboto[cloudwatch-logs]==0.4.0"
from rboto import CloudWatchLogsClient
from rboto_cloudwatch_logs.types import (
    SuppressionPeriod,
    SuppressionType,
)

Signature

async def update_anomaly(
    *,
    anomaly_detector_arn: str,
    anomaly_id: str | None = None,
    pattern_id: str | None = None,
    suppression_type: SuppressionType | None = None,
    suppression_period: SuppressionPeriod | None = None,
    baseline: bool | None = None,
) -> None: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
anomaly_detector_arn Yes The ARN of the anomaly detector that this operation is to act on.
anomaly_id No If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.
pattern_id No If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.
suppression_type No Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED , you must also specify a suppressionPeriod . If you specify INFINITE , any value for suppressionPeriod is ignored.
suppression_period No If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.
baseline No Set this to true to prevent CloudWatch Logs from displaying this behavior as an anomaly in the future. The behavior is then treated as baseline behavior. However, if similar but more severe occurrences of this behavior occur in the future, those will still be reported as anomalies. The default is false

Output

None.

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

SuppressionPeriod, SuppressionType

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_cloudwatch_logs.exceptions:

InvalidParameterError, OperationAbortedError, ResourceNotFoundError, ServiceUnavailableError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model