Package org.eclipse.microprofile.metrics
Interface Histogram
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCount()Returns the number of values recorded.SnapshotgetSnapshot()Returns a snapshot of the values.longgetSum()Returns the sum of values recorded.voidupdate(int value)Adds a recorded value.voidupdate(long value)Adds a recorded value.
-
-
-
Method Detail
-
update
void update(int value)
Adds a recorded value.- Parameters:
value- the length of the value
-
update
void update(long value)
Adds a recorded value.- Parameters:
value- the length of the value
-
getCount
long getCount()
Returns the number of values recorded.
-
getSum
long getSum()
Returns the sum of values recorded.- Returns:
- the sum of values recorded
-
getSnapshot
Snapshot getSnapshot()
Description copied from interface:SamplingReturns a snapshot of the values.- Specified by:
getSnapshotin interfaceSampling- Returns:
- a snapshot of the values
-
-