Package org.eclipse.microprofile.metrics
Interface Metered
An object which maintains mean and exponentially-weighted rate.
-
Method Summary
Modifier and TypeMethodDescriptionlonggetCount()Returns the number of events which have been marked.doubleReturns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.doubleReturns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.doubleReturns the mean rate at which events have occurred since the meter was created.doubleReturns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
-
Method Details
-
getCount
long getCount()Returns the number of events which have been marked. -
getFifteenMinuteRate
double getFifteenMinuteRate()Returns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created. This rate has the same exponential decay factor as the fifteen-minute load average in thetopUnix command.- Returns:
- the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
getFiveMinuteRate
double getFiveMinuteRate()Returns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created. This rate has the same exponential decay factor as the five-minute load average in thetopUnix command.- Returns:
- the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
getMeanRate
double getMeanRate()Returns the mean rate at which events have occurred since the meter was created.- Returns:
- the mean rate at which events have occurred since the meter was created
-
getOneMinuteRate
double getOneMinuteRate()Returns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created. This rate has the same exponential decay factor as the one-minute load average in thetopUnix command.- Returns:
- the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-