Class TimerImpl.TimerMetrics
java.lang.Object
io.github.resilience4j.metrics.internal.TimerImpl.TimerMetrics
- All Implemented Interfaces:
Timer.Metrics
- Enclosing class:
TimerImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns 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.longReturns the current number of failed calls.longReturns the current number of successful calls.longReturns the current number of total calls.doubleReturns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.com.codahale.metrics.SnapshotReturns a snapshot of the values.
-
Constructor Details
-
TimerMetrics
private TimerMetrics()
-
-
Method Details
-
getNumberOfTotalCalls
public long getNumberOfTotalCalls()Description copied from interface:Timer.MetricsReturns the current number of total calls.- Specified by:
getNumberOfTotalCallsin interfaceTimer.Metrics- Returns:
- the current number of total calls
-
getNumberOfSuccessfulCalls
public long getNumberOfSuccessfulCalls()Description copied from interface:Timer.MetricsReturns the current number of successful calls.- Specified by:
getNumberOfSuccessfulCallsin interfaceTimer.Metrics- Returns:
- the current number of successful calls
-
getNumberOfFailedCalls
public long getNumberOfFailedCalls()Description copied from interface:Timer.MetricsReturns the current number of failed calls.- Specified by:
getNumberOfFailedCallsin interfaceTimer.Metrics- Returns:
- the current number of failed calls
-
getFifteenMinuteRate
public double getFifteenMinuteRate()Description copied from interface:Timer.MetricsReturns 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 the
topUnix command.- Specified by:
getFifteenMinuteRatein interfaceTimer.Metrics- Returns:
- the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
getFiveMinuteRate
public double getFiveMinuteRate()Description copied from interface:Timer.MetricsReturns 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 the
topUnix command.- Specified by:
getFiveMinuteRatein interfaceTimer.Metrics- Returns:
- the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
getMeanRate
public double getMeanRate()Description copied from interface:Timer.MetricsReturns the mean rate at which events have occurred since the meter was created.- Specified by:
getMeanRatein interfaceTimer.Metrics- Returns:
- the mean rate at which events have occurred since the meter was created
-
getOneMinuteRate
public double getOneMinuteRate()Description copied from interface:Timer.MetricsReturns 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 the
topUnix command.- Specified by:
getOneMinuteRatein interfaceTimer.Metrics- Returns:
- the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
getSnapshot
public com.codahale.metrics.Snapshot getSnapshot()Description copied from interface:Timer.MetricsReturns a snapshot of the values.- Specified by:
getSnapshotin interfaceTimer.Metrics- Returns:
- a snapshot of the values
-