Udostępnij za pośrednictwem


ArmApiManagementModelFactory.DiagnosticContractData Method

Definition

Initializes a new instance of DiagnosticContractData.

public static Azure.ResourceManager.ApiManagement.DiagnosticContractData DiagnosticContractData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.ApiManagement.Models.AlwaysLog? alwaysLog = default, string loggerId = default, Azure.ResourceManager.ApiManagement.Models.SamplingSettings sampling = default, Azure.ResourceManager.ApiManagement.Models.PipelineDiagnosticSettings frontend = default, Azure.ResourceManager.ApiManagement.Models.PipelineDiagnosticSettings backend = default, bool? isLogClientIPEnabled = default, Azure.ResourceManager.ApiManagement.Models.HttpCorrelationProtocol? httpCorrelationProtocol = default, Azure.ResourceManager.ApiManagement.Models.TraceVerbosityLevel? verbosity = default, Azure.ResourceManager.ApiManagement.Models.OperationNameFormat? operationNameFormat = default, bool? metrics = default);
static member DiagnosticContractData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.ApiManagement.Models.AlwaysLog> * string * Azure.ResourceManager.ApiManagement.Models.SamplingSettings * Azure.ResourceManager.ApiManagement.Models.PipelineDiagnosticSettings * Azure.ResourceManager.ApiManagement.Models.PipelineDiagnosticSettings * Nullable<bool> * Nullable<Azure.ResourceManager.ApiManagement.Models.HttpCorrelationProtocol> * Nullable<Azure.ResourceManager.ApiManagement.Models.TraceVerbosityLevel> * Nullable<Azure.ResourceManager.ApiManagement.Models.OperationNameFormat> * Nullable<bool> -> Azure.ResourceManager.ApiManagement.DiagnosticContractData
Public Shared Function DiagnosticContractData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional alwaysLog As Nullable(Of AlwaysLog) = Nothing, Optional loggerId As String = Nothing, Optional sampling As SamplingSettings = Nothing, Optional frontend As PipelineDiagnosticSettings = Nothing, Optional backend As PipelineDiagnosticSettings = Nothing, Optional isLogClientIPEnabled As Nullable(Of Boolean) = Nothing, Optional httpCorrelationProtocol As Nullable(Of HttpCorrelationProtocol) = Nothing, Optional verbosity As Nullable(Of TraceVerbosityLevel) = Nothing, Optional operationNameFormat As Nullable(Of OperationNameFormat) = Nothing, Optional metrics As Nullable(Of Boolean) = Nothing) As DiagnosticContractData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

alwaysLog
Nullable<AlwaysLog>

Specifies for what type of messages sampling settings should not apply.

loggerId
String

Resource Id of a target logger.

sampling
SamplingSettings

Sampling settings for Diagnostic.

frontend
PipelineDiagnosticSettings

Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.

backend
PipelineDiagnosticSettings

Diagnostic settings for incoming/outgoing HTTP messages to the Backend.

isLogClientIPEnabled
Nullable<Boolean>

Log the ClientIP. Default is false.

httpCorrelationProtocol
Nullable<HttpCorrelationProtocol>

Sets correlation protocol to use for Application Insights diagnostics.

verbosity
Nullable<TraceVerbosityLevel>

The verbosity level applied to traces emitted by trace policies.

operationNameFormat
Nullable<OperationNameFormat>

The format of the Operation Name for Application Insights telemetries. Default is Name.

metrics
Nullable<Boolean>

Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.

Returns

A new DiagnosticContractData instance for mocking.

Applies to