Interface LogAlarm.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LogAlarm.Builder,,LogAlarm> SdkBuilder<LogAlarm.Builder,,LogAlarm> SdkPojo
- Enclosing class:
LogAlarm
-
Method Summary
Modifier and TypeMethodDescriptionactionLogLineCount(Integer actionLogLineCount) The number of log lines from the most recent scheduled query execution that are included in alarm action notifications.actionLogLineRoleArn(String actionLogLineRoleArn) The Amazon Resource Name (ARN) of the IAM role that CloudWatch assumes to retrieve log events for inclusion in alarm action notifications.actionsEnabled(Boolean actionsEnabled) Indicates whether actions should be executed during any changes to the alarm state.alarmActions(String... alarmActions) The actions to execute when this alarm transitions to theALARMstate from any other state.alarmActions(Collection<String> alarmActions) The actions to execute when this alarm transitions to theALARMstate from any other state.The Amazon Resource Name (ARN) of the alarm.alarmConfigurationUpdatedTimestamp(Instant alarmConfigurationUpdatedTimestamp) The time stamp of the last update to the alarm configuration.alarmDescription(String alarmDescription) The description of the alarm.The name of the alarm.comparisonOperator(String comparisonOperator) The arithmetic operation to use when comparing the aggregated query result and the threshold.comparisonOperator(ComparisonOperator comparisonOperator) The arithmetic operation to use when comparing the aggregated query result and the threshold.evaluationState(String evaluationState) If the value of this field isEVALUATION_ERROR, it indicates configuration errors in the alarm setup that require review and correction.evaluationState(EvaluationState evaluationState) If the value of this field isEVALUATION_ERROR, it indicates configuration errors in the alarm setup that require review and correction.insufficientDataActions(String... insufficientDataActions) The actions to execute when this alarm transitions to theINSUFFICIENT_DATAstate from any other state.insufficientDataActions(Collection<String> insufficientDataActions) The actions to execute when this alarm transitions to theINSUFFICIENT_DATAstate from any other state.The actions to execute when this alarm transitions to theOKstate from any other state.okActions(Collection<String> okActions) The actions to execute when this alarm transitions to theOKstate from any other state.queryResultsToAlarm(Integer queryResultsToAlarm) The number of query results, out of the most recentQueryResultsToEvaluateresults, that must breach the threshold to trigger the alarm to transition toALARM(the M in M-of-N evaluation).queryResultsToEvaluate(Integer queryResultsToEvaluate) The number of most recent scheduled query results that the alarm evaluates against the threshold (the N in M-of-N evaluation).default LogAlarm.BuilderscheduledQueryConfiguration(Consumer<ScheduledQueryConfiguration.Builder> scheduledQueryConfiguration) The configuration of the underlying CloudWatch Logs scheduled query, including the query string, log groups, schedule, aggregation expression, and the ARN of the managed scheduled query.scheduledQueryConfiguration(ScheduledQueryConfiguration scheduledQueryConfiguration) The configuration of the underlying CloudWatch Logs scheduled query, including the query string, log groups, schedule, aggregation expression, and the ARN of the managed scheduled query.stateReason(String stateReason) An explanation for the alarm state, in text format.stateReasonData(String stateReasonData) An explanation for the alarm state, in JSON format.stateTransitionedTimestamp(Instant stateTransitionedTimestamp) The date and time that the alarm'sStateValuemost recently changed.stateUpdatedTimestamp(Instant stateUpdatedTimestamp) The time stamp of the last update to the value of either theStateValueorEvaluationStateparameters.stateValue(String stateValue) The state value for the alarm.stateValue(StateValue stateValue) The state value for the alarm.The value to compare with the aggregated query result.treatMissingData(String treatMissingData) How this alarm handles missing data points.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
alarmName
The name of the alarm.
- Parameters:
alarmName- The name of the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmArn
The Amazon Resource Name (ARN) of the alarm.
- Parameters:
alarmArn- The Amazon Resource Name (ARN) of the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmDescription
The description of the alarm.
- Parameters:
alarmDescription- The description of the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmConfigurationUpdatedTimestamp
The time stamp of the last update to the alarm configuration.
- Parameters:
alarmConfigurationUpdatedTimestamp- The time stamp of the last update to the alarm configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionsEnabled
Indicates whether actions should be executed during any changes to the alarm state.
- Parameters:
actionsEnabled- Indicates whether actions should be executed during any changes to the alarm state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
okActions
The actions to execute when this alarm transitions to the
OKstate from any other state. Each action is specified as an Amazon Resource Name (ARN).- Parameters:
okActions- The actions to execute when this alarm transitions to theOKstate from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
okActions
The actions to execute when this alarm transitions to the
OKstate from any other state. Each action is specified as an Amazon Resource Name (ARN).- Parameters:
okActions- The actions to execute when this alarm transitions to theOKstate from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmActions
The actions to execute when this alarm transitions to the
ALARMstate from any other state. Each action is specified as an Amazon Resource Name (ARN).- Parameters:
alarmActions- The actions to execute when this alarm transitions to theALARMstate from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmActions
The actions to execute when this alarm transitions to the
ALARMstate from any other state. Each action is specified as an Amazon Resource Name (ARN).- Parameters:
alarmActions- The actions to execute when this alarm transitions to theALARMstate from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insufficientDataActions
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATAstate from any other state. Each action is specified as an Amazon Resource Name (ARN).- Parameters:
insufficientDataActions- The actions to execute when this alarm transitions to theINSUFFICIENT_DATAstate from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insufficientDataActions
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATAstate from any other state. Each action is specified as an Amazon Resource Name (ARN).- Parameters:
insufficientDataActions- The actions to execute when this alarm transitions to theINSUFFICIENT_DATAstate from any other state. Each action is specified as an Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateValue
The state value for the alarm.
- Parameters:
stateValue- The state value for the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateValue
The state value for the alarm.
- Parameters:
stateValue- The state value for the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateReason
An explanation for the alarm state, in text format.
- Parameters:
stateReason- An explanation for the alarm state, in text format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateReasonData
An explanation for the alarm state, in JSON format.
- Parameters:
stateReasonData- An explanation for the alarm state, in JSON format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateUpdatedTimestamp
The time stamp of the last update to the value of either the
StateValueorEvaluationStateparameters.- Parameters:
stateUpdatedTimestamp- The time stamp of the last update to the value of either theStateValueorEvaluationStateparameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduledQueryConfiguration
LogAlarm.Builder scheduledQueryConfiguration(ScheduledQueryConfiguration scheduledQueryConfiguration) The configuration of the underlying CloudWatch Logs scheduled query, including the query string, log groups, schedule, aggregation expression, and the ARN of the managed scheduled query.
- Parameters:
scheduledQueryConfiguration- The configuration of the underlying CloudWatch Logs scheduled query, including the query string, log groups, schedule, aggregation expression, and the ARN of the managed scheduled query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduledQueryConfiguration
default LogAlarm.Builder scheduledQueryConfiguration(Consumer<ScheduledQueryConfiguration.Builder> scheduledQueryConfiguration) The configuration of the underlying CloudWatch Logs scheduled query, including the query string, log groups, schedule, aggregation expression, and the ARN of the managed scheduled query.
This is a convenience method that creates an instance of theScheduledQueryConfiguration.Builderavoiding the need to create one manually viaScheduledQueryConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscheduledQueryConfiguration(ScheduledQueryConfiguration).- Parameters:
scheduledQueryConfiguration- a consumer that will call methods onScheduledQueryConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
queryResultsToEvaluate
The number of most recent scheduled query results that the alarm evaluates against the threshold (the N in M-of-N evaluation).
- Parameters:
queryResultsToEvaluate- The number of most recent scheduled query results that the alarm evaluates against the threshold (the N in M-of-N evaluation).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryResultsToAlarm
The number of query results, out of the most recent
QueryResultsToEvaluateresults, that must breach the threshold to trigger the alarm to transition toALARM(the M in M-of-N evaluation).- Parameters:
queryResultsToAlarm- The number of query results, out of the most recentQueryResultsToEvaluateresults, that must breach the threshold to trigger the alarm to transition toALARM(the M in M-of-N evaluation).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threshold
The value to compare with the aggregated query result.
- Parameters:
threshold- The value to compare with the aggregated query result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
comparisonOperator
The arithmetic operation to use when comparing the aggregated query result and the threshold. The aggregated query result is used as the first operand.
- Parameters:
comparisonOperator- The arithmetic operation to use when comparing the aggregated query result and the threshold. The aggregated query result is used as the first operand.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
comparisonOperator
The arithmetic operation to use when comparing the aggregated query result and the threshold. The aggregated query result is used as the first operand.
- Parameters:
comparisonOperator- The arithmetic operation to use when comparing the aggregated query result and the threshold. The aggregated query result is used as the first operand.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
treatMissingData
How this alarm handles missing data points. Valid values are
breaching,notBreaching,ignore, andmissing.- Parameters:
treatMissingData- How this alarm handles missing data points. Valid values arebreaching,notBreaching,ignore, andmissing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateTransitionedTimestamp
The date and time that the alarm's
StateValuemost recently changed.- Parameters:
stateTransitionedTimestamp- The date and time that the alarm'sStateValuemost recently changed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationState
If the value of this field is
EVALUATION_ERROR, it indicates configuration errors in the alarm setup that require review and correction. Refer to theStateReasonfield of the alarm for more details.If the value of this field is
EVALUATION_FAILURE, it indicates temporary CloudWatch issues. We recommend manual monitoring until the issue is resolved.If the value of this field is
PARTIAL_DATA, it indicates that the query returned the maximum 500 contributor groups but more matched. The alarm evaluates the available contributors, but results might be incomplete.- Parameters:
evaluationState- If the value of this field isEVALUATION_ERROR, it indicates configuration errors in the alarm setup that require review and correction. Refer to theStateReasonfield of the alarm for more details.If the value of this field is
EVALUATION_FAILURE, it indicates temporary CloudWatch issues. We recommend manual monitoring until the issue is resolved.If the value of this field is
PARTIAL_DATA, it indicates that the query returned the maximum 500 contributor groups but more matched. The alarm evaluates the available contributors, but results might be incomplete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluationState
If the value of this field is
EVALUATION_ERROR, it indicates configuration errors in the alarm setup that require review and correction. Refer to theStateReasonfield of the alarm for more details.If the value of this field is
EVALUATION_FAILURE, it indicates temporary CloudWatch issues. We recommend manual monitoring until the issue is resolved.If the value of this field is
PARTIAL_DATA, it indicates that the query returned the maximum 500 contributor groups but more matched. The alarm evaluates the available contributors, but results might be incomplete.- Parameters:
evaluationState- If the value of this field isEVALUATION_ERROR, it indicates configuration errors in the alarm setup that require review and correction. Refer to theStateReasonfield of the alarm for more details.If the value of this field is
EVALUATION_FAILURE, it indicates temporary CloudWatch issues. We recommend manual monitoring until the issue is resolved.If the value of this field is
PARTIAL_DATA, it indicates that the query returned the maximum 500 contributor groups but more matched. The alarm evaluates the available contributors, but results might be incomplete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actionLogLineCount
The number of log lines from the most recent scheduled query execution that are included in alarm action notifications. Valid range is 0 through 50. A value of 0 means no log lines are included.
- Parameters:
actionLogLineCount- The number of log lines from the most recent scheduled query execution that are included in alarm action notifications. Valid range is 0 through 50. A value of 0 means no log lines are included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionLogLineRoleArn
The Amazon Resource Name (ARN) of the IAM role that CloudWatch assumes to retrieve log events for inclusion in alarm action notifications. Set when
ActionLogLineCountis greater than 0.- Parameters:
actionLogLineRoleArn- The Amazon Resource Name (ARN) of the IAM role that CloudWatch assumes to retrieve log events for inclusion in alarm action notifications. Set whenActionLogLineCountis greater than 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-