public class CumulativeCount extends CumulativeSum
WindowedCount maintained over all time.
This is a special kind of CumulativeSum that always records 1 instead of the provided value.
In other words, it counts the number of
record(MetricConfig, double, long) invocations,
instead of summing the recorded values.| Constructor and Description |
|---|
CumulativeCount() |
| Modifier and Type | Method and Description |
|---|---|
void |
record(MetricConfig config,
double value,
long timeMs)
Record the given value
|
measure, toStringpublic void record(MetricConfig config, double value, long timeMs)
Statrecord in interface Statrecord in class CumulativeSumconfig - The configuration to use for this metricvalue - The value to recordtimeMs - The POSIX time in milliseconds this value occurred