Class SnapshotImpl
java.lang.Object
io.github.resilience4j.core.metrics.SnapshotImpl
- All Implemented Interfaces:
Snapshot
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current average duration of all calls.floatReturns the current failure rate in percentage.intReturns the current number of failed calls.intReturns the current number of failed calls which were slower than a certain threshold.intReturns the current number of successful calls which were slower than a certain threshold.intReturns the current number of successful calls.floatReturns the current percentage of calls which were slower than a certain threshold.Returns the current total duration of all calls.intReturns the current total number of all calls.intReturns the current number of calls which were slower than a certain threshold.
-
Method Details
-
getTotalDuration
Description copied from interface:SnapshotReturns the current total duration of all calls.- Specified by:
getTotalDurationin interfaceSnapshot- Returns:
- the current total duration of all calls
-
getTotalNumberOfSlowCalls
public int getTotalNumberOfSlowCalls()Description copied from interface:SnapshotReturns the current number of calls which were slower than a certain threshold.- Specified by:
getTotalNumberOfSlowCallsin interfaceSnapshot- Returns:
- the current number of calls which were slower than a certain threshold
-
getNumberOfSlowSuccessfulCalls
public int getNumberOfSlowSuccessfulCalls()Description copied from interface:SnapshotReturns the current number of successful calls which were slower than a certain threshold.- Specified by:
getNumberOfSlowSuccessfulCallsin interfaceSnapshot- Returns:
- the current number of successful calls which were slower than a certain threshold
-
getNumberOfSlowFailedCalls
public int getNumberOfSlowFailedCalls()Description copied from interface:SnapshotReturns the current number of failed calls which were slower than a certain threshold.- Specified by:
getNumberOfSlowFailedCallsin interfaceSnapshot- Returns:
- the current number of failed calls which were slower than a certain threshold
-
getSlowCallRate
public float getSlowCallRate()Description copied from interface:SnapshotReturns the current percentage of calls which were slower than a certain threshold.- Specified by:
getSlowCallRatein interfaceSnapshot- Returns:
- the current percentage of calls which were slower than a certain threshold
-
getNumberOfSuccessfulCalls
public int getNumberOfSuccessfulCalls()Description copied from interface:SnapshotReturns the current number of successful calls.- Specified by:
getNumberOfSuccessfulCallsin interfaceSnapshot- Returns:
- the current number of successful calls
-
getNumberOfFailedCalls
public int getNumberOfFailedCalls()Description copied from interface:SnapshotReturns the current number of failed calls.- Specified by:
getNumberOfFailedCallsin interfaceSnapshot- Returns:
- the current number of failed calls
-
getTotalNumberOfCalls
public int getTotalNumberOfCalls()Description copied from interface:SnapshotReturns the current total number of all calls.- Specified by:
getTotalNumberOfCallsin interfaceSnapshot- Returns:
- the current total number of all calls
-
getFailureRate
public float getFailureRate()Description copied from interface:SnapshotReturns the current failure rate in percentage.- Specified by:
getFailureRatein interfaceSnapshot- Returns:
- the current failure rate in percentage
-
getAverageDuration
Description copied from interface:SnapshotReturns the current average duration of all calls.- Specified by:
getAverageDurationin interfaceSnapshot- Returns:
- the current average duration of all calls
-