CircuitBreakerPolicy Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Policy that defines circuit breaker conditions.
public class CircuitBreakerPolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.AppContainers.Models.CircuitBreakerPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.AppContainers.Models.CircuitBreakerPolicy>
type CircuitBreakerPolicy = class
interface IJsonModel<CircuitBreakerPolicy>
interface IPersistableModel<CircuitBreakerPolicy>
Public Class CircuitBreakerPolicy
Implements IJsonModel(Of CircuitBreakerPolicy), IPersistableModel(Of CircuitBreakerPolicy)
- Inheritance
-
CircuitBreakerPolicy
- Implements
Constructors
| Name | Description |
|---|---|
| CircuitBreakerPolicy() |
Initializes a new instance of CircuitBreakerPolicy. |
Properties
| Name | Description |
|---|---|
| ConsecutiveErrors |
Number of consecutive errors before the circuit breaker opens. |
| IntervalInSeconds |
The time interval, in seconds, between endpoint checks. This can result in opening the circuit breaker if the check fails as well as closing the circuit breaker if the check succeeds. Defaults to 10s. |
| MaxEjectionPercent |
Maximum percentage of hosts that will be ejected after failure threshold has been met. |