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 Type
    Method
    Description
    long
     
    double
     
    long
     
    double
    getRate(TimeUnit timeUnit)
    The rate of values in this snapshot for one given time unit.
    long
    The time interval for which this snapshot was created.
    long
    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

      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