CircuitBreakerSnapshot
data class CircuitBreakerSnapshot(val state: CircuitState, val failureCount: Int, val successCount: Int)
Point-in-time snapshot of a CircuitBreaker for health/readiness and metrics.
Properties
Link copied to clipboard
In consecutive mode: failures in CLOSED since last success. In CircuitBreakerConfig.slidingWindow mode: number of failure timestamps currently inside the window (after pruning). While OPEN, may reflect the count at trip time (implementation detail); use for metrics/health only.
Link copied to clipboard
Current circuit state (CLOSED, OPEN, HALF_OPEN).
Link copied to clipboard
Number of consecutive successes in HALF_OPEN state (reset when circuit opens or closes).