public static class CounterMetricValue.CounterValueBuilder extends MetricValue.Builder<CounterMetricValue.CounterValueBuilder>
Constructor and Description |
---|
CounterMetricValue.CounterValueBuilder(String uid) |
Modifier and Type | Method and Description |
---|---|
CounterMetricValue |
build() |
CounterMetricValue.CounterValueBuilder |
count(long toSet)
Sets the count.
|
CounterMetricValue.CounterValueBuilder |
dataPoints(int toSet)
Sets the number of
DataPoint s summarized to produce this
value. |
CounterMetricValue.CounterValueBuilder |
firstPersistDate(Date toSet)
Sets the date of the first
DataPoint summarized to produce
this value. |
CounterMetricValue.CounterValueBuilder |
lastPersistDate(Date toSet)
Sets the date of the last
DataPoint summarized to produce
this value. |
CounterMetricValue.CounterValueBuilder |
millisecondsSpan(long toSet)
Sets the time span in milliseconds.
|
protected CounterMetricValue.CounterValueBuilder |
self() |
CounterMetricValue.CounterValueBuilder |
type(MetricDescriptor.Type toSet)
Sets the metric type.
|
CounterMetricValue.CounterValueBuilder |
uid(String toSet)
Sets the metric identifier.
|
CounterMetricValue.CounterValueBuilder |
updateDate(Date toSet)
Sets the update date.
|
public CounterMetricValue.CounterValueBuilder(String uid)
public CounterMetricValue build()
build
in class MetricValue.Builder<CounterMetricValue.CounterValueBuilder>
public CounterMetricValue.CounterValueBuilder count(long toSet)
MetricValue.Builder
count
in class MetricValue.Builder<CounterMetricValue.CounterValueBuilder>
toSet
- the countpublic CounterMetricValue.CounterValueBuilder dataPoints(int toSet)
MetricValue.Builder
DataPoint
s summarized to produce this
value.dataPoints
in class MetricValue.Builder<CounterMetricValue.CounterValueBuilder>
toSet
- the count of summarized DataPoint
spublic CounterMetricValue.CounterValueBuilder firstPersistDate(Date toSet)
MetricValue.Builder
DataPoint
summarized to produce
this value.firstPersistDate
in class MetricValue.Builder<CounterMetricValue.CounterValueBuilder>
toSet
- persist datepublic CounterMetricValue.CounterValueBuilder lastPersistDate(Date toSet)
MetricValue.Builder
DataPoint
summarized to produce
this value.lastPersistDate
in class MetricValue.Builder<CounterMetricValue.CounterValueBuilder>
toSet
- persist datepublic CounterMetricValue.CounterValueBuilder millisecondsSpan(long toSet)
MetricValue.Builder
millisecondsSpan
in class MetricValue.Builder<CounterMetricValue.CounterValueBuilder>
toSet
- time spanprotected CounterMetricValue.CounterValueBuilder self()
self
in class MetricValue.Builder<CounterMetricValue.CounterValueBuilder>
public CounterMetricValue.CounterValueBuilder type(MetricDescriptor.Type toSet)
MetricValue.Builder
type
in class MetricValue.Builder<CounterMetricValue.CounterValueBuilder>
toSet
- metric typepublic CounterMetricValue.CounterValueBuilder uid(String toSet)
MetricValue.Builder
uid
in class MetricValue.Builder<CounterMetricValue.CounterValueBuilder>
toSet
- metric identifierpublic CounterMetricValue.CounterValueBuilder updateDate(Date toSet)
MetricValue.Builder
updateDate
in class MetricValue.Builder<CounterMetricValue.CounterValueBuilder>
toSet
- update dateCopyright © 2015. All Rights Reserved.