Skip to content

Anomaly

Source code in docs_src/capo_cloudwatch_logs/types/anomaly.py
class Anomaly(TypedDict, closed=True):
    anomaly_id: "capo_cloudwatch_logs.types.anomaly_id.AnomalyId"
    """<p>The unique ID that CloudWatch Logs assigned to this anomaly.</p>"""
    pattern_id: "capo_cloudwatch_logs.types.pattern_id.PatternId"
    """<p>The ID of the pattern used to help identify this anomaly.</p>"""
    anomaly_detector_arn: (
        "capo_cloudwatch_logs.types.anomaly_detector_arn.AnomalyDetectorArn"
    )
    """<p>The ARN of the anomaly detector that identified this anomaly.</p>"""
    pattern_string: "capo_cloudwatch_logs.types.pattern_string.PatternString"
    """<p>The pattern used to help identify this anomaly, in string format.</p>"""
    pattern_regex: NotRequired["capo_cloudwatch_logs.types.pattern_regex.PatternRegex"]
    """<p>The pattern used to help identify this anomaly, in regular expression format.</p>"""
    priority: NotRequired["capo_cloudwatch_logs.types.priority.Priority"]
    """<p>The priority level of this anomaly, as determined by CloudWatch Logs. Priority is computed based on log severity labels such as <code>FATAL</code> and <code>ERROR</code> and the amount of deviation from the baseline. Possible values are <code>HIGH</code>, <code>MEDIUM</code>, and <code>LOW</code>.</p>"""
    first_seen: "capo_cloudwatch_logs.types.epoch_millis.EpochMillis"
    """<p>The date and time when the anomaly detector first saw this anomaly. It is specified as epoch time, which is the number of seconds since <code>January 1, 1970, 00:00:00 UTC</code>.</p>"""
    last_seen: "capo_cloudwatch_logs.types.epoch_millis.EpochMillis"
    """<p>The date and time when the anomaly detector most recently saw this anomaly. It is specified as epoch time, which is the number of seconds since <code>January 1, 1970, 00:00:00 UTC</code>.</p>"""
    description: "capo_cloudwatch_logs.types.description.Description"
    """<p>A human-readable description of the anomaly. This description is generated by CloudWatch Logs.</p>"""
    active: "capo_cloudwatch_logs.types.boolean.Boolean"
    """<p>Specifies whether this anomaly is still ongoing.</p>"""
    state: "capo_cloudwatch_logs.types.state.State"
    """<p>Indicates the current state of this anomaly. If it is still being treated as an anomaly, the value is <code>Active</code>. If you have suppressed this anomaly by using the <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateAnomaly.html">UpdateAnomaly</a> operation, the value is <code>Suppressed</code>. If this behavior is now considered to be normal, the value is <code>Baseline</code>.</p>"""
    histogram: "capo_cloudwatch_logs.types.histogram.Histogram"
    """<p>A map showing times when the anomaly detector ran, and the number of occurrences of this anomaly that were detected at each of those runs. The times are specified in epoch time, which is the number of seconds since <code>January 1, 1970, 00:00:00 UTC</code>.</p>"""
    log_samples: "capo_cloudwatch_logs.types.log_samples.LogSamples"
    """<p>An array of sample log event messages that are considered to be part of this anomaly.</p>"""
    pattern_tokens: "capo_cloudwatch_logs.types.pattern_tokens.PatternTokens"
    """<p>An array of structures where each structure contains information about one token that makes up the pattern.</p>"""
    log_group_arn_list: "capo_cloudwatch_logs.types.log_group_arn_list.LogGroupArnList"
    """<p>An array of ARNS of the log groups that contained log events considered to be part of this anomaly.</p>"""
    suppressed: NotRequired["capo_cloudwatch_logs.types.boolean.Boolean"]
    """<p>Indicates whether this anomaly is currently suppressed. To suppress an anomaly, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateAnomaly.html">UpdateAnomaly</a>.</p>"""
    suppressed_date: "capo_cloudwatch_logs.types.epoch_millis.EpochMillis"
    """<p>If the anomaly is suppressed, this indicates when it was suppressed.</p>"""
    suppressed_until: "capo_cloudwatch_logs.types.epoch_millis.EpochMillis"
    """<p>If the anomaly is suppressed, this indicates when the suppression will end. If this value is <code>0</code>, the anomaly was suppressed with no expiration, with the <code>INFINITE</code> value.</p>"""
    is_pattern_level_suppression: NotRequired[
        "capo_cloudwatch_logs.types.boolean.Boolean"
    ]
    """<p>If this anomaly is suppressed, this field is <code>true</code> if the suppression is because the pattern is suppressed. If <code>false</code>, then only this particular anomaly is suppressed.</p>"""

