# AzureApiManagementDiagnosticOptions

- 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 an Azure API Management Application Insights diagnostic.

## Definition

```go
type AzureApiManagementDiagnosticOptions struct {
    SamplingPercentage *float64                               `json:"SamplingPercentage"`
    Verbosity          *AzureApiManagementDiagnosticVerbosity `json:"Verbosity"`
    LogClientIp        *bool                                  `json:"LogClientIp"`
}
```

## Fields

- `SamplingPercentage`: `*float64` `optional` -- Gets the percentage of requests to sample, from 0 to 100.
- `Verbosity`: [`*AzureApiManagementDiagnosticVerbosity`](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementdiagnosticverbosity.md) `optional` -- Gets the diagnostic verbosity.
- `LogClientIp`: `*bool` `optional` -- Gets whether the client IP address is included in telemetry.
