AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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

For more information about patterns and anomalies, see CreateLogAnomalyDetector.

Inheritance Hierarchy

System.Object
  Amazon.CloudWatchLogs.Model.Anomaly

Namespace: Amazon.CloudWatchLogs.Model
Assembly: AWSSDK.CloudWatchLogs.dll
Version: 3.x.y.z

Syntax

C#
public class Anomaly

The Anomaly type exposes the following members

Constructors

NameDescription
Public Method Anomaly()

Properties

NameTypeDescription
Public Property Active System.Boolean

Gets and sets the property Active.

Specifies whether this anomaly is still ongoing.

Public Property AnomalyDetectorArn System.String

Gets and sets the property AnomalyDetectorArn.

The ARN of the anomaly detector that identified this anomaly.

Public Property AnomalyId System.String

Gets and sets the property AnomalyId.

The unique ID that CloudWatch Logs assigned to this anomaly.

Public Property Description System.String

Gets and sets the property Description.

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

Public Property FirstSeen System.Int64

Gets and sets the property FirstSeen.

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.

Public Property Histogram System.Collections.Generic.Dictionary<System.String, System.Int64>

Gets and sets the property 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.

Public Property IsPatternLevelSuppression System.Boolean

Gets and sets the property IsPatternLevelSuppression.

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.

Public Property LastSeen System.Int64

Gets and sets the property LastSeen.

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.

Public Property LogGroupArnList System.Collections.Generic.List<System.String>

Gets and sets the property LogGroupArnList.

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

Public Property LogSamples System.Collections.Generic.List<Amazon.CloudWatchLogs.Model.LogEvent>

Gets and sets the property LogSamples.

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

Public Property PatternId System.String

Gets and sets the property PatternId.

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

Public Property PatternRegex System.String

Gets and sets the property PatternRegex.

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

Public Property PatternString System.String

Gets and sets the property PatternString.

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

Public Property PatternTokens System.Collections.Generic.List<Amazon.CloudWatchLogs.Model.PatternToken>

Gets and sets the property PatternTokens.

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

Public Property Priority System.String

Gets and sets the property 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.

Public Property State Amazon.CloudWatchLogs.State

Gets and sets the property 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.

Public Property Suppressed System.Boolean

Gets and sets the property Suppressed.

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

Public Property SuppressedDate System.Int64

Gets and sets the property SuppressedDate.

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

Public Property SuppressedUntil System.Int64

Gets and sets the property SuppressedUntil.

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.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5