DiagnosticContract Class

Definition

Diagnostic details.

[Microsoft.Rest.Serialization.JsonTransformation]
public class DiagnosticContract : Microsoft.Azure.Management.ApiManagement.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type DiagnosticContract = class
    inherit Resource
Public Class DiagnosticContract
Inherits Resource
Inheritance
DiagnosticContract
Attributes

Constructors

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.

Properties

AlwaysLog

Gets or sets specifies for what type of messages sampling settings should not apply. Possible values include: 'allErrors'

Backend

Gets or sets diagnostic settings for incoming/outgoing HTTP messages to the Backend

Frontend

Gets or sets diagnostic settings for incoming/outgoing HTTP messages to the Gateway.

HttpCorrelationProtocol

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

Id

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

(Inherited from Resource)
LogClientIp

Gets or sets log the ClientIP. Default is false.

LoggerId

Gets or sets resource Id of a target logger.

Name

Gets the name of the resource

(Inherited from Resource)
OperationNameFormat

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

Sampling

Gets or sets sampling settings for Diagnostic.

Type

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

(Inherited from Resource)
Verbosity

Gets or sets the verbosity level applied to traces emitted by trace policies. Possible values include: 'verbose', 'information', 'error'

Methods

Validate()

Validate the object.

Applies to