public class Value extends java.lang.Object implements MeasurableStat
Constructor and Description |
---|
Value() |
Modifier and Type | Method and Description |
---|---|
double |
measure(MetricConfig config,
long now)
Measure this quantity and return the result as a double
|
void |
record(MetricConfig config,
double value,
long timeMs)
Record the given value
|
public double measure(MetricConfig config, long now)
Measurable
measure
in interface Measurable
config
- The configuration for this metricnow
- The POSIX time in milliseconds the measurement is being takenpublic void record(MetricConfig config, double value, long timeMs)
Stat