AzureApiManagementCircuitBreakerOptions

Struct
📦 Aspire.Hosting.Azure.ApiManagement v17.0.0-preview.1.26567.5

Configures a circuit breaker for an Azure API Management backend.

type AzureApiManagementCircuitBreakerOptions struct {
Name *string `json:"Name"`
FailureCount *float64 `json:"FailureCount"`
FailureIntervalSeconds *float64 `json:"FailureIntervalSeconds"`
StatusCodeRanges []*AzureApiManagementStatusCodeRange `json:"StatusCodeRanges"`
TripDurationSeconds *float64 `json:"TripDurationSeconds"`
AcceptRetryAfter *bool `json:"AcceptRetryAfter"`
}

Fields

Name*stringoptional
Gets or sets the circuit-breaker rule name.
FailureCount*float64optional
Gets or sets the number of failures that opens the circuit.
FailureIntervalSeconds*float64optional
Gets or sets the interval, in seconds, during which failures are counted.
StatusCodeRanges[]*AzureApiManagementStatusCodeRangeoptional
Gets or sets the HTTP status-code ranges treated as failures.
TripDurationSeconds*float64optional
Gets or sets how many seconds the circuit remains open.
AcceptRetryAfter*booloptional
Gets or sets whether API Management honors the backend's Retry-After header.