Share via


CircuitBreakerFailureCondition interface

The trip conditions of the circuit breaker

Properties

count

The threshold for opening the circuit.

errorReasons

The error reasons which are considered as failure.

interval

The interval during which the failures are counted.

percentage

The threshold for opening the circuit.

statusCodeRanges

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[]

Property Value