public class MetricValue extends Object
Constructor and Description |
---|
MetricValue() |
Modifier and Type | Method and Description |
---|---|
Double |
average()
Get the average value in the time range.
|
Long |
count()
Get the number of samples in the time range.
|
Double |
maximum()
Get the greatest value in the time range.
|
Double |
minimum()
Get the least value in the time range.
|
org.joda.time.DateTime |
timeStamp()
Get the timestamp for the metric value in ISO 8601 format.
|
Double |
total()
Get the sum of all of the values in the time range.
|
MetricValue |
withAverage(Double average)
Set the average value in the time range.
|
MetricValue |
withCount(Long count)
Set the number of samples in the time range.
|
MetricValue |
withMaximum(Double maximum)
Set the greatest value in the time range.
|
MetricValue |
withMinimum(Double minimum)
Set the least value in the time range.
|
MetricValue |
withTimeStamp(org.joda.time.DateTime timeStamp)
Set the timestamp for the metric value in ISO 8601 format.
|
MetricValue |
withTotal(Double total)
Set the sum of all of the values in the time range.
|
public org.joda.time.DateTime timeStamp()
public MetricValue withTimeStamp(org.joda.time.DateTime timeStamp)
timeStamp
- the timeStamp value to setpublic Double average()
public MetricValue withAverage(Double average)
average
- the average value to setpublic Double minimum()
public MetricValue withMinimum(Double minimum)
minimum
- the minimum value to setpublic Double maximum()
public MetricValue withMaximum(Double maximum)
maximum
- the maximum value to setpublic Double total()
public MetricValue withTotal(Double total)
total
- the total value to setpublic Long count()
public MetricValue withCount(Long count)
count
- the count value to setCopyright © 2019. All rights reserved.