@Experimental public interface MetricsSnapshot
It captures a consistent view of metrics at the moment of creation and does not change afterward.
| Modifier and Type | Method and Description |
|---|---|
long |
getFailureCount()
Get the number of failed command executions in the time window.
|
double |
getFailureRate()
Get the failure rate as a percentage (0-100).
|
long |
getSuccessCount()
Get the number of successful command executions in the time window.
|
double |
getSuccessRate()
Get the success rate as a percentage (0-100).
|
long |
getTotalCount()
Get the total number of commands (success + failure) in the time window.
|
long getSuccessCount()
long getFailureCount()
long getTotalCount()
double getFailureRate()
double getSuccessRate()
Copyright © 2026 lettuce.io. All rights reserved.