class
Amazonite::CloudWatchLogs::Anomaly
- Amazonite::CloudWatchLogs::Anomaly
- Reference
- Object
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
- JSON::Serializable
Defined in:
cloudwatch_logs/anomaly.crConstructors
- .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)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#active : Bool
Specifies whether this anomaly is still ongoing.
-
#active=(active : Bool)
Specifies whether this anomaly is still ongoing.
-
#anomaly_detector_arn : String
The ARN of the anomaly detector that identified this anomaly.
-
#anomaly_detector_arn=(anomaly_detector_arn : String)
The ARN of the anomaly detector that identified this anomaly.
-
#anomaly_id : String
The unique ID that CloudWatch Logs assigned to this anomaly.
-
#anomaly_id=(anomaly_id : String)
The unique ID that CloudWatch Logs assigned to this anomaly.
-
#description : String
A human-readable description of the anomaly.
-
#description=(description : String)
A human-readable description of the anomaly.
-
#first_seen : Int64
The date and time when the anomaly detector first saw this anomaly.
-
#first_seen=(first_seen : Int64)
The date and time when the anomaly detector first saw this anomaly.
-
#hash(hasher)
See
Object#hash(hasher) -
#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.
-
#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.
-
#is_pattern_level_suppression : Bool | Nil
If this anomaly is suppressed, this field is
trueif the suppression is because the pattern is suppressed. -
#is_pattern_level_suppression=(is_pattern_level_suppression : Bool | Nil)
If this anomaly is suppressed, this field is
trueif the suppression is because the pattern is suppressed. -
#last_seen : Int64
The date and time when the anomaly detector most recently saw this anomaly.
-
#last_seen=(last_seen : Int64)
The date and time when the anomaly detector most recently saw this anomaly.
-
#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.
-
#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.
-
#log_samples : Array(LogEvent)
An array of sample log event messages that are considered to be part of this anomaly.
-
#log_samples=(log_samples : Array(LogEvent))
An array of sample log event messages that are considered to be part of this anomaly.
-
#pattern_id : String
The ID of the pattern used to help identify this anomaly.
-
#pattern_id=(pattern_id : String)
The ID of the pattern used to help identify this anomaly.
-
#pattern_regex : String | Nil
The pattern used to help identify this anomaly, in regular expression format.
-
#pattern_regex=(pattern_regex : String | Nil)
The pattern used to help identify this anomaly, in regular expression format.
-
#pattern_string : String
The pattern used to help identify this anomaly, in string format.
-
#pattern_string=(pattern_string : String)
The pattern used to help identify this anomaly, in string format.
-
#pattern_tokens : Array(PatternToken)
An array of structures where each structure contains information about one token that makes up the pattern.
-
#pattern_tokens=(pattern_tokens : Array(PatternToken))
An array of structures where each structure contains information about one token that makes up the pattern.
-
#priority : String | Nil
The priority level of this anomaly, as determined by CloudWatch Logs.
-
#priority=(priority : String | Nil)
The priority level of this anomaly, as determined by CloudWatch Logs.
-
#state : State
Indicates the current state of this anomaly.
-
#state=(state : State)
Indicates the current state of this anomaly.
-
#suppressed : Bool | Nil
Indicates whether this anomaly is currently suppressed.
-
#suppressed=(suppressed : Bool | Nil)
Indicates whether this anomaly is currently suppressed.
-
#suppressed_date : Int64 | Nil
If the anomaly is suppressed, this indicates when it was suppressed.
-
#suppressed_date=(suppressed_date : Int64 | Nil)
If the anomaly is suppressed, this indicates when it was suppressed.
-
#suppressed_until : Int64 | Nil
If the anomaly is suppressed, this indicates when the suppression will end.
-
#suppressed_until=(suppressed_until : Int64 | Nil)
If the anomaly is suppressed, this indicates when the suppression will end.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The ARN of the anomaly detector that identified this anomaly.
A human-readable description of the anomaly. This description is generated by CloudWatch Logs.
A human-readable description of the anomaly. This description is generated by CloudWatch Logs.
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.
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.
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.
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.
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.
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.
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.
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.
An array of ARNS of the log groups that contained log events considered to be part of this anomaly.
An array of ARNS of the log groups that contained log events considered to be part of this anomaly.
An array of sample log event messages that are considered to be part of this anomaly.
An array of sample log event messages that are considered to be part of this anomaly.
The pattern used to help identify this anomaly, in regular expression format.
The pattern used to help identify this anomaly, in regular expression format.
The pattern used to help identify this anomaly, in string format.
An array of structures where each structure contains information about one token that makes up the pattern.
An array of structures where each structure contains information about one token that makes up the pattern.
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.
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.
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.
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.
Indicates whether this anomaly is currently suppressed. To suppress an anomaly, use UpdateAnomaly.
Indicates whether this anomaly is currently suppressed. To suppress an anomaly, use UpdateAnomaly.
If the anomaly is suppressed, this indicates when it was suppressed.
If the anomaly is suppressed, this indicates when it was suppressed.
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.
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.