Interface UniformTimeSnapshot
-
- All Known Implementing Classes:
AbstractTimeSnapshot,UniformTimeValuesSnapshot
public interface UniformTimeSnapshotA statistical snapshot of aUniformTimeSnapshot.- Author:
- Stepan Vavra, Dropwizard Team
- See Also:
- https://github.com/dropwizard/metrics
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetMax()doublegetMean()longgetMin()doublegetRate(TimeUnit timeUnit)The 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 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(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(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
-
-