Interface AwsCloudWatchAlarmDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsCloudWatchAlarmDetails.Builder,
,AwsCloudWatchAlarmDetails> SdkBuilder<AwsCloudWatchAlarmDetails.Builder,
,AwsCloudWatchAlarmDetails> SdkPojo
- Enclosing class:
AwsCloudWatchAlarmDetails
-
Method Summary
Modifier and TypeMethodDescriptionactionsEnabled
(Boolean actionsEnabled) Indicates whether actions should be executed during any changes to the alarm state.alarmActions
(String... alarmActions) The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into anALARM
state from any other state.alarmActions
(Collection<String> alarmActions) The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into anALARM
state from any other state.The ARN of the alarm.alarmConfigurationUpdatedTimestamp
(String 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 specified statistic and threshold.datapointsToAlarm
(Integer datapointsToAlarm) The number of datapoints that must be breaching to trigger the alarm.dimensions
(Collection<AwsCloudWatchAlarmDimensionsDetails> dimensions) The dimensions for the metric associated with the alarm.dimensions
(Consumer<AwsCloudWatchAlarmDimensionsDetails.Builder>... dimensions) The dimensions for the metric associated with the alarm.dimensions
(AwsCloudWatchAlarmDimensionsDetails... dimensions) The dimensions for the metric associated with the alarm.evaluateLowSampleCountPercentile
(String evaluateLowSampleCountPercentile) Used only for alarms based on percentiles.evaluationPeriods
(Integer evaluationPeriods) The number of periods over which data is compared to the specified threshold.extendedStatistic
(String extendedStatistic) The percentile statistic for the metric associated with the alarm.insufficientDataActions
(String... insufficientDataActions) The actions to execute when this alarm transitions to theINSUFFICIENT_DATA
state from any other state.insufficientDataActions
(Collection<String> insufficientDataActions) The actions to execute when this alarm transitions to theINSUFFICIENT_DATA
state from any other state.metricName
(String metricName) The name of the metric associated with the alarm.The namespace of the metric associated with the alarm.The actions to execute when this alarm transitions to theOK
state from any other state.okActions
(Collection<String> okActions) The actions to execute when this alarm transitions to theOK
state from any other state.The period, in seconds, over which the statistic is applied.The statistic for the metric associated with the alarm, other than percentile.The value to compare with the specified statistic.thresholdMetricId
(String thresholdMetricId) n an alarm based on an anomaly detection model, this is the ID of theANOMALY_DETECTION_BAND
function used as the threshold for the alarm.treatMissingData
(String treatMissingData) Sets how this alarm is to handle missing data points.The unit of the metric associated with the alarm.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 Details
-
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.
-
alarmActions
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an
ALARM
state from any other state.- Parameters:
alarmActions
- The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into anALARM
state from any other state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmActions
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an
ALARM
state from any other state.- Parameters:
alarmActions
- The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into anALARM
state from any other state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmArn
The ARN of the alarm.
- Parameters:
alarmArn
- The ARN of the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmConfigurationUpdatedTimestamp
AwsCloudWatchAlarmDetails.Builder alarmConfigurationUpdatedTimestamp(String 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.
-
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.
-
alarmName
The name of the alarm. If you don't specify a name, CloudFront generates a unique physical ID and uses that ID for the alarm name.
- Parameters:
alarmName
- The name of the alarm. If you don't specify a name, CloudFront generates a unique physical ID and uses that ID for the alarm name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
comparisonOperator
The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
- Parameters:
comparisonOperator
- The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datapointsToAlarm
The number of datapoints that must be breaching to trigger the alarm.
- Parameters:
datapointsToAlarm
- The number of datapoints that must be breaching to trigger the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
AwsCloudWatchAlarmDetails.Builder dimensions(Collection<AwsCloudWatchAlarmDimensionsDetails> dimensions) The dimensions for the metric associated with the alarm.
- Parameters:
dimensions
- The dimensions for the metric associated with the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
The dimensions for the metric associated with the alarm.
- Parameters:
dimensions
- The dimensions for the metric associated with the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
AwsCloudWatchAlarmDetails.Builder dimensions(Consumer<AwsCloudWatchAlarmDimensionsDetails.Builder>... dimensions) The dimensions for the metric associated with the alarm.
This is a convenience method that creates an instance of theAwsCloudWatchAlarmDimensionsDetails.Builder
avoiding the need to create one manually viaAwsCloudWatchAlarmDimensionsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensions(List<AwsCloudWatchAlarmDimensionsDetails>)
.- Parameters:
dimensions
- a consumer that will call methods onAwsCloudWatchAlarmDimensionsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluateLowSampleCountPercentile
AwsCloudWatchAlarmDetails.Builder evaluateLowSampleCountPercentile(String evaluateLowSampleCountPercentile) Used only for alarms based on percentiles. If
ignore
, the alarm state does not change during periods with too few data points to be statistically significant. Ifevaluate
or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.- Parameters:
evaluateLowSampleCountPercentile
- Used only for alarms based on percentiles. Ifignore
, the alarm state does not change during periods with too few data points to be statistically significant. Ifevaluate
or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationPeriods
The number of periods over which data is compared to the specified threshold.
- Parameters:
evaluationPeriods
- The number of periods over which data is compared to the specified threshold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extendedStatistic
The percentile statistic for the metric associated with the alarm.
- Parameters:
extendedStatistic
- The percentile statistic for the metric associated with the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insufficientDataActions
AwsCloudWatchAlarmDetails.Builder insufficientDataActions(Collection<String> insufficientDataActions) The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA
state from any other state. Each action is specified as an ARN.- Parameters:
insufficientDataActions
- The actions to execute when this alarm transitions to theINSUFFICIENT_DATA
state from any other state. Each action is specified as an 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_DATA
state from any other state. Each action is specified as an ARN.- Parameters:
insufficientDataActions
- The actions to execute when this alarm transitions to theINSUFFICIENT_DATA
state from any other state. Each action is specified as an ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use
Metrics
instead and you can't specifyMetricName
.- Parameters:
metricName
- The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you useMetrics
instead and you can't specifyMetricName
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespace
The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify
Namespace
and you useMetrics
instead.- Parameters:
namespace
- The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specifyNamespace
and you useMetrics
instead.- 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
OK
state from any other state. Each action is specified as an ARN.- Parameters:
okActions
- The actions to execute when this alarm transitions to theOK
state from any other state. Each action is specified as an 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
OK
state from any other state. Each action is specified as an ARN.- Parameters:
okActions
- The actions to execute when this alarm transitions to theOK
state from any other state. Each action is specified as an ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
period
The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric.
- Parameters:
period
- The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistic
The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
.For an alarm based on a metric, you must specify either
Statistic
orExtendedStatistic
but not both.For an alarm based on a math expression, you can't specify
Statistic
. Instead, you useMetrics
.- Parameters:
statistic
- The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, useExtendedStatistic
.For an alarm based on a metric, you must specify either
Statistic
orExtendedStatistic
but not both.For an alarm based on a math expression, you can't specify
Statistic
. Instead, you useMetrics
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threshold
The value to compare with the specified statistic.
- Parameters:
threshold
- The value to compare with the specified statistic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
thresholdMetricId
n an alarm based on an anomaly detection model, this is the ID of the
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm.- Parameters:
thresholdMetricId
- n an alarm based on an anomaly detection model, this is the ID of theANOMALY_DETECTION_BAND
function used as the threshold for the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
treatMissingData
Sets how this alarm is to handle missing data points.
- Parameters:
treatMissingData
- Sets how this alarm is to handle missing data points.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unit
The unit of the metric associated with the alarm.
- Parameters:
unit
- The unit of the metric associated with the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-