001package org.avaje.metric.statistics;
002
003/**
004 * Statistics collected by ValueMetric or TimedMetric.
005 */
006public interface ValueStatistics extends MetricStatistics {
007
008  /**
009   * Return the time these statistics were collected from.
010   * <p>
011   * This should equate to the last time the statistics were collected for reporting purposes so if
012   * that is ever minute then this would return the epoch time of 1 minute ago.
013   */
014  long getStartTime();
015
016  /**
017   * Return the count of values collected (since the last reset/collection).
018   */
019  long getCount();
020
021  /**
022   * Return the total of all the values (since the last reset/collection).
023   */
024  long getTotal();
025
026  /**
027   * Return the Max value collected (since the last reset/collection).
028   */
029  long getMax();
030
031  /**
032   * Return the mean value rounded up for the values collected since the last reset/collection.
033   */
034  long getMean();
035
036}