public static class ControlledMetricValue.ValueCount extends Object implements MetricValue<Double,ControlledMetricValue.ValueCount>
Modifier and Type | Method and Description |
---|---|
static ControlledMetricValue.ValueCount |
createInitialValue() |
Number |
getMax()
Get the maximum value of the metric since the last persist.
|
Number |
getMin()
Get the minimum value of the metric since the last persist.
|
int |
getNumSamples()
Get the number of samples from the metric value.
|
Number |
getValue()
Get the number value from this metric value.
|
ControlledMetricValue.ValueCount |
makeAdjusted(Double value)
Make a new entry adjusted by the value parameter.
|
ControlledMetricValue.ValueCount |
makePersisted()
Make an entry that is suitable for persisting.
|
public static ControlledMetricValue.ValueCount createInitialValue()
public ControlledMetricValue.ValueCount makePersisted()
MetricValue
makePersisted
in interface MetricValue<Double,ControlledMetricValue.ValueCount>
public ControlledMetricValue.ValueCount makeAdjusted(Double value)
MetricValue
makeAdjusted
in interface MetricValue<Double,ControlledMetricValue.ValueCount>
public Number getValue()
MetricValue
MetricValue.makePersisted()
if you want to save the value to disk.getValue
in interface MetricValue<Double,ControlledMetricValue.ValueCount>
public int getNumSamples()
MetricValue
getNumSamples
in interface MetricValue<Double,ControlledMetricValue.ValueCount>
public Number getMin()
MetricValue
getMin
in interface MetricValue<Double,ControlledMetricValue.ValueCount>
public Number getMax()
MetricValue
getMax
in interface MetricValue<Double,ControlledMetricValue.ValueCount>
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.