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