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 TypeMethodDescriptionlong
getMax()
double
getMean()
long
getMin()
double
The rate of values in this snapshot for one given time unit.long
getTimeInterval
(TimeUnit timeUnit) The time interval for which this snapshot was created.long
size()
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
-