Top Methods
io.github.resilience4j.core.metrics

public Interface Snapshot

Known Direct Implementers
io.github.resilience4j.core.metrics.SnapshotImpl
Imports
java.time.Duration

Method Summary

Modifier and TypeMethod and Description
public Duration

Returns:

the current average duration of all calls
getAverageDuration
()

Returns the current average duration of all calls.

public float

Returns:

the current failure rate in percentage
getFailureRate
()

Returns the current failure rate in percentage.

public int

Returns:

the current number of failed calls
getNumberOfFailedCalls
()

Returns the current number of failed calls.

public int

Returns:

the current number of failed calls which were slower than a certain threshold
getNumberOfSlowFailedCalls
()

Returns the current number of failed calls which were slower than a certain threshold.

public int

Returns:

the current number of successful calls which were slower than a certain threshold
getNumberOfSlowSuccessfulCalls
()

Returns the current number of successful calls which were slower than a certain threshold.

public int

Returns:

the current number of successful calls
getNumberOfSuccessfulCalls
()

Returns the current number of successful calls.

public float

Returns:

the current percentage of calls which were slower than a certain threshold
getSlowCallRate
()

Returns the current percentage of calls which were slower than a certain threshold.

public Duration

Returns:

the current total duration of all calls
getTotalDuration
()

Returns the current total duration of all calls.

public int

Returns:

the current total number of all calls
getTotalNumberOfCalls
()

Returns the current total number of all calls.

public int

Returns:

the current number of calls which were slower than a certain threshold
getTotalNumberOfSlowCalls
()

Returns the current number of calls which were slower than a certain threshold.

Method Detail

getAverageDurationback to summary
public Duration getAverageDuration()

Returns the current average duration of all calls.

Returns:Duration

the current average duration of all calls

getFailureRateback to summary
public float getFailureRate()

Returns the current failure rate in percentage.

Returns:float

the current failure rate in percentage

getNumberOfFailedCallsback to summary
public int getNumberOfFailedCalls()

Returns the current number of failed calls.

Returns:int

the current number of failed calls

getNumberOfSlowFailedCallsback to summary
public int getNumberOfSlowFailedCalls()

Returns the current number of failed calls which were slower than a certain threshold.

Returns:int

the current number of failed calls which were slower than a certain threshold

getNumberOfSlowSuccessfulCallsback to summary
public int getNumberOfSlowSuccessfulCalls()

Returns the current number of successful calls which were slower than a certain threshold.

Returns:int

the current number of successful calls which were slower than a certain threshold

getNumberOfSuccessfulCallsback to summary
public int getNumberOfSuccessfulCalls()

Returns the current number of successful calls.

Returns:int

the current number of successful calls

getSlowCallRateback to summary
public float getSlowCallRate()

Returns the current percentage of calls which were slower than a certain threshold.

Returns:float

the current percentage of calls which were slower than a certain threshold

getTotalDurationback to summary
public Duration getTotalDuration()

Returns the current total duration of all calls.

Returns:Duration

the current total duration of all calls

getTotalNumberOfCallsback to summary
public int getTotalNumberOfCalls()

Returns the current total number of all calls.

Returns:int

the current total number of all calls

getTotalNumberOfSlowCallsback to summary
public int getTotalNumberOfSlowCalls()

Returns the current number of calls which were slower than a certain threshold.

Returns:int

the current number of calls which were slower than a certain threshold