org.apache.kafka.common.metrics
Interface Stat

All Known Subinterfaces:
CompoundStat, MeasurableStat
All Known Implementing Classes:
Avg, Count, Max, Min, Percentiles, Rate, Rate.SampledTotal, SampledStat, Total

public interface Stat

A Stat is a quanity such as average, max, etc that is computed off the stream of updates to a sensor


Method Summary
 void record(MetricConfig config, double value, long timeMs)
          Record the given value
 

Method Detail

record

void record(MetricConfig config,
            double value,
            long timeMs)
Record the given value

Parameters:
config - The configuration to use for this metric
value - The value to record
timeMs - The POSIX time in milliseconds this value occurred