Package org.eclipse.microprofile.metrics
Interface Meter


Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getCount()
Returns the number of events which have been marked.double
getFifteenMinuteRate()
Returns the fifteenminute exponentiallyweighted moving average rate at which events have occurred since the meter was created.double
getFiveMinuteRate()
Returns the fiveminute exponentiallyweighted moving average rate at which events have occurred since the meter was created.double
getMeanRate()
Returns the mean rate at which events have occurred since the meter was created.double
getOneMinuteRate()
Returns the oneminute exponentiallyweighted moving average rate at which events have occurred since the meter was created.void
mark()
Mark the occurrence of an event.void
mark(long n)
Mark the occurrence of a given number of events.



Method Detail

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:Metered
Returns the number of events which have been marked.

getFifteenMinuteRate
double getFifteenMinuteRate()
Description copied from interface:Metered
Returns the fifteenminute exponentiallyweighted moving average rate at which events have occurred since the meter was created. This rate has the same exponential decay factor as the fifteenminute load average in thetop
Unix command. Specified by:
getFifteenMinuteRate
in interfaceMetered
 Returns:
 the fifteenminute exponentiallyweighted moving average rate at which events have occurred since the meter was created

getFiveMinuteRate
double getFiveMinuteRate()
Description copied from interface:Metered
Returns the fiveminute exponentiallyweighted moving average rate at which events have occurred since the meter was created. This rate has the same exponential decay factor as the fiveminute load average in thetop
Unix command. Specified by:
getFiveMinuteRate
in interfaceMetered
 Returns:
 the fiveminute exponentiallyweighted moving average rate at which events have occurred since the meter was created

getMeanRate
double getMeanRate()
Description copied from interface:Metered
Returns the mean rate at which events have occurred since the meter was created. Specified by:
getMeanRate
in interfaceMetered
 Returns:
 the mean rate at which events have occurred since the meter was created

getOneMinuteRate
double getOneMinuteRate()
Description copied from interface:Metered
Returns the oneminute exponentiallyweighted moving average rate at which events have occurred since the meter was created. This rate has the same exponential decay factor as the oneminute load average in thetop
Unix command. Specified by:
getOneMinuteRate
in interfaceMetered
 Returns:
 the oneminute exponentiallyweighted moving average rate at which events have occurred since the meter was created

