public static class TimerMetricValue.TimerValueBuilder extends MetricValue.Builder<TimerMetricValue.TimerValueBuilder>
Constructor and Description |
---|
TimerValueBuilder(String uid) |
public TimerValueBuilder(String uid)
public TimerMetricValue build()
build
in class MetricValue.Builder<TimerMetricValue.TimerValueBuilder>
public TimerMetricValue.TimerValueBuilder count(long toSet)
MetricValue.Builder
count
in class MetricValue.Builder<TimerMetricValue.TimerValueBuilder>
toSet
- the countpublic TimerMetricValue.TimerValueBuilder dataPoints(int toSet)
MetricValue.Builder
DataPoint
s summarized to produce this
value.dataPoints
in class MetricValue.Builder<TimerMetricValue.TimerValueBuilder>
toSet
- the count of summarized DataPoint
spublic TimerMetricValue.TimerValueBuilder firstPersistDate(Date toSet)
MetricValue.Builder
DataPoint
summarized to produce
this value.firstPersistDate
in class MetricValue.Builder<TimerMetricValue.TimerValueBuilder>
toSet
- persist datepublic TimerMetricValue.TimerValueBuilder lastPersistDate(Date toSet)
MetricValue.Builder
DataPoint
summarized to produce
this value.lastPersistDate
in class MetricValue.Builder<TimerMetricValue.TimerValueBuilder>
toSet
- persist datepublic TimerMetricValue.TimerValueBuilder maximum(long value)
value
- the maximum valuepublic TimerMetricValue.TimerValueBuilder mean(double value)
value
- the mean valuepublic TimerMetricValue.TimerValueBuilder millisecondsSpan(long toSet)
MetricValue.Builder
millisecondsSpan
in class MetricValue.Builder<TimerMetricValue.TimerValueBuilder>
toSet
- time spanpublic TimerMetricValue.TimerValueBuilder minimum(long value)
value
- the minimum valuepublic TimerMetricValue.TimerValueBuilder rate(double value)
value
- the rate valueprotected TimerMetricValue.TimerValueBuilder self()
self
in class MetricValue.Builder<TimerMetricValue.TimerValueBuilder>
public TimerMetricValue.TimerValueBuilder stdDev(double value)
value
- the standard deviation valuepublic TimerMetricValue.TimerValueBuilder type(MetricDescriptor.Type toSet)
MetricValue.Builder
type
in class MetricValue.Builder<TimerMetricValue.TimerValueBuilder>
toSet
- metric typepublic TimerMetricValue.TimerValueBuilder uid(String toSet)
MetricValue.Builder
uid
in class MetricValue.Builder<TimerMetricValue.TimerValueBuilder>
toSet
- metric identifierpublic TimerMetricValue.TimerValueBuilder updateDate(Date toSet)
MetricValue.Builder
updateDate
in class MetricValue.Builder<TimerMetricValue.TimerValueBuilder>
toSet
- update dateCopyright © 2016. All Rights Reserved.