Package org.eclipse.microprofile.metrics
Interface Meter
A meter metric which measures mean throughput and one-, five-, and fifteen-minute
exponentially-weighted moving average throughputs.
-
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.voidmark()Mark the occurrence of an event.voidmark(long n) Mark the occurrence of a given number of events.
-
Method Details
-
mark
void mark()Mark the occurrence of an event. -
mark
void mark(long n) Mark the occurrence of a given number of events.- Parameters:
n- the number of events
-
getCount
long getCount()Description copied from interface:MeteredReturns the number of events which have been marked. -
getFifteenMinuteRate
double getFifteenMinuteRate()Description copied from interface:MeteredReturns 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.- Specified by:
getFifteenMinuteRatein interfaceMetered- Returns:
- the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
getFiveMinuteRate
double getFiveMinuteRate()Description copied from interface:MeteredReturns 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.- Specified by:
getFiveMinuteRatein interfaceMetered- Returns:
- the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
getMeanRate
double getMeanRate()Description copied from interface:MeteredReturns the mean rate at which events have occurred since the meter was created.- Specified by:
getMeanRatein interfaceMetered- Returns:
- the mean rate at which events have occurred since the meter was created
-
getOneMinuteRate
double getOneMinuteRate()Description copied from interface:MeteredReturns 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.- Specified by:
getOneMinuteRatein interfaceMetered- Returns:
- the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-