public class TimeWindowStats extends Object
Constructor and Description |
---|
TimeWindowStats(io.micrometer.core.instrument.Clock clock,
io.micrometer.core.instrument.distribution.DistributionStatisticConfig config)
Constructor
|
TimeWindowStats(io.micrometer.core.instrument.Clock clock,
long rotateFrequencyMillis,
int bufferLength)
Constructor
|
public TimeWindowStats(io.micrometer.core.instrument.Clock clock, io.micrometer.core.instrument.distribution.DistributionStatisticConfig config)
clock
- config
- public TimeWindowStats(io.micrometer.core.instrument.Clock clock, long rotateFrequencyMillis, int bufferLength)
clock
- rotateFrequencyMillis
- bufferLength
- public void record(double sample)
sample
- Sample to recordpublic long count()
public double sum()
public double min()
public double mean()
public double freq()
public long age()
public long lastAge()
public double lastValue()