Interface StatsMeter
- All Superinterfaces:
IpdMeter
- All Known Implementing Classes:
StatsMeter.Noop
Interface representing a statistics meter, which is a type of
IpdMeter.
A statistics meter can be updated with a single long value, which is used to calculate historical statistics.
This meter will calculate mean, min, max, p50, p90, p99 and more. All statistics are calculated only for recent values (e.g. from last 5-10 minutes) and can't be relied on for calculating statistics of all meters updates.
- Since:
- 3.0.0
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.atlassian.diagnostics.ipd.api.meters.IpdMeter
IpdMeter.NoopMeter -
Field Summary
Fields -
Method Summary
Methods inherited from interface com.atlassian.diagnostics.ipd.api.meters.IpdMeter
close, getAttributes, getConfig, getMeterKey, getObjectName, hideUntilUpdate, isClosed, isEnabled, isVisible, lastUpdateMillis
-
Field Details
-
TYPE_ID
- See Also:
-
NOOP_FACTORY
-
-
Method Details
-
getTypeId
Description copied from interface:IpdMeterIdentifies type of the meter. -
update
default void update(long value) Updates the metric with the given value. The time unit of the value is milliseconds.- Parameters:
value- value for updated statistics
-
update
Updates the metric with the given value. You may specify the time unit of the value.- Parameters:
value- value for updated statisticstimeUnit- time unit of the value
-