Interface UniformTimeSnapshot
-
- All Known Implementing Classes:
AbstractTimeSnapshot
,UniformTimeSimpleSnapshot
,UniformTimeValuesSnapshot
public interface UniformTimeSnapshot
A statistical snapshot of aUniformTimeSnapshot
.- See Also:
- https://github.com/dropwizard/metrics
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getMax()
double
getMean()
long
getMin()
double
getRate(java.util.concurrent.TimeUnit timeUnit)
The rate of values in this snapshot for one given time unit.long
getTimeInterval(java.util.concurrent.TimeUnit timeUnit)
The time interval for which this snapshot was created.long
size()
Returns the number of values in the snapshot.
-
-
-
Method Detail
-
size
long size()
Returns the number of values in the snapshot.- Returns:
- the number of values
-
getMax
long getMax()
- Returns:
- The maximum value in this snapshot
-
getMin
long getMin()
- Returns:
- The minimum value in this snapshot
-
getMean
double getMean()
- Returns:
- The mean of the values in this snapshot
-
getTimeInterval
long getTimeInterval(java.util.concurrent.TimeUnit timeUnit)
The time interval for which this snapshot was created.- Parameters:
timeUnit
- The time unit in which to return the time interval.- Returns:
- The time interval the snapshot was created at for the given time unit.
-
getRate
double getRate(java.util.concurrent.TimeUnit timeUnit)
The rate of values in this snapshot for one given time unit.- Parameters:
timeUnit
- The time unit at which to get the rate- Returns:
- The rate
-
-