Condividi tramite


CircuitBreakerRule Class

Definition

Rule configuration to trip the backend.

public class CircuitBreakerRule : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ApiManagement.Models.CircuitBreakerRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ApiManagement.Models.CircuitBreakerRule>
type CircuitBreakerRule = class
    interface IJsonModel<CircuitBreakerRule>
    interface IPersistableModel<CircuitBreakerRule>
Public Class CircuitBreakerRule
Implements IJsonModel(Of CircuitBreakerRule), IPersistableModel(Of CircuitBreakerRule)
Inheritance
CircuitBreakerRule
Implements

Constructors

CircuitBreakerRule()

Initializes a new instance of CircuitBreakerRule.

Properties

FailureCondition

The conditions for tripping the circuit breaker.

Name

The rule name.

TripDuration

The duration for which the circuit will be tripped.

Explicit Interface Implementations

IJsonModel<CircuitBreakerRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<CircuitBreakerRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CircuitBreakerRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CircuitBreakerRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<CircuitBreakerRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to