BreakDurationArgs
Defined in: src/circuit-breaker.ts:34
Extends
Section titled “Extends”Properties
Section titled “Properties”context
Section titled “context”
readonlycontext:ResilienceContext
Defined in: src/circuit-breaker.ts:37
failureCount
Section titled “failureCount”
readonlyfailureCount:number
Defined in: src/circuit-breaker.ts:29
Inherited from
Section titled “Inherited from”failureRate
Section titled “failureRate”
readonlyfailureRate:number
Defined in: src/circuit-breaker.ts:31
failureCount / total, 0 when empty.
Inherited from
Section titled “Inherited from”halfOpenAttempts
Section titled “halfOpenAttempts”
readonlyhalfOpenAttempts:number
Defined in: src/circuit-breaker.ts:36
Consecutive half-open rounds that failed; use it for growing break durations.
readonlytotal:number
Defined in: src/circuit-breaker.ts:28
Calls recorded in the current window (successes + failures; ignored calls are not counted).