Anomaly
¶
Source code in docs_src/capo_cloudwatch_logs/types/anomaly.py
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.