public static class GaugeMetricValue.GaugeValueBuilder extends MetricValue.Builder<GaugeMetricValue.GaugeValueBuilder>
Constructor and Description |
---|
GaugeMetricValue.GaugeValueBuilder(String uid) |
public GaugeMetricValue.GaugeValueBuilder(String uid)
public GaugeMetricValue.GaugeValueBuilder doubleValue(double value)
value
- the double valuepublic GaugeMetricValue build()
build
in class MetricValue.Builder<GaugeMetricValue.GaugeValueBuilder>
public GaugeMetricValue.GaugeValueBuilder count(long toSet)
MetricValue.Builder
count
in class MetricValue.Builder<GaugeMetricValue.GaugeValueBuilder>
toSet
- the countpublic GaugeMetricValue.GaugeValueBuilder dataPoints(int toSet)
MetricValue.Builder
DataPoint
s summarized to produce this
value.dataPoints
in class MetricValue.Builder<GaugeMetricValue.GaugeValueBuilder>
toSet
- the count of summarized DataPoint
spublic GaugeMetricValue.GaugeValueBuilder firstPersistDate(Date toSet)
MetricValue.Builder
DataPoint
summarized to produce
this value.firstPersistDate
in class MetricValue.Builder<GaugeMetricValue.GaugeValueBuilder>
toSet
- persist datepublic GaugeMetricValue.GaugeValueBuilder lastPersistDate(Date toSet)
MetricValue.Builder
DataPoint
summarized to produce
this value.lastPersistDate
in class MetricValue.Builder<GaugeMetricValue.GaugeValueBuilder>
toSet
- persist datepublic GaugeMetricValue.GaugeValueBuilder millisecondsSpan(long toSet)
MetricValue.Builder
millisecondsSpan
in class MetricValue.Builder<GaugeMetricValue.GaugeValueBuilder>
toSet
- time spanprotected GaugeMetricValue.GaugeValueBuilder self()
self
in class MetricValue.Builder<GaugeMetricValue.GaugeValueBuilder>
public GaugeMetricValue.GaugeValueBuilder type(MetricDescriptor.Type toSet)
MetricValue.Builder
type
in class MetricValue.Builder<GaugeMetricValue.GaugeValueBuilder>
toSet
- metric typepublic GaugeMetricValue.GaugeValueBuilder uid(String toSet)
MetricValue.Builder
uid
in class MetricValue.Builder<GaugeMetricValue.GaugeValueBuilder>
toSet
- metric identifierpublic GaugeMetricValue.GaugeValueBuilder updateDate(Date toSet)
MetricValue.Builder
updateDate
in class MetricValue.Builder<GaugeMetricValue.GaugeValueBuilder>
toSet
- update dateCopyright © 2015. All Rights Reserved.