CopyableBuilder<MetricAlarm.Builder,MetricAlarm>
, SdkBuilder<MetricAlarm.Builder,MetricAlarm>
public static interface MetricAlarm.Builder extends CopyableBuilder<MetricAlarm.Builder,MetricAlarm>
Modifier and Type | Method | Description |
---|---|---|
MetricAlarm.Builder |
actionsEnabled(Boolean actionsEnabled) |
Indicates whether actions should be executed during any changes to the alarm state.
|
MetricAlarm.Builder |
alarmActions(String... alarmActions) |
The actions to execute when this alarm transitions to the
ALARM state from any other state. |
MetricAlarm.Builder |
alarmActions(Collection<String> alarmActions) |
The actions to execute when this alarm transitions to the
ALARM state from any other state. |
MetricAlarm.Builder |
alarmArn(String alarmArn) |
The Amazon Resource Name (ARN) of the alarm.
|
MetricAlarm.Builder |
alarmConfigurationUpdatedTimestamp(Date alarmConfigurationUpdatedTimestamp) |
The time stamp of the last update to the alarm configuration.
|
MetricAlarm.Builder |
alarmDescription(String alarmDescription) |
The description of the alarm.
|
MetricAlarm.Builder |
alarmName(String alarmName) |
The name of the alarm.
|
MetricAlarm.Builder |
comparisonOperator(String comparisonOperator) |
The arithmetic operation to use when comparing the specified statistic and threshold.
|
MetricAlarm.Builder |
comparisonOperator(ComparisonOperator comparisonOperator) |
The arithmetic operation to use when comparing the specified statistic and threshold.
|
MetricAlarm.Builder |
dimensions(Collection<Dimension> dimensions) |
The dimensions for the metric associated with the alarm.
|
MetricAlarm.Builder |
dimensions(Dimension... dimensions) |
The dimensions for the metric associated with the alarm.
|
MetricAlarm.Builder |
evaluateLowSampleCountPercentile(String evaluateLowSampleCountPercentile) |
|
MetricAlarm.Builder |
evaluationPeriods(Integer evaluationPeriods) |
The number of periods over which data is compared to the specified threshold.
|
MetricAlarm.Builder |
extendedStatistic(String extendedStatistic) |
The percentile statistic for the metric associated with the alarm.
|
MetricAlarm.Builder |
insufficientDataActions(String... insufficientDataActions) |
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA state from any other
state. |
MetricAlarm.Builder |
insufficientDataActions(Collection<String> insufficientDataActions) |
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA state from any other
state. |
MetricAlarm.Builder |
metricName(String metricName) |
The name of the metric associated with the alarm.
|
MetricAlarm.Builder |
namespace(String namespace) |
The namespace of the metric associated with the alarm.
|
MetricAlarm.Builder |
okActions(String... okActions) |
The actions to execute when this alarm transitions to the
OK state from any other state. |
MetricAlarm.Builder |
okActions(Collection<String> okActions) |
The actions to execute when this alarm transitions to the
OK state from any other state. |
MetricAlarm.Builder |
period(Integer period) |
The period, in seconds, over which the statistic is applied.
|
MetricAlarm.Builder |
stateReason(String stateReason) |
An explanation for the alarm state, in text format.
|
MetricAlarm.Builder |
stateReasonData(String stateReasonData) |
An explanation for the alarm state, in JSON format.
|
MetricAlarm.Builder |
stateUpdatedTimestamp(Date stateUpdatedTimestamp) |
The time stamp of the last update to the alarm state.
|
MetricAlarm.Builder |
stateValue(String stateValue) |
The state value for the alarm.
|
MetricAlarm.Builder |
stateValue(StateValue stateValue) |
The state value for the alarm.
|
MetricAlarm.Builder |
statistic(String statistic) |
The statistic for the metric associated with the alarm, other than percentile.
|
MetricAlarm.Builder |
statistic(Statistic statistic) |
The statistic for the metric associated with the alarm, other than percentile.
|
MetricAlarm.Builder |
threshold(Double threshold) |
The value to compare with the specified statistic.
|
MetricAlarm.Builder |
treatMissingData(String treatMissingData) |
|
MetricAlarm.Builder |
unit(String unit) |
The unit of the metric associated with the alarm.
|
MetricAlarm.Builder |
unit(StandardUnit unit) |
The unit of the metric associated with the alarm.
|
copy
apply, build
MetricAlarm.Builder alarmName(String alarmName)
The name of the alarm.
alarmName
- The name of the alarm.MetricAlarm.Builder alarmArn(String alarmArn)
The Amazon Resource Name (ARN) of the alarm.
alarmArn
- The Amazon Resource Name (ARN) of the alarm.MetricAlarm.Builder alarmDescription(String alarmDescription)
The description of the alarm.
alarmDescription
- The description of the alarm.MetricAlarm.Builder alarmConfigurationUpdatedTimestamp(Date alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration.
alarmConfigurationUpdatedTimestamp
- The time stamp of the last update to the alarm configuration.MetricAlarm.Builder actionsEnabled(Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm state.
actionsEnabled
- Indicates whether actions should be executed during any changes to the alarm state.MetricAlarm.Builder okActions(Collection<String> okActions)
The actions to execute when this alarm transitions to the OK
state from any other state. Each
action is specified as an Amazon Resource Name (ARN).
okActions
- The actions to execute when this alarm transitions to the OK
state from any other state.
Each action is specified as an Amazon Resource Name (ARN).MetricAlarm.Builder okActions(String... okActions)
The actions to execute when this alarm transitions to the OK
state from any other state. Each
action is specified as an Amazon Resource Name (ARN).
NOTE: This method appends the values to the existing list (if any). Use
#setOKActions(java.util.Collection)
or #withOKActions(java.util.Collection)
if you want to
override the existing values.
okActions
- The actions to execute when this alarm transitions to the OK
state from any other state.
Each action is specified as an Amazon Resource Name (ARN).MetricAlarm.Builder alarmActions(Collection<String> alarmActions)
The actions to execute when this alarm transitions to the ALARM
state from any other state. Each
action is specified as an Amazon Resource Name (ARN).
alarmActions
- The actions to execute when this alarm transitions to the ALARM
state from any other
state. Each action is specified as an Amazon Resource Name (ARN).MetricAlarm.Builder alarmActions(String... alarmActions)
The actions to execute when this alarm transitions to the ALARM
state from any other state. Each
action is specified as an Amazon Resource Name (ARN).
NOTE: This method appends the values to the existing list (if any). Use
#setAlarmActions(java.util.Collection)
or #withAlarmActions(java.util.Collection)
if you want
to override the existing values.
alarmActions
- The actions to execute when this alarm transitions to the ALARM
state from any other
state. Each action is specified as an Amazon Resource Name (ARN).MetricAlarm.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 Amazon Resource Name (ARN).
insufficientDataActions
- The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
state from
any other state. Each action is specified as an Amazon Resource Name (ARN).MetricAlarm.Builder insufficientDataActions(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 Amazon Resource Name (ARN).
NOTE: This method appends the values to the existing list (if any). Use
#setInsufficientDataActions(java.util.Collection)
or
#withInsufficientDataActions(java.util.Collection)
if you want to override the existing values.
insufficientDataActions
- The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
state from
any other state. Each action is specified as an Amazon Resource Name (ARN).MetricAlarm.Builder stateValue(String stateValue)
The state value for the alarm.
stateValue
- The state value for the alarm.StateValue
MetricAlarm.Builder stateValue(StateValue stateValue)
The state value for the alarm.
stateValue
- The state value for the alarm.StateValue
MetricAlarm.Builder stateReason(String stateReason)
An explanation for the alarm state, in text format.
stateReason
- An explanation for the alarm state, in text format.MetricAlarm.Builder stateReasonData(String stateReasonData)
An explanation for the alarm state, in JSON format.
stateReasonData
- An explanation for the alarm state, in JSON format.MetricAlarm.Builder stateUpdatedTimestamp(Date stateUpdatedTimestamp)
The time stamp of the last update to the alarm state.
stateUpdatedTimestamp
- The time stamp of the last update to the alarm state.MetricAlarm.Builder metricName(String metricName)
The name of the metric associated with the alarm.
metricName
- The name of the metric associated with the alarm.MetricAlarm.Builder namespace(String namespace)
The namespace of the metric associated with the alarm.
namespace
- The namespace of the metric associated with the alarm.MetricAlarm.Builder statistic(String statistic)
The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
.
statistic
- The statistic for the metric associated with the alarm, other than percentile. For percentile
statistics, use ExtendedStatistic
.Statistic
MetricAlarm.Builder statistic(Statistic statistic)
The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
.
statistic
- The statistic for the metric associated with the alarm, other than percentile. For percentile
statistics, use ExtendedStatistic
.Statistic
MetricAlarm.Builder extendedStatistic(String extendedStatistic)
The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
extendedStatistic
- The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and
p100.MetricAlarm.Builder dimensions(Collection<Dimension> dimensions)
The dimensions for the metric associated with the alarm.
dimensions
- The dimensions for the metric associated with the alarm.MetricAlarm.Builder dimensions(Dimension... dimensions)
The dimensions for the metric associated with the alarm.
NOTE: This method appends the values to the existing list (if any). Use
#setDimensions(java.util.Collection)
or #withDimensions(java.util.Collection)
if you want to
override the existing values.
dimensions
- The dimensions for the metric associated with the alarm.MetricAlarm.Builder period(Integer period)
The period, in seconds, over which the statistic is applied.
period
- The period, in seconds, over which the statistic is applied.MetricAlarm.Builder unit(String unit)
The unit of the metric associated with the alarm.
unit
- The unit of the metric associated with the alarm.StandardUnit
MetricAlarm.Builder unit(StandardUnit unit)
The unit of the metric associated with the alarm.
unit
- The unit of the metric associated with the alarm.StandardUnit
MetricAlarm.Builder evaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
evaluationPeriods
- The number of periods over which data is compared to the specified threshold.MetricAlarm.Builder threshold(Double threshold)
The value to compare with the specified statistic.
threshold
- The value to compare with the specified statistic.MetricAlarm.Builder comparisonOperator(String comparisonOperator)
The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
comparisonOperator
- The arithmetic operation to use when comparing the specified statistic and threshold. The specified
statistic value is used as the first operand.ComparisonOperator
MetricAlarm.Builder comparisonOperator(ComparisonOperator comparisonOperator)
The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
comparisonOperator
- The arithmetic operation to use when comparing the specified statistic and threshold. The specified
statistic value is used as the first operand.ComparisonOperator
MetricAlarm.Builder treatMissingData(String treatMissingData)
treatMissingData
- MetricAlarm.Builder evaluateLowSampleCountPercentile(String evaluateLowSampleCountPercentile)
evaluateLowSampleCountPercentile
- Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.