# AzureApiManagementCircuitBreakerOptions

- Module: [Aspire.Hosting.Azure.ApiManagement](/reference/api/go/aspire.hosting.azure.apimanagement.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Configures a circuit breaker for an Azure API Management backend.

## Definition

```go
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`: `*string` `optional` -- Gets or sets the circuit-breaker rule name.
- `FailureCount`: `*float64` `optional` -- Gets or sets the number of failures that opens the circuit.
- `FailureIntervalSeconds`: `*float64` `optional` -- Gets or sets the interval, in seconds, during which failures are counted.
- `StatusCodeRanges`: [`[]*AzureApiManagementStatusCodeRange`](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementstatuscoderange.md) `optional` -- Gets or sets the HTTP status-code ranges treated as failures.
- `TripDurationSeconds`: `*float64` `optional` -- Gets or sets how many seconds the circuit remains open.
- `AcceptRetryAfter`: `*bool` `optional` -- Gets or sets whether API Management honors the backend's `Retry-After` header.
