Condividi tramite


DiagnosticContract Constructors

Definition

Overloads

DiagnosticContract()

Initializes a new instance of the DiagnosticContract class.

DiagnosticContract(String, String, String, String, String, SamplingSettings, PipelineDiagnosticSettings, PipelineDiagnosticSettings, Nullable<Boolean>, String, String, String)

Initializes a new instance of the DiagnosticContract class.

DiagnosticContract()

Initializes a new instance of the DiagnosticContract class.

public DiagnosticContract ();
Public Sub New ()

Applies to

DiagnosticContract(String, String, String, String, String, SamplingSettings, PipelineDiagnosticSettings, PipelineDiagnosticSettings, Nullable<Boolean>, String, String, String)

Initializes a new instance of the DiagnosticContract class.

public DiagnosticContract (string loggerId, string id = default, string name = default, string type = default, string alwaysLog = default, Microsoft.Azure.Management.ApiManagement.Models.SamplingSettings sampling = default, Microsoft.Azure.Management.ApiManagement.Models.PipelineDiagnosticSettings frontend = default, Microsoft.Azure.Management.ApiManagement.Models.PipelineDiagnosticSettings backend = default, bool? logClientIp = default, string httpCorrelationProtocol = default, string verbosity = default, string operationNameFormat = default);
new Microsoft.Azure.Management.ApiManagement.Models.DiagnosticContract : string * string * string * string * string * Microsoft.Azure.Management.ApiManagement.Models.SamplingSettings * Microsoft.Azure.Management.ApiManagement.Models.PipelineDiagnosticSettings * Microsoft.Azure.Management.ApiManagement.Models.PipelineDiagnosticSettings * Nullable<bool> * string * string * string -> Microsoft.Azure.Management.ApiManagement.Models.DiagnosticContract
Public Sub New (loggerId As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional alwaysLog As String = Nothing, Optional sampling As SamplingSettings = Nothing, Optional frontend As PipelineDiagnosticSettings = Nothing, Optional backend As PipelineDiagnosticSettings = Nothing, Optional logClientIp As Nullable(Of Boolean) = Nothing, Optional httpCorrelationProtocol As String = Nothing, Optional verbosity As String = Nothing, Optional operationNameFormat As String = Nothing)

Parameters

loggerId
String

Resource Id of a target logger.

id
String

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

The name of the resource

type
String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

alwaysLog
String

Specifies for what type of messages sampling settings should not apply. Possible values include: 'allErrors'

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

logClientIp
Nullable<Boolean>

Log the ClientIP. Default is false.

httpCorrelationProtocol
String

Sets correlation protocol to use for Application Insights diagnostics. Possible values include: 'None', 'Legacy', 'W3C'

verbosity
String

The verbosity level applied to traces emitted by trace policies. Possible values include: 'verbose', 'information', 'error'

operationNameFormat
String

The format of the Operation Name for Application Insights telemetries. Default is Name. Possible values include: 'Name', 'Url'

Applies to