ToCopyableBuilder<MetricDatum.Builder,MetricDatum>
@Generated("software.amazon.awssdk:codegen") public class MetricDatum extends Object implements ToCopyableBuilder<MetricDatum.Builder,MetricDatum>
Encapsulates the information sent to either create a metric or add new values to be aggregated into an existing metric.
Modifier and Type | Class | Description |
---|---|---|
static interface |
MetricDatum.Builder |
Modifier and Type | Method | Description |
---|---|---|
static MetricDatum.Builder |
builder() |
|
List<Dimension> |
dimensions() |
The dimensions associated with the metric.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
metricName() |
The name of the metric.
|
static Class<? extends MetricDatum.Builder> |
serializableBuilderClass() |
|
StatisticSet |
statisticValues() |
The statistical values for the metric.
|
Date |
timestamp() |
The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.
|
MetricDatum.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
String |
unit() |
The unit of the metric.
|
Double |
value() |
The value for the metric.
|
public String metricName()
The name of the metric.
public List<Dimension> dimensions()
The dimensions associated with the metric.
public Date timestamp()
The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.
public Double value()
The value for the metric.
Although the parameter accepts numbers of type Double, Amazon CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.
Although the parameter accepts numbers of type Double, Amazon CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.
public StatisticSet statisticValues()
The statistical values for the metric.
public String unit()
The unit of the metric.
StandardUnit
public MetricDatum.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MetricDatum.Builder,MetricDatum>
public static MetricDatum.Builder builder()
public static Class<? extends MetricDatum.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.