public static class MetricDatum.Builder extends Object
Constructor and Description |
---|
MetricDatum.Builder()
Creates a new builder.
|
Modifier and Type | Method and Description |
---|---|
MetricDatum |
build()
Returns a newly-created
MetricDatum based on the contents of the Builder . |
MetricDatum.Builder |
dimension(Dimension dimension)
A dimension describing qualities of the metric.
|
MetricDatum.Builder |
dimensions(Iterable<Dimension> dimensions)
A list of dimensions describing qualities of the metric.
|
MetricDatum.Builder |
metricName(String metricName)
The name of the metric.
|
MetricDatum.Builder |
statisticValues(StatisticValues statisticValues)
The object describing the set of statistical values describing the metric.
|
MetricDatum.Builder |
timestamp(Date timestamp)
The time stamp used for the metric.
|
MetricDatum.Builder |
unit(Unit unit)
The unit for the metric.
|
MetricDatum.Builder |
value(Double value)
The value for the metric.
|
public MetricDatum.Builder()
MetricDatum.builder()
.public MetricDatum.Builder dimensions(Iterable<Dimension> dimensions)
dimensions
- the dimensions describing the qualities of the metricBuilder
objectpublic MetricDatum.Builder dimension(Dimension dimension)
dimension
- the dimension describing the qualities of the metricBuilder
objectpublic MetricDatum.Builder metricName(String metricName)
metricName
- the metric nameBuilder
objectpublic MetricDatum.Builder statisticValues(StatisticValues statisticValues)
statisticValues
- the object describing the set of statistical values for the metricBuilder
objectpublic MetricDatum.Builder timestamp(Date timestamp)
timestamp
- the time stamp used for the metricBuilder
objectpublic MetricDatum.Builder unit(Unit unit)
unit
- the unit for the metricBuilder
objectpublic MetricDatum.Builder value(Double value)
value
- the value for the metricBuilder
objectpublic MetricDatum build()
MetricDatum
based on the contents of the Builder
.Copyright © 2009-2013 jclouds. All Rights Reserved.