/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This structure represents one anomaly that has been found by a logs anomaly
* detector. For more information about patterns and anomalies, see CreateLogAnomalyDetector.
* See Also:
AWS API
* Reference
The unique ID that CloudWatch Logs assigned to this anomaly.
*/ inline const Aws::String& GetAnomalyId() const{ return m_anomalyId; } /** *The unique ID that CloudWatch Logs assigned to this anomaly.
*/ inline bool AnomalyIdHasBeenSet() const { return m_anomalyIdHasBeenSet; } /** *The unique ID that CloudWatch Logs assigned to this anomaly.
*/ inline void SetAnomalyId(const Aws::String& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = value; } /** *The unique ID that CloudWatch Logs assigned to this anomaly.
*/ inline void SetAnomalyId(Aws::String&& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = std::move(value); } /** *The unique ID that CloudWatch Logs assigned to this anomaly.
*/ inline void SetAnomalyId(const char* value) { m_anomalyIdHasBeenSet = true; m_anomalyId.assign(value); } /** *The unique ID that CloudWatch Logs assigned to this anomaly.
*/ inline Anomaly& WithAnomalyId(const Aws::String& value) { SetAnomalyId(value); return *this;} /** *The unique ID that CloudWatch Logs assigned to this anomaly.
*/ inline Anomaly& WithAnomalyId(Aws::String&& value) { SetAnomalyId(std::move(value)); return *this;} /** *The unique ID that CloudWatch Logs assigned to this anomaly.
*/ inline Anomaly& WithAnomalyId(const char* value) { SetAnomalyId(value); return *this;} /** *The ID of the pattern used to help identify this anomaly.
*/ inline const Aws::String& GetPatternId() const{ return m_patternId; } /** *The ID of the pattern used to help identify this anomaly.
*/ inline bool PatternIdHasBeenSet() const { return m_patternIdHasBeenSet; } /** *The ID of the pattern used to help identify this anomaly.
*/ inline void SetPatternId(const Aws::String& value) { m_patternIdHasBeenSet = true; m_patternId = value; } /** *The ID of the pattern used to help identify this anomaly.
*/ inline void SetPatternId(Aws::String&& value) { m_patternIdHasBeenSet = true; m_patternId = std::move(value); } /** *The ID of the pattern used to help identify this anomaly.
*/ inline void SetPatternId(const char* value) { m_patternIdHasBeenSet = true; m_patternId.assign(value); } /** *The ID of the pattern used to help identify this anomaly.
*/ inline Anomaly& WithPatternId(const Aws::String& value) { SetPatternId(value); return *this;} /** *The ID of the pattern used to help identify this anomaly.
*/ inline Anomaly& WithPatternId(Aws::String&& value) { SetPatternId(std::move(value)); return *this;} /** *The ID of the pattern used to help identify this anomaly.
*/ inline Anomaly& WithPatternId(const char* value) { SetPatternId(value); return *this;} /** *The ARN of the anomaly detector that identified this anomaly.
*/ inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; } /** *The ARN of the anomaly detector that identified this anomaly.
*/ inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; } /** *The ARN of the anomaly detector that identified this anomaly.
*/ inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; } /** *The ARN of the anomaly detector that identified this anomaly.
*/ inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); } /** *The ARN of the anomaly detector that identified this anomaly.
*/ inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); } /** *The ARN of the anomaly detector that identified this anomaly.
*/ inline Anomaly& WithAnomalyDetectorArn(const Aws::String& value) { SetAnomalyDetectorArn(value); return *this;} /** *The ARN of the anomaly detector that identified this anomaly.
*/ inline Anomaly& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;} /** *The ARN of the anomaly detector that identified this anomaly.
*/ inline Anomaly& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;} /** *The pattern used to help identify this anomaly, in string format.
*/ inline const Aws::String& GetPatternString() const{ return m_patternString; } /** *The pattern used to help identify this anomaly, in string format.
*/ inline bool PatternStringHasBeenSet() const { return m_patternStringHasBeenSet; } /** *The pattern used to help identify this anomaly, in string format.
*/ inline void SetPatternString(const Aws::String& value) { m_patternStringHasBeenSet = true; m_patternString = value; } /** *The pattern used to help identify this anomaly, in string format.
*/ inline void SetPatternString(Aws::String&& value) { m_patternStringHasBeenSet = true; m_patternString = std::move(value); } /** *The pattern used to help identify this anomaly, in string format.
*/ inline void SetPatternString(const char* value) { m_patternStringHasBeenSet = true; m_patternString.assign(value); } /** *The pattern used to help identify this anomaly, in string format.
*/ inline Anomaly& WithPatternString(const Aws::String& value) { SetPatternString(value); return *this;} /** *The pattern used to help identify this anomaly, in string format.
*/ inline Anomaly& WithPatternString(Aws::String&& value) { SetPatternString(std::move(value)); return *this;} /** *The pattern used to help identify this anomaly, in string format.
*/ inline Anomaly& WithPatternString(const char* value) { SetPatternString(value); return *this;} /** *The pattern used to help identify this anomaly, in regular expression * format.
*/ inline const Aws::String& GetPatternRegex() const{ return m_patternRegex; } /** *The pattern used to help identify this anomaly, in regular expression * format.
*/ inline bool PatternRegexHasBeenSet() const { return m_patternRegexHasBeenSet; } /** *The pattern used to help identify this anomaly, in regular expression * format.
*/ inline void SetPatternRegex(const Aws::String& value) { m_patternRegexHasBeenSet = true; m_patternRegex = value; } /** *The pattern used to help identify this anomaly, in regular expression * format.
*/ inline void SetPatternRegex(Aws::String&& value) { m_patternRegexHasBeenSet = true; m_patternRegex = std::move(value); } /** *The pattern used to help identify this anomaly, in regular expression * format.
*/ inline void SetPatternRegex(const char* value) { m_patternRegexHasBeenSet = true; m_patternRegex.assign(value); } /** *The pattern used to help identify this anomaly, in regular expression * format.
*/ inline Anomaly& WithPatternRegex(const Aws::String& value) { SetPatternRegex(value); return *this;} /** *The pattern used to help identify this anomaly, in regular expression * format.
*/ inline Anomaly& WithPatternRegex(Aws::String&& value) { SetPatternRegex(std::move(value)); return *this;} /** *The pattern used to help identify this anomaly, in regular expression * format.
*/ inline Anomaly& WithPatternRegex(const char* value) { SetPatternRegex(value); return *this;} /** *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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.
*/ inline Anomaly& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.
*/ inline Anomaly& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.
*/ inline Anomaly& WithDescription(const char* value) { SetDescription(value); return *this;} /** *Specifies whether this anomaly is still ongoing.
*/ inline bool GetActive() const{ return m_active; } /** *Specifies whether this anomaly is still ongoing.
*/ inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; } /** *Specifies whether this anomaly is still ongoing.
*/ inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; } /** *Specifies whether this anomaly is still ongoing.
*/ inline Anomaly& WithActive(bool value) { SetActive(value); return *this;} /** *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 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 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
.
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
.
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
.
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
.
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
.
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
.
An array of sample log event messages that are considered to be part of this * anomaly.
*/ inline const Aws::VectorAn array of sample log event messages that are considered to be part of this * anomaly.
*/ inline bool LogSamplesHasBeenSet() const { return m_logSamplesHasBeenSet; } /** *An array of sample log event messages that are considered to be part of this * anomaly.
*/ inline void SetLogSamples(const Aws::VectorAn array of sample log event messages that are considered to be part of this * anomaly.
*/ inline void SetLogSamples(Aws::VectorAn array of sample log event messages that are considered to be part of this * anomaly.
*/ inline Anomaly& WithLogSamples(const Aws::VectorAn array of sample log event messages that are considered to be part of this * anomaly.
*/ inline Anomaly& WithLogSamples(Aws::VectorAn array of sample log event messages that are considered to be part of this * anomaly.
*/ inline Anomaly& AddLogSamples(const LogEvent& value) { m_logSamplesHasBeenSet = true; m_logSamples.push_back(value); return *this; } /** *An array of sample log event messages that are considered to be part of this * anomaly.
*/ inline Anomaly& AddLogSamples(LogEvent&& value) { m_logSamplesHasBeenSet = true; m_logSamples.push_back(std::move(value)); return *this; } /** *An array of structures where each structure contains information about one * token that makes up the pattern.
*/ inline const Aws::VectorAn array of structures where each structure contains information about one * token that makes up the pattern.
*/ inline bool PatternTokensHasBeenSet() const { return m_patternTokensHasBeenSet; } /** *An array of structures where each structure contains information about one * token that makes up the pattern.
*/ inline void SetPatternTokens(const Aws::VectorAn array of structures where each structure contains information about one * token that makes up the pattern.
*/ inline void SetPatternTokens(Aws::VectorAn array of structures where each structure contains information about one * token that makes up the pattern.
*/ inline Anomaly& WithPatternTokens(const Aws::VectorAn array of structures where each structure contains information about one * token that makes up the pattern.
*/ inline Anomaly& WithPatternTokens(Aws::VectorAn array of structures where each structure contains information about one * token that makes up the pattern.
*/ inline Anomaly& AddPatternTokens(const PatternToken& value) { m_patternTokensHasBeenSet = true; m_patternTokens.push_back(value); return *this; } /** *An array of structures where each structure contains information about one * token that makes up the pattern.
*/ inline Anomaly& AddPatternTokens(PatternToken&& value) { m_patternTokensHasBeenSet = true; m_patternTokens.push_back(std::move(value)); return *this; } /** *An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.
*/ inline const Aws::VectorAn array of ARNS of the log groups that contained log events considered to be * part of this anomaly.
*/ inline bool LogGroupArnListHasBeenSet() const { return m_logGroupArnListHasBeenSet; } /** *An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.
*/ inline void SetLogGroupArnList(const Aws::VectorAn array of ARNS of the log groups that contained log events considered to be * part of this anomaly.
*/ inline void SetLogGroupArnList(Aws::VectorAn array of ARNS of the log groups that contained log events considered to be * part of this anomaly.
*/ inline Anomaly& WithLogGroupArnList(const Aws::VectorAn array of ARNS of the log groups that contained log events considered to be * part of this anomaly.
*/ inline Anomaly& WithLogGroupArnList(Aws::VectorAn array of ARNS of the log groups that contained log events considered to be * part of this anomaly.
*/ inline Anomaly& AddLogGroupArnList(const Aws::String& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.push_back(value); return *this; } /** *An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.
*/ inline Anomaly& AddLogGroupArnList(Aws::String&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.push_back(std::move(value)); return *this; } /** *An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.
*/ inline Anomaly& AddLogGroupArnList(const char* value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.push_back(value); return *this; } /** *Indicates whether this anomaly is currently suppressed. To suppress an * anomaly, use UpdateAnomaly.
*/ inline bool GetSuppressed() const{ return m_suppressed; } /** *Indicates whether this anomaly is currently suppressed. To suppress an * anomaly, use UpdateAnomaly.
*/ inline bool SuppressedHasBeenSet() const { return m_suppressedHasBeenSet; } /** *Indicates whether this anomaly is currently suppressed. To suppress an * anomaly, use UpdateAnomaly.
*/ inline void SetSuppressed(bool value) { m_suppressedHasBeenSet = true; m_suppressed = value; } /** *Indicates whether this anomaly is currently suppressed. To suppress an * anomaly, use UpdateAnomaly.
*/ inline Anomaly& WithSuppressed(bool value) { SetSuppressed(value); return *this;} /** *If the anomaly is suppressed, this indicates when it was suppressed.
*/ inline long long GetSuppressedDate() const{ return m_suppressedDate; } /** *If the anomaly is suppressed, this indicates when it was suppressed.
*/ inline bool SuppressedDateHasBeenSet() const { return m_suppressedDateHasBeenSet; } /** *If the anomaly is suppressed, this indicates when it was suppressed.
*/ inline void SetSuppressedDate(long long value) { m_suppressedDateHasBeenSet = true; m_suppressedDate = value; } /** *If the anomaly is suppressed, this indicates when it was suppressed.
*/ inline Anomaly& WithSuppressedDate(long long value) { SetSuppressedDate(value); return *this;} /** *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.
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.
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.
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.