java.lang.Object
org.apache.kafka.common.metrics.stats.SampledStat
org.apache.kafka.common.metrics.stats.Avg
All Implemented Interfaces:
Measurable, MeasurableStat, MetricValueProvider<Double>, Stat

public class Avg extends SampledStat
A SampledStat that maintains a simple average over its samples.
  • Constructor Details

    • Avg

      public Avg()
  • Method Details

    • combine

      public double combine(List<org.apache.kafka.common.metrics.stats.SampledStat.Sample> samples, MetricConfig config, long now)
      Specified by:
      combine in class SampledStat