public static interface CloudWatchAlarmDefinition.Builder extends CopyableBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>
Modifier and Type | Method and Description |
---|---|
CloudWatchAlarmDefinition.Builder |
comparisonOperator(ComparisonOperator comparisonOperator)
Determines how the metric specified by
MetricName is compared to the value specified by
Threshold . |
CloudWatchAlarmDefinition.Builder |
comparisonOperator(String comparisonOperator)
Determines how the metric specified by
MetricName is compared to the value specified by
Threshold . |
CloudWatchAlarmDefinition.Builder |
dimensions(Collection<MetricDimension> dimensions)
A CloudWatch metric dimension.
|
CloudWatchAlarmDefinition.Builder |
dimensions(Consumer<MetricDimension.Builder>... dimensions)
A CloudWatch metric dimension.
|
CloudWatchAlarmDefinition.Builder |
dimensions(MetricDimension... dimensions)
A CloudWatch metric dimension.
|
CloudWatchAlarmDefinition.Builder |
evaluationPeriods(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. |
CloudWatchAlarmDefinition.Builder |
metricName(String metricName)
The name of the CloudWatch metric that is watched to determine an alarm condition.
|
CloudWatchAlarmDefinition.Builder |
namespace(String namespace)
The namespace for the CloudWatch metric.
|
CloudWatchAlarmDefinition.Builder |
period(Integer period)
The period, in seconds, over which the statistic is applied.
|
CloudWatchAlarmDefinition.Builder |
statistic(Statistic statistic)
The statistic to apply to the metric associated with the alarm.
|
CloudWatchAlarmDefinition.Builder |
statistic(String statistic)
The statistic to apply to the metric associated with the alarm.
|
CloudWatchAlarmDefinition.Builder |
threshold(Double threshold)
The value against which the specified statistic is compared.
|
CloudWatchAlarmDefinition.Builder |
unit(String unit)
The unit of measure associated with the CloudWatch metric being watched.
|
CloudWatchAlarmDefinition.Builder |
unit(Unit unit)
The unit of measure associated with the CloudWatch metric being watched.
|
copy
applyMutation, build
CloudWatchAlarmDefinition.Builder comparisonOperator(String comparisonOperator)
Determines how the metric specified by MetricName
is compared to the value specified by
Threshold
.
comparisonOperator
- Determines how the metric specified by MetricName
is compared to the value specified by
Threshold
.ComparisonOperator
,
ComparisonOperator
CloudWatchAlarmDefinition.Builder comparisonOperator(ComparisonOperator comparisonOperator)
Determines how the metric specified by MetricName
is compared to the value specified by
Threshold
.
comparisonOperator
- Determines how the metric specified by MetricName
is compared to the value specified by
Threshold
.ComparisonOperator
,
ComparisonOperator
CloudWatchAlarmDefinition.Builder evaluationPeriods(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
.
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
.CloudWatchAlarmDefinition.Builder metricName(String metricName)
The name of the CloudWatch metric that is watched to determine an alarm condition.
metricName
- The name of the CloudWatch metric that is watched to determine an alarm condition.CloudWatchAlarmDefinition.Builder namespace(String namespace)
The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce
.
namespace
- The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce
.CloudWatchAlarmDefinition.Builder period(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
.
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
.CloudWatchAlarmDefinition.Builder statistic(String statistic)
The statistic to apply to the metric associated with the alarm. The default is AVERAGE
.
CloudWatchAlarmDefinition.Builder statistic(Statistic statistic)
The statistic to apply to the metric associated with the alarm. The default is AVERAGE
.
CloudWatchAlarmDefinition.Builder threshold(Double threshold)
The value against which the specified statistic is compared.
threshold
- The value against which the specified statistic is compared.CloudWatchAlarmDefinition.Builder unit(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.
CloudWatchAlarmDefinition.Builder unit(Unit 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.
CloudWatchAlarmDefinition.Builder dimensions(Collection<MetricDimension> dimensions)
A CloudWatch metric dimension.
dimensions
- A CloudWatch metric dimension.CloudWatchAlarmDefinition.Builder dimensions(MetricDimension... dimensions)
A CloudWatch metric dimension.
dimensions
- A CloudWatch metric dimension.CloudWatchAlarmDefinition.Builder dimensions(Consumer<MetricDimension.Builder>... dimensions)
A CloudWatch metric dimension.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #dimensions(List)
.dimensions
- a consumer that will call methods on List.Builder
#dimensions(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.