Skip to content

UpdateAnomalyRequest

Source code in docs_src/capo_cloudwatch_logs/types/update_anomaly_request.py
class UpdateAnomalyRequest(TypedDict, closed=True):
    anomaly_id: NotRequired["capo_cloudwatch_logs.types.anomaly_id.AnomalyId"]
    """<p>If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListAnomalies.html">ListAnomalies</a> operation.</p>"""
    pattern_id: NotRequired["capo_cloudwatch_logs.types.pattern_id.PatternId"]
    """<p>If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListAnomalies.html">ListAnomalies</a> operation.</p>"""
    anomaly_detector_arn: (
        "capo_cloudwatch_logs.types.anomaly_detector_arn.AnomalyDetectorArn"
    )
    """<p>The ARN of the anomaly detector that this operation is to act on.</p>"""
    suppression_type: NotRequired[
        "capo_cloudwatch_logs.types.suppression_type.SuppressionType"
    ]
    """<p>Use this to specify whether the suppression to be temporary or infinite. If you specify <code>LIMITED</code>, you must also specify a <code>suppressionPeriod</code>. If you specify <code>INFINITE</code>, any value for <code>suppressionPeriod</code> is ignored. </p>"""
    suppression_period: NotRequired[
        "capo_cloudwatch_logs.types.suppression_period.SuppressionPeriod"
    ]
    """<p>If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.</p>"""
    baseline: NotRequired["capo_cloudwatch_logs.types.baseline.Baseline"]
    """<p>Set this to <code>true</code> 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. </p> <p>The default is <code>false</code> </p>"""

anomaly_detector_arn instance-attribute

anomaly_detector_arn: AnomalyDetectorArn

The ARN of the anomaly detector that this operation is to act on.

anomaly_id instance-attribute

anomaly_id: NotRequired[AnomalyId]

If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.

baseline instance-attribute

baseline: NotRequired[Baseline]

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

pattern_id instance-attribute

pattern_id: NotRequired[PatternId]

If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.

suppression_period instance-attribute

suppression_period: NotRequired[SuppressionPeriod]

If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.

suppression_type instance-attribute

suppression_type: NotRequired[SuppressionType]

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.