# AzureApiManagementDiagnosticOptions

- Kind: `class`
- Package: [Aspire.Hosting.Azure.ApiManagement](/reference/api/csharp/aspire.hosting.azure.apimanagement.md)
- Version: `17.0.0-preview.1.26567.5`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementDiagnosticOptions.cs)

Configures an Azure API Management Application Insights diagnostic.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public sealed class AzureApiManagementDiagnosticOptions
{
    // ...
}
```

## ATS metadata

### ATS DTO

- Serialized as a plain JSON object without a `$type` discriminator.

## Constructors

- [AzureApiManagementDiagnosticOptions](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementdiagnosticoptions/constructors.md#constructor)

## Properties

- [LogClientIp](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementdiagnosticoptions/properties.md#logclientip) : `bool` `get; init` -- Gets whether the client IP address is included in telemetry.
- [SamplingPercentage](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementdiagnosticoptions/properties.md#samplingpercentage) : `double` `get; init` -- Gets the percentage of requests to sample, from 0 to 100.
- [Verbosity](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementdiagnosticoptions/properties.md#verbosity) : [AzureApiManagementDiagnosticVerbosity](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementdiagnosticverbosity.md) `get; init` -- Gets the diagnostic verbosity.