active instance-attribute

active: Boolean

Specifies whether this anomaly is still ongoing.

anomaly_detector_arn instance-attribute

anomaly_detector_arn: AnomalyDetectorArn

The ARN of the anomaly detector that identified this anomaly.

anomaly_id instance-attribute

anomaly_id: AnomalyId

The unique ID that CloudWatch Logs assigned to this anomaly.

description instance-attribute

description: Description

A human-readable description of the anomaly. This description is generated by CloudWatch Logs.

first_seen instance-attribute

first_seen: EpochMillis

The date and time when the anomaly detector first saw this anomaly. It is specified as epoch time, which is the number of seconds since January 1, 1970, 00:00:00 UTC.

histogram instance-attribute

histogram: Histogram

A map showing times when the anomaly detector ran, and the number of occurrences of this anomaly that were detected at each of those runs. The times are specified in epoch time, which is the number of seconds since January 1, 1970, 00:00:00 UTC.

is_pattern_level_suppression instance-attribute

is_pattern_level_suppression: NotRequired[Boolean]

If this anomaly is suppressed, this field is true if the suppression is because the pattern is suppressed. If false, then only this particular anomaly is suppressed.

last_seen instance-attribute

last_seen: EpochMillis

The date and time when the anomaly detector most recently saw this anomaly. It is specified as epoch time, which is the number of seconds since January 1, 1970, 00:00:00 UTC.

log_group_arn_list instance-attribute

log_group_arn_list: LogGroupArnList

An array of ARNS of the log groups that contained log events considered to be part of this anomaly.

log_samples instance-attribute

log_samples: LogSamples

An array of sample log event messages that are considered to be part of this anomaly.

pattern_id instance-attribute

pattern_id: PatternId

The ID of the pattern used to help identify this anomaly.

pattern_regex instance-attribute

pattern_regex: NotRequired[PatternRegex]

The pattern used to help identify this anomaly, in regular expression format.

pattern_string instance-attribute

pattern_string: PatternString

The pattern used to help identify this anomaly, in string format.

pattern_tokens instance-attribute

pattern_tokens: PatternTokens

An array of structures where each structure contains information about one token that makes up the pattern.

priority instance-attribute

priority: NotRequired[Priority]

The priority level of this anomaly, as determined by CloudWatch Logs. Priority is computed based on log severity labels such as FATAL and ERROR and the amount of deviation from the baseline. Possible values are HIGH, MEDIUM, and LOW.

state instance-attribute

state: State

Indicates the current state of this anomaly. If it is still being treated as an anomaly, the value is Active. If you have suppressed this anomaly by using the UpdateAnomaly operation, the value is Suppressed. If this behavior is now considered to be normal, the value is Baseline.

suppressed instance-attribute

suppressed: NotRequired[Boolean]

Indicates whether this anomaly is currently suppressed. To suppress an anomaly, use UpdateAnomaly.

suppressed_date instance-attribute

suppressed_date: EpochMillis

If the anomaly is suppressed, this indicates when it was suppressed.

suppressed_until instance-attribute

suppressed_until: EpochMillis

If the anomaly is suppressed, this indicates when the suppression will end. If this value is 0, the anomaly was suppressed with no expiration, with the INFINITE value.