Package org.apache.kafka.common.metrics
Interface Stat
- All Known Subinterfaces:
CompoundStat,MeasurableStat
- All Known Implementing Classes:
Avg,CumulativeCount,CumulativeSum,Frequencies,Max,Meter,Min,Percentiles,Rate,SampledStat,SimpleRate,TokenBucket,Value,WindowedCount,WindowedSum
public interface Stat
A Stat is a quantity such as average, max, etc that is computed off the stream of updates to a sensor
-
Method Summary
Modifier and TypeMethodDescriptionvoidrecord(MetricConfig config, double value, long timeMs) Record the given value
-
Method Details
-
record
Record the given value- Parameters:
config- The configuration to use for this metricvalue- The value to recordtimeMs- The POSIX time in milliseconds this value occurred
-