Interface UniformTimeSnapshot
- All Known Implementing Classes:
AbstractTimeSnapshot,UniformTimeValuesSnapshot
public interface UniformTimeSnapshot
A statistical snapshot of a
UniformTimeSnapshot.- Author:
- Stepan Vavra, Dropwizard Team
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionlonggetMax()doublegetMean()longgetMin()doubleThe rate of values in this snapshot for one given time unit.longgetTimeInterval(TimeUnit timeUnit) The time interval for which this snapshot was created.longsize()Returns the number of values in the snapshot.
-
Method Details
-
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
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
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
-