AWSLogsAnomaly
Objective-C
@interface AWSLogsAnomaly
Swift
class AWSLogsAnomaly
This structure represents one anomaly that has been found by a logs anomaly detector.
For more information about patterns and anomalies, see CreateLogAnomalyDetector.
Required parameters: [anomalyId, patternId, anomalyDetectorArn, patternString, firstSeen, lastSeen, description, active, state, histogram, logSamples, patternTokens, logGroupArnList]
-
Specifies whether this anomaly is still ongoing.
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable active;
Swift
var active: NSNumber? { get set }
-
The ARN of the anomaly detector that identified this anomaly.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable anomalyDetectorArn;
Swift
var anomalyDetectorArn: String? { get set }
-
The unique ID that CloudWatch Logs assigned to this anomaly.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable anomalyId;
Swift
var anomalyId: String? { get set }
-
A human-readable description of the anomaly. This description is generated by CloudWatch Logs.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable detail;
Swift
var detail: String? { get set }
-
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
.Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable firstSeen;
Swift
var firstSeen: NSNumber? { get set }
-
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
.Declaration
Objective-C
@property (nonatomic, strong) NSDictionary<NSString *, NSNumber *> *_Nullable histogram;
Swift
var histogram: [String : NSNumber]? { get set }
-
If this anomaly is suppressed, this field is
true
if the suppression is because the pattern is suppressed. Iffalse
, then only this particular anomaly is suppressed.Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable isPatternLevelSuppression;
Swift
var isPatternLevelSuppression: NSNumber? { get set }
-
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
.Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable lastSeen;
Swift
var lastSeen: NSNumber? { get set }
-
An array of ARNS of the log groups that contained log events considered to be part of this anomaly.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<NSString *> *_Nullable logGroupArnList;
Swift
var logGroupArnList: [String]? { get set }
-
An array of sample log event messages that are considered to be part of this anomaly.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSLogsLogEvent *> *_Nullable logSamples;
Swift
var logSamples: [AWSLogsLogEvent]? { get set }
-
The ID of the pattern used to help identify this anomaly.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable patternId;
Swift
var patternId: String? { get set }
-
The pattern used to help identify this anomaly, in regular expression format.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable patternRegex;
Swift
var patternRegex: String? { get set }
-
The pattern used to help identify this anomaly, in string format.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable patternString;
Swift
var patternString: String? { get set }
-
An array of structures where each structure contains information about one token that makes up the pattern.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSLogsPatternToken *> *_Nullable patternTokens;
Swift
var patternTokens: [AWSLogsPatternToken]? { get set }
-
The priority level of this anomaly, as determined by CloudWatch Logs. Priority is computed based on log severity labels such as
FATAL
andERROR
and the amount of deviation from the baseline. Possible values areHIGH
,MEDIUM
, andLOW
.Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable priority;
Swift
var priority: String? { get set }
-
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 isSuppressed
. If this behavior is now considered to be normal, the value isBaseline
.Declaration
Objective-C
@property (nonatomic) AWSLogsState state;
Swift
var state: AWSLogsState { get set }
-
Indicates whether this anomaly is currently suppressed. To suppress an anomaly, use UpdateAnomaly.
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable suppressed;
Swift
var suppressed: NSNumber? { get set }
-
If the anomaly is suppressed, this indicates when it was suppressed.
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable suppressedDate;
Swift
var suppressedDate: NSNumber? { get set }
-
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 theINFINITE
value.Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable suppressedUntil;
Swift
var suppressedUntil: NSNumber? { get set }