StructuredPojo
, ToCopyableBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>
@Generated("software.amazon.awssdk:codegen") public class CloudWatchAlarmDefinition extends Object implements StructuredPojo, ToCopyableBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>
The definition of a CloudWatch metric alarm, which determines when an automatic scaling activity is triggered. When the defined alarm conditions are satisfied, scaling activity begins.
Modifier and Type | Class | Description |
---|---|---|
static interface |
CloudWatchAlarmDefinition.Builder |
Modifier and Type | Method | Description |
---|---|---|
static CloudWatchAlarmDefinition.Builder |
builder() |
|
String |
comparisonOperator() |
Determines how the metric specified by
MetricName is compared to the value specified by
Threshold . |
List<MetricDimension> |
dimensions() |
A CloudWatch metric dimension.
|
boolean |
equals(Object obj) |
|
Integer |
evaluationPeriods() |
The number of periods, expressed in seconds using
Period , during which the alarm condition must
exist before the alarm triggers automatic scaling activity. |
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
metricName() |
The name of the CloudWatch metric that is watched to determine an alarm condition.
|
String |
namespace() |
The namespace for the CloudWatch metric.
|
Integer |
period() |
The period, in seconds, over which the statistic is applied.
|
static Class<? extends CloudWatchAlarmDefinition.Builder> |
serializableBuilderClass() |
|
String |
statistic() |
The statistic to apply to the metric associated with the alarm.
|
Double |
threshold() |
The value against which the specified statistic is compared.
|
CloudWatchAlarmDefinition.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
String |
unit() |
The unit of measure associated with the CloudWatch metric being watched.
|
public String comparisonOperator()
Determines how the metric specified by MetricName
is compared to the value specified by
Threshold
.
MetricName
is compared to the value specified by
Threshold
.ComparisonOperator
public Integer evaluationPeriods()
The number of periods, expressed in seconds using Period
, during which the alarm condition must
exist before the alarm triggers automatic scaling activity. The default value is 1
.
Period
, during which the alarm condition
must exist before the alarm triggers automatic scaling activity. The default value is 1
.public String metricName()
The name of the CloudWatch metric that is watched to determine an alarm condition.
public String namespace()
The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce
.
AWS/ElasticMapReduce
.public Integer period()
The period, in seconds, over which the statistic is applied. EMR CloudWatch metrics are emitted every five
minutes (300 seconds), so if an EMR CloudWatch metric is specified, specify 300
.
300
.public String statistic()
The statistic to apply to the metric associated with the alarm. The default is AVERAGE
.
AVERAGE
.Statistic
public Double threshold()
The value against which the specified statistic is compared.
public String unit()
The unit of measure associated with the CloudWatch metric being watched. The value specified for
Unit
must correspond to the units specified in the CloudWatch metric.
Unit
must correspond to the units specified in the CloudWatch metric.Unit
public List<MetricDimension> dimensions()
A CloudWatch metric dimension.
public CloudWatchAlarmDefinition.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>
public static CloudWatchAlarmDefinition.Builder builder()
public static Class<? extends CloudWatchAlarmDefinition.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.