@Generated(value="software.amazon.awssdk:codegen") public final class MetricStat extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricStat.Builder,MetricStat>
This structure defines the metric to be returned, along with the statistics, period, and units.
Modifier and Type | Class and Description |
---|---|
static interface |
MetricStat.Builder |
Modifier and Type | Method and Description |
---|---|
static MetricStat.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Metric |
metric()
The metric to return, including the metric name, namespace, and dimensions.
|
Integer |
period()
The period, in seconds, to use when retrieving the metric.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MetricStat.Builder> |
serializableBuilderClass() |
String |
stat()
The statistic to return.
|
MetricStat.Builder |
toBuilder() |
String |
toString() |
StandardUnit |
unit()
The unit to use for the returned data points.
|
String |
unitAsString()
The unit to use for the returned data points.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public Metric metric()
The metric to return, including the metric name, namespace, and dimensions.
public Integer period()
The period, in seconds, to use when retrieving the metric.
public String stat()
The statistic to return. It can include any CloudWatch statistic or extended statistic.
public StandardUnit unit()
The unit to use for the returned data points.
If the service returns an enum value that is not available in the current SDK version, unit
will return
StandardUnit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
unitAsString()
.
StandardUnit
public String unitAsString()
The unit to use for the returned data points.
If the service returns an enum value that is not available in the current SDK version, unit
will return
StandardUnit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
unitAsString()
.
StandardUnit
public MetricStat.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<MetricStat.Builder,MetricStat>
public static MetricStat.Builder builder()
public static Class<? extends MetricStat.Builder> serializableBuilderClass()
Copyright © 2018. All rights reserved.