Interface Anomaly.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Anomaly.Builder,
,Anomaly> SdkBuilder<Anomaly.Builder,
,Anomaly> SdkPojo
- Enclosing class:
Anomaly
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether this anomaly is still ongoing.anomalyDetectorArn
(String anomalyDetectorArn) The ARN of the anomaly detector that identified this anomaly.The unique ID that CloudWatch Logs assigned to this anomaly.description
(String description) A human-readable description of the anomaly.The date and time when the anomaly detector first saw this anomaly.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.isPatternLevelSuppression
(Boolean isPatternLevelSuppression) If this anomaly is suppressed, this field istrue
if the suppression is because the pattern is suppressed.The date and time when the anomaly detector most recently saw this anomaly.logGroupArnList
(String... logGroupArnList) An array of ARNS of the log groups that contained log events considered to be part of this anomaly.logGroupArnList
(Collection<String> logGroupArnList) An array of ARNS of the log groups that contained log events considered to be part of this anomaly.logSamples
(Collection<LogEvent> logSamples) An array of sample log event messages that are considered to be part of this anomaly.logSamples
(Consumer<LogEvent.Builder>... logSamples) An array of sample log event messages that are considered to be part of this anomaly.logSamples
(LogEvent... logSamples) An array of sample log event messages that are considered to be part of this anomaly.The ID of the pattern used to help identify this anomaly.patternRegex
(String patternRegex) The pattern used to help identify this anomaly, in regular expression format.patternString
(String patternString) The pattern used to help identify this anomaly, in string format.patternTokens
(Collection<PatternToken> patternTokens) An array of structures where each structure contains information about one token that makes up the pattern.patternTokens
(Consumer<PatternToken.Builder>... patternTokens) An array of structures where each structure contains information about one token that makes up the pattern.patternTokens
(PatternToken... patternTokens) 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.Indicates the current state of this anomaly.Indicates the current state of this anomaly.suppressed
(Boolean suppressed) Indicates whether this anomaly is currently suppressed.suppressedDate
(Long suppressedDate) If the anomaly is suppressed, this indicates when it was suppressed.suppressedUntil
(Long suppressedUntil) If the anomaly is suppressed, this indicates when the suppression will end.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
anomalyId
The unique ID that CloudWatch Logs assigned to this anomaly.
- Parameters:
anomalyId
- The unique ID that CloudWatch Logs assigned to this anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
patternId
The ID of the pattern used to help identify this anomaly.
- Parameters:
patternId
- The ID of the pattern used to help identify this anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyDetectorArn
The ARN of the anomaly detector that identified this anomaly.
- Parameters:
anomalyDetectorArn
- The ARN of the anomaly detector that identified this anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
patternString
The pattern used to help identify this anomaly, in string format.
- Parameters:
patternString
- The pattern used to help identify this anomaly, in string format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
patternRegex
The pattern used to help identify this anomaly, in regular expression format.
- Parameters:
patternRegex
- The pattern used to help identify this anomaly, in regular expression format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priority
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
.- Parameters:
priority
- The priority level of this anomaly, as determined by CloudWatch Logs. Priority is computed based on log severity labels such asFATAL
andERROR
and the amount of deviation from the baseline. Possible values areHIGH
,MEDIUM
, andLOW
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
.- Parameters:
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 sinceJanuary 1, 1970, 00:00:00 UTC
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
.- Parameters:
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 sinceJanuary 1, 1970, 00:00:00 UTC
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A human-readable description of the anomaly. This description is generated by CloudWatch Logs.
- Parameters:
description
- A human-readable description of the anomaly. This description is generated by CloudWatch Logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
active
Specifies whether this anomaly is still ongoing.
- Parameters:
active
- Specifies whether this anomaly is still ongoing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 isSuppressed
. If this behavior is now considered to be normal, the value isBaseline
.- Parameters:
state
- Indicates the current state of this anomaly. If it is still being treated as an anomaly, the value isActive
. 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
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 isSuppressed
. If this behavior is now considered to be normal, the value isBaseline
.- Parameters:
state
- Indicates the current state of this anomaly. If it is still being treated as an anomaly, the value isActive
. 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
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
.- Parameters:
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 sinceJanuary 1, 1970, 00:00:00 UTC
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logSamples
An array of sample log event messages that are considered to be part of this anomaly.
- Parameters:
logSamples
- An array of sample log event messages that are considered to be part of this anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logSamples
An array of sample log event messages that are considered to be part of this anomaly.
- Parameters:
logSamples
- An array of sample log event messages that are considered to be part of this anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logSamples
An array of sample log event messages that are considered to be part of this anomaly.
This is a convenience method that creates an instance of theLogEvent.Builder
avoiding the need to create one manually viaLogEvent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologSamples(List<LogEvent>)
.- Parameters:
logSamples
- a consumer that will call methods onLogEvent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
patternTokens
An array of structures where each structure contains information about one token that makes up the pattern.
- Parameters:
patternTokens
- An array of structures where each structure contains information about one token that makes up the pattern.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
patternTokens
An array of structures where each structure contains information about one token that makes up the pattern.
- Parameters:
patternTokens
- An array of structures where each structure contains information about one token that makes up the pattern.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
patternTokens
An array of structures where each structure contains information about one token that makes up the pattern.
This is a convenience method that creates an instance of thePatternToken.Builder
avoiding the need to create one manually viaPatternToken.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topatternTokens(List<PatternToken>)
.- Parameters:
patternTokens
- a consumer that will call methods onPatternToken.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logGroupArnList
An array of ARNS of the log groups that contained log events considered to be part of this anomaly.
- Parameters:
logGroupArnList
- An array of ARNS of the log groups that contained log events considered to be part of this anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupArnList
An array of ARNS of the log groups that contained log events considered to be part of this anomaly.
- Parameters:
logGroupArnList
- An array of ARNS of the log groups that contained log events considered to be part of this anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suppressed
Indicates whether this anomaly is currently suppressed. To suppress an anomaly, use UpdateAnomaly.
- Parameters:
suppressed
- Indicates whether this anomaly is currently suppressed. To suppress an anomaly, use UpdateAnomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suppressedDate
If the anomaly is suppressed, this indicates when it was suppressed.
- Parameters:
suppressedDate
- If the anomaly is suppressed, this indicates when it was suppressed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 theINFINITE
value.- Parameters:
suppressedUntil
- If the anomaly is suppressed, this indicates when the suppression will end. If this value is0
, the anomaly was suppressed with no expiration, with theINFINITE
value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPatternLevelSuppression
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.- Parameters:
isPatternLevelSuppression
- If this anomaly is suppressed, this field istrue
if the suppression is because the pattern is suppressed. Iffalse
, then only this particular anomaly is suppressed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-