Anomaly

class Anomaly

This structure represents one anomaly that has been found by a logs anomaly detector.

For more information about patterns and anomalies, see CreateLogAnomalyDetector.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies whether this anomaly is still ongoing.

Link copied to clipboard

The ARN of the anomaly detector that identified this anomaly.

Link copied to clipboard

The unique ID that CloudWatch Logs assigned to this anomaly.

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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.

Functions

Link copied to clipboard
inline fun copy(block: Anomaly.Builder.() -> Unit = {}): Anomaly
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String