你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration Class

Dapr Component Resiliency Policy Circuit Breaker Policy Configuration.

Constructor

DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration(*args: Any, **kwargs: Any)

Variables

Name Description
consecutive_errors
int

The number of consecutive errors before the circuit is opened.

timeout_in_seconds
int

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

interval_in_seconds
int

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.

Attributes

consecutive_errors

The number of consecutive errors before the circuit is opened.

consecutive_errors: int | None

interval_in_seconds

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.

interval_in_seconds: int | None

timeout_in_seconds

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

timeout_in_seconds: int | None