Package io.micrometer.core.instrument
Class Measurement
java.lang.Object
io.micrometer.core.instrument.Measurement
public class Measurement
extends java.lang.Object
A measurement sampled from a meter.
-
Constructor Summary
Constructors Constructor Description Measurement(java.util.function.Supplier<java.lang.Double> valueFunction, Statistic statistic) -
Method Summary
Modifier and Type Method Description StatisticgetStatistic()doublegetValue()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Measurement
public Measurement(java.util.function.Supplier<java.lang.Double> valueFunction, Statistic statistic)
-
-
Method Details
-
getValue
public double getValue()- Returns:
- Value for the measurement.
-
getStatistic
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-