Package version:

Interface DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration

Dapr Component Resiliency Policy Circuit Breaker Policy Configuration.

interface DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration {
    consecutiveErrors?: number;
    intervalInSeconds?: number;
    timeoutInSeconds?: number;
}

Properties

consecutiveErrors?: number

The number of consecutive errors before the circuit is opened.

intervalInSeconds?: number

The optional interval in seconds after which the error count resets to 0. An interval of 0 will never reset. If not specified, the timeoutInSeconds value will be used.

timeoutInSeconds?: number

The interval in seconds until a retry attempt is made after the circuit is opened.