CircuitBreakerRule interface
Rule configuration to trip the backend.
Properties
| accept |
flag to accept Retry-After header from the backend. |
| failure |
The conditions for tripping the circuit breaker. |
| name | The rule name. |
| trip |
The duration for which the circuit will be tripped. |
Property Details
acceptRetryAfter
flag to accept Retry-After header from the backend.
acceptRetryAfter?: boolean
Property Value
boolean
failureCondition
The conditions for tripping the circuit breaker.
failureCondition?: CircuitBreakerFailureCondition
Property Value
name
The rule name.
name?: string
Property Value
string
tripDuration
The duration for which the circuit will be tripped.
tripDuration?: string
Property Value
string