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
    Statistic getStatistic()  
    double getValue()  
    java.lang.String toString()  

    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

      public Statistic getStatistic()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object