CopyableBuilder<MetricDatum.Builder,MetricDatum>
, SdkBuilder<MetricDatum.Builder,MetricDatum>
public static interface MetricDatum.Builder extends CopyableBuilder<MetricDatum.Builder,MetricDatum>
Modifier and Type | Method | Description |
---|---|---|
MetricDatum.Builder |
dimensions(Collection<Dimension> dimensions) |
The dimensions associated with the metric.
|
MetricDatum.Builder |
dimensions(Dimension... dimensions) |
The dimensions associated with the metric.
|
MetricDatum.Builder |
metricName(String metricName) |
The name of the metric.
|
MetricDatum.Builder |
statisticValues(StatisticSet statisticValues) |
The statistical values for the metric.
|
MetricDatum.Builder |
timestamp(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 |
unit(String unit) |
The unit of the metric.
|
MetricDatum.Builder |
unit(StandardUnit unit) |
The unit of the metric.
|
MetricDatum.Builder |
value(Double value) |
The value for the metric.
|
copy
apply, build
MetricDatum.Builder metricName(String metricName)
The name of the metric.
metricName
- The name of the metric.MetricDatum.Builder dimensions(Collection<Dimension> dimensions)
The dimensions associated with the metric.
dimensions
- The dimensions associated with the metric.MetricDatum.Builder dimensions(Dimension... dimensions)
The dimensions associated with the metric.
NOTE: This method appends the values to the existing list (if any). Use
#setDimensions(java.util.Collection)
or #withDimensions(java.util.Collection)
if you want to
override the existing values.
dimensions
- The dimensions associated with the metric.MetricDatum.Builder timestamp(Date timestamp)
The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.
timestamp
- The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970
00:00:00 UTC.MetricDatum.Builder value(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.
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.
MetricDatum.Builder statisticValues(StatisticSet statisticValues)
The statistical values for the metric.
statisticValues
- The statistical values for the metric.MetricDatum.Builder unit(String unit)
The unit of the metric.
unit
- The unit of the metric.StandardUnit
MetricDatum.Builder unit(StandardUnit unit)
The unit of the metric.
unit
- The unit of the metric.StandardUnit
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.