Interface Anomaly.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Anomaly.Builder,Anomaly>,SdkBuilder<Anomaly.Builder,Anomaly>,SdkPojo
- Enclosing class:
- Anomaly
public static interface Anomaly.Builder extends SdkPojo, CopyableBuilder<Anomaly.Builder,Anomaly>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Anomaly.Builderactive(Boolean active)Specifies whether this anomaly is still ongoing.Anomaly.BuilderanomalyDetectorArn(String anomalyDetectorArn)The ARN of the anomaly detector that identified this anomaly.Anomaly.BuilderanomalyId(String anomalyId)The unique ID that CloudWatch Logs assigned to this anomaly.Anomaly.Builderdescription(String description)A human-readable description of the anomaly.Anomaly.BuilderfirstSeen(Long firstSeen)The date and time when the anomaly detector first saw this anomaly.Anomaly.Builderhistogram(Map<String,Long> 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.Anomaly.BuilderisPatternLevelSuppression(Boolean isPatternLevelSuppression)If this anomaly is suppressed, this field istrueif the suppression is because the pattern is suppressed.Anomaly.BuilderlastSeen(Long lastSeen)The date and time when the anomaly detector most recently saw this anomaly.Anomaly.BuilderlogGroupArnList(String... logGroupArnList)An array of ARNS of the log groups that contained log events considered to be part of this anomaly.Anomaly.BuilderlogGroupArnList(Collection<String> logGroupArnList)An array of ARNS of the log groups that contained log events considered to be part of this anomaly.Anomaly.BuilderlogSamples(Collection<LogEvent> logSamples)An array of sample log event messages that are considered to be part of this anomaly.Anomaly.BuilderlogSamples(Consumer<LogEvent.Builder>... logSamples)An array of sample log event messages that are considered to be part of this anomaly.Anomaly.BuilderlogSamples(LogEvent... logSamples)An array of sample log event messages that are considered to be part of this anomaly.Anomaly.BuilderpatternId(String patternId)The ID of the pattern used to help identify this anomaly.Anomaly.BuilderpatternRegex(String patternRegex)The pattern used to help identify this anomaly, in regular expression format.Anomaly.BuilderpatternString(String patternString)The pattern used to help identify this anomaly, in string format.Anomaly.BuilderpatternTokens(Collection<PatternToken> patternTokens)An array of structures where each structure contains information about one token that makes up the pattern.Anomaly.BuilderpatternTokens(Consumer<PatternToken.Builder>... patternTokens)An array of structures where each structure contains information about one token that makes up the pattern.Anomaly.BuilderpatternTokens(PatternToken... patternTokens)An array of structures where each structure contains information about one token that makes up the pattern.Anomaly.Builderpriority(String priority)The priority level of this anomaly, as determined by CloudWatch Logs.Anomaly.Builderstate(String state)Indicates the current state of this anomaly.Anomaly.Builderstate(State state)Indicates the current state of this anomaly.Anomaly.Buildersuppressed(Boolean suppressed)Indicates whether this anomaly is currently suppressed.Anomaly.BuildersuppressedDate(Long suppressedDate)If the anomaly is suppressed, this indicates when it was suppressed.Anomaly.BuildersuppressedUntil(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
anomalyId
Anomaly.Builder anomalyId(String 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
Anomaly.Builder patternId(String 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
Anomaly.Builder anomalyDetectorArn(String 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
Anomaly.Builder patternString(String 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
Anomaly.Builder patternRegex(String 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
Anomaly.Builder priority(String priority)
The priority level of this anomaly, as determined by CloudWatch Logs. Priority is computed based on log severity labels such as
FATALandERRORand 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 asFATALandERRORand 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
Anomaly.Builder firstSeen(Long 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
Anomaly.Builder lastSeen(Long 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
Anomaly.Builder description(String 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
Anomaly.Builder active(Boolean 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
Anomaly.Builder state(String 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,State
-
state
Anomaly.Builder state(State 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,State
-
histogram
Anomaly.Builder histogram(Map<String,Long> 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
Anomaly.Builder logSamples(Collection<LogEvent> 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
Anomaly.Builder logSamples(LogEvent... 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
Anomaly.Builder logSamples(Consumer<LogEvent.Builder>... 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.Builderavoiding the need to create one manually viaLogEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#logSamples(List.) - 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:
#logSamples(java.util.Collection)
-
patternTokens
Anomaly.Builder patternTokens(Collection<PatternToken> 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
Anomaly.Builder patternTokens(PatternToken... 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
Anomaly.Builder patternTokens(Consumer<PatternToken.Builder>... 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.Builderavoiding the need to create one manually viaPatternToken.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#patternTokens(List.) - 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:
#patternTokens(java.util.Collection)
-
logGroupArnList
Anomaly.Builder logGroupArnList(Collection<String> 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
Anomaly.Builder logGroupArnList(String... 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
Anomaly.Builder suppressed(Boolean 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
Anomaly.Builder suppressedDate(Long 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
Anomaly.Builder suppressedUntil(Long 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 theINFINITEvalue.- 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 theINFINITEvalue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPatternLevelSuppression
Anomaly.Builder isPatternLevelSuppression(Boolean isPatternLevelSuppression)
If this anomaly is suppressed, this field is
trueif 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 istrueif 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.
-
-