@Generated(value="software.amazon.awssdk:codegen") public final class MetricStat extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricStat.Builder,MetricStat>
This structure defines the CloudWatch metric to return, along with the statistic, period, and unit.
For more information about the CloudWatch terminology below, see Amazon CloudWatch concepts in the Amazon CloudWatch User Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetricStat.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MetricStat.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Metric |
metric()
The CloudWatch metric to return, including the metric name, namespace, and dimensions.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MetricStat.Builder> |
serializableBuilderClass() |
String |
stat()
The statistic to return.
|
MetricStat.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
unit()
The unit to use for the returned data points.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Metric 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.
public final 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 metrics for predictive scaling are Average and Sum.
The most commonly used metrics for predictive scaling are Average and Sum.
public final 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.
public MetricStat.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MetricStat.Builder,MetricStat>public static MetricStat.Builder builder()
public static Class<? extends MetricStat.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.