public static class TimeSeriesMetricDataPoint.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TimeSeriesMetricDataPoint |
build() |
TimeSeriesMetricDataPoint.Builder |
copy(TimeSeriesMetricDataPoint model) |
TimeSeriesMetricDataPoint.Builder |
dimensions(List<MetricDimensionDefinition> dimensions)
The dimensions of the metric.
|
TimeSeriesMetricDataPoint.Builder |
timestamp(Date timestamp)
The date and time the metric was created.
|
TimeSeriesMetricDataPoint.Builder |
unit(String unit)
The unit of the metric value.
|
TimeSeriesMetricDataPoint.Builder |
value(Double value)
The value of the metric.
|
public TimeSeriesMetricDataPoint.Builder timestamp(Date timestamp)
The date and time the metric was created.
timestamp
- the value to setpublic TimeSeriesMetricDataPoint.Builder value(Double value)
The value of the metric.
value
- the value to setpublic TimeSeriesMetricDataPoint.Builder unit(String unit)
The unit of the metric value.
unit
- the value to setpublic TimeSeriesMetricDataPoint.Builder dimensions(List<MetricDimensionDefinition> dimensions)
The dimensions of the metric.
dimensions
- the value to setpublic TimeSeriesMetricDataPoint build()
public TimeSeriesMetricDataPoint.Builder copy(TimeSeriesMetricDataPoint model)
Copyright © 2016–2024. All rights reserved.