@Generated(value="software.amazon.awssdk:codegen") public final class MetricData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricData.Builder,MetricData>
The name, value, and date and time of a metric that was emitted to Amazon CloudWatch.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetricData.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MetricData.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
metricName()
The name of the metric.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MetricData.Builder> |
serializableBuilderClass() |
Instant |
timestamp()
The date and time that the algorithm emitted the metric.
|
MetricData.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Float |
value()
The value of the metric.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String metricName()
The name of the metric.
public final Float value()
The value of the metric.
public final Instant timestamp()
The date and time that the algorithm emitted the metric.
public MetricData.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MetricData.Builder,MetricData>public static MetricData.Builder builder()
public static Class<? extends MetricData.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.