class Amazonite::CloudWatchLogs::Anomaly

Overview

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

For more information about patterns and anomalies, see CreateLogAnomalyDetector.

Included Modules

Defined in:

cloudwatch_logs/anomaly.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(anomaly_id : String, pattern_id : String, anomaly_detector_arn : String, pattern_string : String, first_seen : Int64, last_seen : Int64, description : String, active : Bool, state : State, histogram : Hash(String, Int64), log_samples : Array(LogEvent), pattern_tokens : Array(PatternToken), log_group_arn_list : Array(String), pattern_regex : String | Nil = nil, priority : String | Nil = nil, suppressed : Bool | Nil = nil, suppressed_date : Int64 | Nil = nil, suppressed_until : Int64 | Nil = nil, is_pattern_level_suppression : Bool | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def active : Bool #

Specifies whether this anomaly is still ongoing.


[View source]
def active=(active : Bool) #

Specifies whether this anomaly is still ongoing.


[View source]
def anomaly_detector_arn : String #

The ARN of the anomaly detector that identified this anomaly.


[View source]
def anomaly_detector_arn=(anomaly_detector_arn : String) #

The ARN of the anomaly detector that identified this anomaly.


[View source]
def anomaly_id : String #

The unique ID that CloudWatch Logs assigned to this anomaly.


[View source]
def anomaly_id=(anomaly_id : String) #

The unique ID that CloudWatch Logs assigned to this anomaly.


[View source]
def description : String #

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


[View source]
def description=(description : String) #

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


[View source]
def first_seen : Int64 #

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.


[View source]
def first_seen=(first_seen : Int64) #

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.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def histogram : Hash(String, Int64) #

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.


[View source]
def histogram=(histogram : Hash(String, Int64)) #

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.


[View source]
def is_pattern_level_suppression : Bool | Nil #

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.


[View source]
def is_pattern_level_suppression=(is_pattern_level_suppression : Bool | Nil) #

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.


[View source]
def last_seen : Int64 #

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.


[View source]
def last_seen=(last_seen : Int64) #

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.


[View source]
def log_group_arn_list : Array(String) #

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


[View source]
def log_group_arn_list=(log_group_arn_list : Array(String)) #

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


[View source]
def log_samples : Array(LogEvent) #

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


[View source]
def log_samples=(log_samples : Array(LogEvent)) #

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


[View source]
def pattern_id : String #

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


[View source]
def pattern_id=(pattern_id : String) #

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


[View source]
def pattern_regex : String | Nil #

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


[View source]
def pattern_regex=(pattern_regex : String | Nil) #

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


[View source]
def pattern_string : String #

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


[View source]
def pattern_string=(pattern_string : String) #

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


[View source]
def pattern_tokens : Array(PatternToken) #

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


[View source]
def pattern_tokens=(pattern_tokens : Array(PatternToken)) #

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


[View source]
def priority : String | Nil #

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.


[View source]
def priority=(priority : String | Nil) #

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.


[View source]
def 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.


[View source]
def state=(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.


[View source]
def suppressed : Bool | Nil #

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


[View source]
def suppressed=(suppressed : Bool | Nil) #

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


[View source]
def suppressed_date : Int64 | Nil #

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


[View source]
def suppressed_date=(suppressed_date : Int64 | Nil) #

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


[View source]
def suppressed_until : Int64 | Nil #

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.


[View source]
def suppressed_until=(suppressed_until : Int64 | Nil) #

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.


[View source]
def validate! : Nil #

[View source]