ToCopyableBuilder<MetricAlarm.Builder,MetricAlarm>
@Generated("software.amazon.awssdk:codegen") public class MetricAlarm extends Object implements ToCopyableBuilder<MetricAlarm.Builder,MetricAlarm>
Represents an alarm.
Modifier and Type | Class | Description |
---|---|---|
static interface |
MetricAlarm.Builder |
Modifier and Type | Method | Description |
---|---|---|
Boolean |
actionsEnabled() |
Indicates whether actions should be executed during any changes to the alarm state.
|
List<String> |
alarmActions() |
The actions to execute when this alarm transitions to the
ALARM state from any other state. |
String |
alarmArn() |
The Amazon Resource Name (ARN) of the alarm.
|
Date |
alarmConfigurationUpdatedTimestamp() |
The time stamp of the last update to the alarm configuration.
|
String |
alarmDescription() |
The description of the alarm.
|
String |
alarmName() |
The name of the alarm.
|
static MetricAlarm.Builder |
builder() |
|
String |
comparisonOperator() |
The arithmetic operation to use when comparing the specified statistic and threshold.
|
List<Dimension> |
dimensions() |
The dimensions for the metric associated with the alarm.
|
boolean |
equals(Object obj) |
|
String |
evaluateLowSampleCountPercentile() |
|
Integer |
evaluationPeriods() |
The number of periods over which data is compared to the specified threshold.
|
String |
extendedStatistic() |
The percentile statistic for the metric associated with the alarm.
|
int |
hashCode() |
|
List<String> |
insufficientDataActions() |
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA state from any other
state. |
String |
metricName() |
The name of the metric associated with the alarm.
|
String |
namespace() |
The namespace of the metric associated with the alarm.
|
List<String> |
okActions() |
The actions to execute when this alarm transitions to the
OK state from any other state. |
Integer |
period() |
The period, in seconds, over which the statistic is applied.
|
static Class<? extends MetricAlarm.Builder> |
serializableBuilderClass() |
|
String |
stateReason() |
An explanation for the alarm state, in text format.
|
String |
stateReasonData() |
An explanation for the alarm state, in JSON format.
|
Date |
stateUpdatedTimestamp() |
The time stamp of the last update to the alarm state.
|
String |
stateValue() |
The state value for the alarm.
|
String |
statistic() |
The statistic for the metric associated with the alarm, other than percentile.
|
Double |
threshold() |
The value to compare with the specified statistic.
|
MetricAlarm.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
String |
treatMissingData() |
|
String |
unit() |
The unit of the metric associated with the alarm.
|
public String alarmName()
The name of the alarm.
public String alarmArn()
The Amazon Resource Name (ARN) of the alarm.
public String alarmDescription()
The description of the alarm.
public Date alarmConfigurationUpdatedTimestamp()
The time stamp of the last update to the alarm configuration.
public Boolean actionsEnabled()
Indicates whether actions should be executed during any changes to the alarm state.
public List<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).
OK
state from any other state.
Each action is specified as an Amazon Resource Name (ARN).public List<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).
ALARM
state from any other state.
Each action is specified as an Amazon Resource Name (ARN).public List<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).
INSUFFICIENT_DATA
state from any
other state. Each action is specified as an Amazon Resource Name (ARN).public String stateValue()
The state value for the alarm.
StateValue
public String stateReason()
An explanation for the alarm state, in text format.
public String stateReasonData()
An explanation for the alarm state, in JSON format.
public Date stateUpdatedTimestamp()
The time stamp of the last update to the alarm state.
public String metricName()
The name of the metric associated with the alarm.
public String namespace()
The namespace of the metric associated with the alarm.
public String statistic()
The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
.
ExtendedStatistic
.Statistic
public String extendedStatistic()
The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
public List<Dimension> dimensions()
The dimensions for the metric associated with the alarm.
public Integer period()
The period, in seconds, over which the statistic is applied.
public String unit()
The unit of the metric associated with the alarm.
StandardUnit
public Integer evaluationPeriods()
The number of periods over which data is compared to the specified threshold.
public Double threshold()
The value to compare with the specified statistic.
public 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
public String treatMissingData()
public String evaluateLowSampleCountPercentile()
public MetricAlarm.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MetricAlarm.Builder,MetricAlarm>
public static MetricAlarm.Builder builder()
public static Class<? extends MetricAlarm.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.