@Public public interface Histogram extends Metric
The histogram allows to record values, get the current count of recorded values and create histogram statistics for the currently seen elements.
Modifier and Type | Method and Description |
---|---|
long |
getCount()
Get the count of seen elements.
|
default MetricType |
getMetricType() |
HistogramStatistics |
getStatistics()
Create statistics for the currently recorded elements.
|
void |
update(long value)
Update the histogram with the given value.
|
void update(long value)
value
- Value to update the histogram withlong getCount()
HistogramStatistics getStatistics()
default MetricType getMetricType()
getMetricType
in interface Metric
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.