public static interface TargetTrackingMetricStat.Builder extends SdkPojo, CopyableBuilder<TargetTrackingMetricStat.Builder,TargetTrackingMetricStat>
| Modifier and Type | Method and Description |
|---|---|
default TargetTrackingMetricStat.Builder |
metric(Consumer<TargetTrackingMetric.Builder> metric)
The CloudWatch metric to return, including the metric name, namespace, and dimensions.
|
TargetTrackingMetricStat.Builder |
metric(TargetTrackingMetric metric)
The CloudWatch metric to return, including the metric name, namespace, and dimensions.
|
TargetTrackingMetricStat.Builder |
stat(String stat)
The statistic to return.
|
TargetTrackingMetricStat.Builder |
unit(String unit)
The unit to use for the returned data points.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTargetTrackingMetricStat.Builder metric(TargetTrackingMetric metric)
The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
metric - The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the
exact metric name, namespace, and dimensions, inspect the Metric
object that is returned by a call to ListMetrics.default TargetTrackingMetricStat.Builder metric(Consumer<TargetTrackingMetric.Builder> metric)
The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
This is a convenience method that creates an instance of theTargetTrackingMetric.Builder avoiding
the need to create one manually via TargetTrackingMetric.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to metric(TargetTrackingMetric).
metric - a consumer that will call methods on TargetTrackingMetric.Buildermetric(TargetTrackingMetric)TargetTrackingMetricStat.Builder stat(String stat)
The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.
The most commonly used metric for scaling is Average.
stat - The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of
valid values, see the table in Statistics in the Amazon CloudWatch User Guide.
The most commonly used metric for scaling is Average.
TargetTrackingMetricStat.Builder unit(String unit)
The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
unit - The unit to use for the returned data points. For a complete list of the units that CloudWatch
supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.Copyright © 2023. All rights reserved.