Interface CustomizedMetricSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CustomizedMetricSpecification.Builder,
,CustomizedMetricSpecification> SdkBuilder<CustomizedMetricSpecification.Builder,
,CustomizedMetricSpecification> SdkPojo
- Enclosing class:
CustomizedMetricSpecification
-
Method Summary
Modifier and TypeMethodDescriptiondimensions
(Collection<MetricDimension> dimensions) The dimensions of the metric.dimensions
(Consumer<MetricDimension.Builder>... dimensions) The dimensions of the metric.dimensions
(MetricDimension... dimensions) The dimensions of the metric.metricName
(String metricName) The name of the metric.metrics
(Collection<TargetTrackingMetricDataQuery> metrics) The metrics to include in the target tracking scaling policy, as a metric data query.metrics
(Consumer<TargetTrackingMetricDataQuery.Builder>... metrics) The metrics to include in the target tracking scaling policy, as a metric data query.metrics
(TargetTrackingMetricDataQuery... metrics) The metrics to include in the target tracking scaling policy, as a metric data query.The namespace of the metric.The statistic of the metric.statistic
(MetricStatistic statistic) The statistic of the metric.The unit of the metric.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
metricName
The name of the metric. To get the exact metric name, namespace, and dimensions, inspect the Metric object that's returned by a call to ListMetrics.
- Parameters:
metricName
- The name of the metric. To get the exact metric name, namespace, and dimensions, inspect the Metric object that's returned by a call to ListMetrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespace
The namespace of the metric.
- Parameters:
namespace
- The namespace of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
- Parameters:
dimensions
- The dimensions of the metric.Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
- Parameters:
dimensions
- The dimensions of the metric.Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaMetricDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensions(List<MetricDimension>)
.- Parameters:
dimensions
- a consumer that will call methods onMetricDimension.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statistic
The statistic of the metric.
- Parameters:
statistic
- The statistic of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statistic
The statistic of the metric.
- Parameters:
statistic
- The statistic of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.
- Parameters:
metrics
- The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.
- Parameters:
metrics
- The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
CustomizedMetricSpecification.Builder metrics(Consumer<TargetTrackingMetricDataQuery.Builder>... metrics) The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.
This is a convenience method that creates an instance of theTargetTrackingMetricDataQuery.Builder
avoiding the need to create one manually viaTargetTrackingMetricDataQuery.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometrics(List<TargetTrackingMetricDataQuery>)
.- Parameters:
metrics
- a consumer that will call methods onTargetTrackingMetricDataQuery.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-