Values.AnomalySourceThis structure represents one anomaly that has been found by a logs anomaly detector. For more information about patterns and anomalies, see CreateLogAnomalyDetector.
type nonrec t = {anomalyId : AnomalyId.t option;The unique ID that CloudWatch Logs assigned to this anomaly.
*)patternId : PatternId.t option;The ID of the pattern used to help identify this anomaly.
*)anomalyDetectorArn : AnomalyDetectorArn.t option;The ARN of the anomaly detector that identified this anomaly.
*)patternString : PatternString.t option;The pattern used to help identify this anomaly, in string format.
*)patternRegex : PatternRegex.t option;The pattern used to help identify this anomaly, in regular expression format.
*)priority : Priority.t option;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.
*)firstSeen : EpochMillis.t option;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.
*)lastSeen : EpochMillis.t option;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.
*)description : Description.t option;A human-readable description of the anomaly. This description is generated by CloudWatch Logs.
*)active : Boolean.t option;Specifies whether this anomaly is still ongoing.
*)state : State.t option;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.
*)histogram : Histogram.t option;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.
*)logSamples : LogSamples.t option;An array of sample log event messages that are considered to be part of this anomaly.
*)patternTokens : PatternTokens.t option;An array of structures where each structure contains information about one token that makes up the pattern.
*)logGroupArnList : LogGroupArnList.t option;An array of ARNS of the log groups that contained log events considered to be part of this anomaly.
*)suppressed : Boolean.t option;Indicates whether this anomaly is currently suppressed. To suppress an anomaly, use UpdateAnomaly.
*)suppressedDate : EpochMillis.t option;If the anomaly is suppressed, this indicates when it was suppressed.
*)suppressedUntil : EpochMillis.t option;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.
*)isPatternLevelSuppression : Boolean.t option;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.
*)}val make :
?anomalyId:??? ->
?patternId:??? ->
?anomalyDetectorArn:??? ->
?patternString:??? ->
?patternRegex:??? ->
?priority:??? ->
?firstSeen:??? ->
?lastSeen:??? ->
?description:??? ->
?active:??? ->
?state:??? ->
?histogram:??? ->
?logSamples:??? ->
?patternTokens:??? ->
?logGroupArnList:??? ->
?suppressed:??? ->
?suppressedDate:??? ->
?suppressedUntil:??? ->
?isPatternLevelSuppression:??? ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Boolean of Boolean.t
| `Enum of string
| `List of
[> `String of LogGroupArn.t
| `Structure of
(string
* [> `Boolean of Boolean.t
| `Integer of DynamicTokenPosition.t
| `Long of Timestamp.t
| `Map of
([> `String of TokenString.t ] * [> `Long of TokenValue.t ])
list
| `String of EventMessage.t ])
list ]
list
| `Long of EpochMillis.t
| `Map of ([> `String of Time.t ] * [> `Long of Count.t ]) list
| `String of AnomalyId.t ])
list ]