Class SnapshotImpl
- java.lang.Object
-
- io.github.resilience4j.core.metrics.SnapshotImpl
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.DurationgetAverageDuration()Returns the current average duration of all calls.floatgetFailureRate()Returns the current failure rate in percentage.intgetNumberOfFailedCalls()Returns the current number of failed calls.intgetNumberOfSlowFailedCalls()Returns the current number of failed calls which were slower than a certain threshold.intgetNumberOfSlowSuccessfulCalls()Returns the current number of successful calls which were slower than a certain threshold.intgetNumberOfSuccessfulCalls()Returns the current number of successful calls.floatgetSlowCallRate()Returns the current percentage of calls which were slower than a certain threshold.java.time.DurationgetTotalDuration()Returns the current total duration of all calls.intgetTotalNumberOfCalls()Returns the current total number of all calls.intgetTotalNumberOfSlowCalls()Returns the current number of calls which were slower than a certain threshold.
-
-
-
Method Detail
-
getTotalDuration
public java.time.Duration 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
public java.time.Duration 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
-
-