Class Measurement

java.lang.Object
io.micrometer.core.instrument.Measurement

public class Measurement extends Object
A measurement sampled from a meter.
  • Constructor Details

    • Measurement

      public Measurement(DoubleSupplier valueFunction, Statistic statistic)
      Create a Measurement instance.
      Parameters:
      valueFunction - value function
      statistic - statistic type
      Since:
      1.10.0
    • Measurement

      public Measurement(Supplier<Double> valueFunction, Statistic statistic)
  • Method Details

    • getValue

      public double getValue()
      Returns:
      Value for the measurement.
    • getStatistic

      public Statistic getStatistic()
    • toString

      public String toString()
      Overrides:
      toString in class Object