com.codahale.metrics.Metered Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metrics-core Show documentation
Show all versions of metrics-core Show documentation
Metrics is a Java library which gives you unparalleled insight into what your code does in
production. Metrics provides a powerful toolkit of ways to measure the behavior of critical
components in your production environment.
package com.codahale.metrics;
/**
* An object which maintains mean and moving average rates.
*/
public interface Metered extends Metric, Counting {
/**
* Returns the number of events which have been marked.
*
* @return the number of events which have been marked
*/
@Override
long getCount();
/**
* Returns the fifteen-minute moving average rate at which events have
* occurred since the meter was created.
*
* @return the fifteen-minute moving average rate at which events have
* occurred since the meter was created
*/
double getFifteenMinuteRate();
/**
* Returns the five-minute moving average rate at which events have
* occurred since the meter was created.
*
* @return the five-minute moving average rate at which events have
* occurred since the meter was created
*/
double getFiveMinuteRate();
/**
* Returns the mean rate at which events have occurred since the meter was created.
*
* @return the mean rate at which events have occurred since the meter was created
*/
double getMeanRate();
/**
* Returns the one-minute moving average rate at which events have
* occurred since the meter was created.
*
* @return the one-minute moving average rate at which events have
* occurred since the meter was created
*/
double getOneMinuteRate();
}