Interface Measurable

All Superinterfaces:
MetricValueProvider<Double>
All Known Subinterfaces:
MeasurableStat
All Known Implementing Classes:
Avg, CumulativeCount, CumulativeSum, Frequencies, Max, Min, Percentiles, Rate, SampledStat, SimpleRate, TokenBucket, Value, WindowedCount, WindowedSum

public interface Measurable extends MetricValueProvider<Double>
A measurable quantity that can be registered as a metric
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    measure(MetricConfig config, long now)
    Measure this quantity and return the result as a double
  • Method Details

    • measure

      double measure(MetricConfig config, long now)
      Measure this quantity and return the result as a double
      Parameters:
      config - The configuration for this metric
      now - The POSIX time in milliseconds the measurement is being taken
      Returns:
      The measured value