Share via


CircuitBreakerRule interface

Rule configuration to trip the backend.

Properties

acceptRetryAfter

flag to accept Retry-After header from the backend.

failureCondition

The conditions for tripping the circuit breaker.

name

The rule name.

tripDuration

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