Interface Snapshot
-
- All Known Implementing Classes:
SnapshotImpl
public interface Snapshot
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.Duration
getAverageDuration()
Returns the current average duration of all calls.float
getFailureRate()
Returns the current failure rate in percentage.int
getNumberOfFailedCalls()
Returns the current number of failed calls.int
getNumberOfSlowFailedCalls()
Returns the current number of failed calls which were slower than a certain threshold.int
getNumberOfSlowSuccessfulCalls()
Returns the current number of successful calls which were slower than a certain threshold.int
getNumberOfSuccessfulCalls()
Returns the current number of successful calls.float
getSlowCallRate()
Returns the current percentage of calls which were slower than a certain threshold.java.time.Duration
getTotalDuration()
Returns the current total duration of all calls.int
getTotalNumberOfCalls()
Returns the current total number of all calls.int
getTotalNumberOfSlowCalls()
Returns the current number of calls which were slower than a certain threshold.
-
-
-
Method Detail
-
getTotalDuration
java.time.Duration getTotalDuration()
Returns the current total duration of all calls.- Returns:
- the current total duration of all calls
-
getAverageDuration
java.time.Duration getAverageDuration()
Returns the current average duration of all calls.- Returns:
- the current average duration of all calls
-
getTotalNumberOfSlowCalls
int getTotalNumberOfSlowCalls()
Returns the current number of calls which were slower than a certain threshold.- Returns:
- the current number of calls which were slower than a certain threshold
-
getNumberOfSlowSuccessfulCalls
int getNumberOfSlowSuccessfulCalls()
Returns the current number of successful calls which were slower than a certain threshold.- Returns:
- the current number of successful calls which were slower than a certain threshold
-
getNumberOfSlowFailedCalls
int getNumberOfSlowFailedCalls()
Returns the current number of failed calls which were slower than a certain threshold.- Returns:
- the current number of failed calls which were slower than a certain threshold
-
getSlowCallRate
float getSlowCallRate()
Returns the current percentage of calls which were slower than a certain threshold.- Returns:
- the current percentage of calls which were slower than a certain threshold
-
getNumberOfSuccessfulCalls
int getNumberOfSuccessfulCalls()
Returns the current number of successful calls.- Returns:
- the current number of successful calls
-
getNumberOfFailedCalls
int getNumberOfFailedCalls()
Returns the current number of failed calls.- Returns:
- the current number of failed calls
-
getTotalNumberOfCalls
int getTotalNumberOfCalls()
Returns the current total number of all calls.- Returns:
- the current total number of all calls
-
getFailureRate
float getFailureRate()
Returns the current failure rate in percentage.- Returns:
- the current failure rate in percentage
-
-