CircuitBreakerFailureCondition interface
The trip conditions of the circuit breaker
Properties
count | The threshold for opening the circuit. |
error |
The error reasons which are considered as failure. |
interval | The interval during which the failures are counted. |
percentage | The threshold for opening the circuit. |
status |
The status code ranges which are considered as failure. |
Property Details
count
The threshold for opening the circuit.
count?: number
Property Value
number
errorReasons
The error reasons which are considered as failure.
errorReasons?: string[]
Property Value
string[]
interval
The interval during which the failures are counted.
interval?: string
Property Value
string
percentage
The threshold for opening the circuit.
percentage?: number
Property Value
number
statusCodeRanges
The status code ranges which are considered as failure.
statusCodeRanges?: FailureStatusCodeRange[]