public static interface Metric.Builder extends SdkPojo, CopyableBuilder<Metric.Builder,Metric>
| Modifier and Type | Method and Description |
|---|---|
Metric.Builder |
dimensions(Collection<MetricDimension> dimensions)
The dimensions for the metric.
|
Metric.Builder |
dimensions(Consumer<MetricDimension.Builder>... dimensions)
The dimensions for the metric.
|
Metric.Builder |
dimensions(MetricDimension... dimensions)
The dimensions for the metric.
|
Metric.Builder |
metricName(String metricName)
The name of the metric.
|
Metric.Builder |
namespace(String namespace)
The namespace of the metric.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildMetric.Builder namespace(String namespace)
The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
namespace - The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User
Guide.Metric.Builder metricName(String metricName)
The name of the metric.
metricName - The name of the metric.Metric.Builder dimensions(Collection<MetricDimension> dimensions)
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
dimensions - The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services
documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User
Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
Metric.Builder dimensions(MetricDimension... dimensions)
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
dimensions - The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services
documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User
Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
Metric.Builder dimensions(Consumer<MetricDimension.Builder>... dimensions)
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
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) Copyright © 2022. All rights reserved.