public static interface CustomizedMetricSpecification.Builder extends SdkPojo, CopyableBuilder<CustomizedMetricSpecification.Builder,CustomizedMetricSpecification>
| Modifier and Type | Method and Description |
|---|---|
CustomizedMetricSpecification.Builder |
dimensions(Collection<MetricDimension> dimensions)
The dimensions of the metric.
|
CustomizedMetricSpecification.Builder |
dimensions(Consumer<MetricDimension.Builder>... dimensions)
The dimensions of the metric.
|
CustomizedMetricSpecification.Builder |
dimensions(MetricDimension... dimensions)
The dimensions of the metric.
|
CustomizedMetricSpecification.Builder |
metricName(String metricName)
The name of the metric.
|
CustomizedMetricSpecification.Builder |
namespace(String namespace)
The namespace of the metric.
|
CustomizedMetricSpecification.Builder |
statistic(MetricStatistic statistic)
The statistic of the metric.
|
CustomizedMetricSpecification.Builder |
statistic(String statistic)
The statistic of the metric.
|
CustomizedMetricSpecification.Builder |
unit(String unit)
The unit of the metric.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCustomizedMetricSpecification.Builder metricName(String metricName)
The name of the metric. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
metricName - The name of the metric. To get the exact metric name, namespace, and dimensions, inspect the Metric
object that is returned by a call to ListMetrics.CustomizedMetricSpecification.Builder namespace(String namespace)
The namespace of the metric.
namespace - The namespace of the metric.CustomizedMetricSpecification.Builder dimensions(Collection<MetricDimension> dimensions)
The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
dimensions - The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
CustomizedMetricSpecification.Builder dimensions(MetricDimension... dimensions)
The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
dimensions - The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
CustomizedMetricSpecification.Builder dimensions(Consumer<MetricDimension.Builder>... dimensions)
The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
This is a convenience method that creates an instance of theMetricDimension.Builder avoiding the need to create
one manually via MetricDimension.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #dimensions(List.
dimensions - a consumer that will call methods on
MetricDimension.Builder#dimensions(java.util.Collection) CustomizedMetricSpecification.Builder statistic(String statistic)
The statistic of the metric.
statistic - The statistic of the metric.MetricStatistic,
MetricStatisticCustomizedMetricSpecification.Builder statistic(MetricStatistic statistic)
The statistic of the metric.
statistic - The statistic of the metric.MetricStatistic,
MetricStatisticCustomizedMetricSpecification.Builder unit(String unit)
The unit of the metric. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
unit - The unit of the metric. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.Copyright © 2022. All rights reserved.