Class DiagnosticContractProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.fluent.models.DiagnosticContractProperties
-
public final class DiagnosticContractProperties extends Object
Diagnostic Entity Properties.
-
-
Constructor Summary
Constructors Constructor Description DiagnosticContractProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlwaysLog
alwaysLog()
Get the alwaysLog property: Specifies for what type of messages sampling settings should not apply.PipelineDiagnosticSettings
backend()
Get the backend property: Diagnostic settings for incoming/outgoing HTTP messages to the Backend.PipelineDiagnosticSettings
frontend()
Get the frontend property: Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.HttpCorrelationProtocol
httpCorrelationProtocol()
Get the httpCorrelationProtocol property: Sets correlation protocol to use for Application Insights diagnostics.Boolean
logClientIp()
Get the logClientIp property: Log the ClientIP.String
loggerId()
Get the loggerId property: Resource Id of a target logger.OperationNameFormat
operationNameFormat()
Get the operationNameFormat property: The format of the Operation Name for Application Insights telemetries.SamplingSettings
sampling()
Get the sampling property: Sampling settings for Diagnostic.void
validate()
Validates the instance.Verbosity
verbosity()
Get the verbosity property: The verbosity level applied to traces emitted by trace policies.DiagnosticContractProperties
withAlwaysLog(AlwaysLog alwaysLog)
Set the alwaysLog property: Specifies for what type of messages sampling settings should not apply.DiagnosticContractProperties
withBackend(PipelineDiagnosticSettings backend)
Set the backend property: Diagnostic settings for incoming/outgoing HTTP messages to the Backend.DiagnosticContractProperties
withFrontend(PipelineDiagnosticSettings frontend)
Set the frontend property: Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.DiagnosticContractProperties
withHttpCorrelationProtocol(HttpCorrelationProtocol httpCorrelationProtocol)
Set the httpCorrelationProtocol property: Sets correlation protocol to use for Application Insights diagnostics.DiagnosticContractProperties
withLogClientIp(Boolean logClientIp)
Set the logClientIp property: Log the ClientIP.DiagnosticContractProperties
withLoggerId(String loggerId)
Set the loggerId property: Resource Id of a target logger.DiagnosticContractProperties
withOperationNameFormat(OperationNameFormat operationNameFormat)
Set the operationNameFormat property: The format of the Operation Name for Application Insights telemetries.DiagnosticContractProperties
withSampling(SamplingSettings sampling)
Set the sampling property: Sampling settings for Diagnostic.DiagnosticContractProperties
withVerbosity(Verbosity verbosity)
Set the verbosity property: The verbosity level applied to traces emitted by trace policies.
-
-
-
Method Detail
-
alwaysLog
public AlwaysLog alwaysLog()
Get the alwaysLog property: Specifies for what type of messages sampling settings should not apply.- Returns:
- the alwaysLog value.
-
withAlwaysLog
public DiagnosticContractProperties withAlwaysLog(AlwaysLog alwaysLog)
Set the alwaysLog property: Specifies for what type of messages sampling settings should not apply.- Parameters:
alwaysLog
- the alwaysLog value to set.- Returns:
- the DiagnosticContractProperties object itself.
-
loggerId
public String loggerId()
Get the loggerId property: Resource Id of a target logger.- Returns:
- the loggerId value.
-
withLoggerId
public DiagnosticContractProperties withLoggerId(String loggerId)
Set the loggerId property: Resource Id of a target logger.- Parameters:
loggerId
- the loggerId value to set.- Returns:
- the DiagnosticContractProperties object itself.
-
sampling
public SamplingSettings sampling()
Get the sampling property: Sampling settings for Diagnostic.- Returns:
- the sampling value.
-
withSampling
public DiagnosticContractProperties withSampling(SamplingSettings sampling)
Set the sampling property: Sampling settings for Diagnostic.- Parameters:
sampling
- the sampling value to set.- Returns:
- the DiagnosticContractProperties object itself.
-
frontend
public PipelineDiagnosticSettings frontend()
Get the frontend property: Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.- Returns:
- the frontend value.
-
withFrontend
public DiagnosticContractProperties withFrontend(PipelineDiagnosticSettings frontend)
Set the frontend property: Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.- Parameters:
frontend
- the frontend value to set.- Returns:
- the DiagnosticContractProperties object itself.
-
backend
public PipelineDiagnosticSettings backend()
Get the backend property: Diagnostic settings for incoming/outgoing HTTP messages to the Backend.- Returns:
- the backend value.
-
withBackend
public DiagnosticContractProperties withBackend(PipelineDiagnosticSettings backend)
Set the backend property: Diagnostic settings for incoming/outgoing HTTP messages to the Backend.- Parameters:
backend
- the backend value to set.- Returns:
- the DiagnosticContractProperties object itself.
-
logClientIp
public Boolean logClientIp()
Get the logClientIp property: Log the ClientIP. Default is false.- Returns:
- the logClientIp value.
-
withLogClientIp
public DiagnosticContractProperties withLogClientIp(Boolean logClientIp)
Set the logClientIp property: Log the ClientIP. Default is false.- Parameters:
logClientIp
- the logClientIp value to set.- Returns:
- the DiagnosticContractProperties object itself.
-
httpCorrelationProtocol
public HttpCorrelationProtocol httpCorrelationProtocol()
Get the httpCorrelationProtocol property: Sets correlation protocol to use for Application Insights diagnostics.- Returns:
- the httpCorrelationProtocol value.
-
withHttpCorrelationProtocol
public DiagnosticContractProperties withHttpCorrelationProtocol(HttpCorrelationProtocol httpCorrelationProtocol)
Set the httpCorrelationProtocol property: Sets correlation protocol to use for Application Insights diagnostics.- Parameters:
httpCorrelationProtocol
- the httpCorrelationProtocol value to set.- Returns:
- the DiagnosticContractProperties object itself.
-
verbosity
public Verbosity verbosity()
Get the verbosity property: The verbosity level applied to traces emitted by trace policies.- Returns:
- the verbosity value.
-
withVerbosity
public DiagnosticContractProperties withVerbosity(Verbosity verbosity)
Set the verbosity property: The verbosity level applied to traces emitted by trace policies.- Parameters:
verbosity
- the verbosity value to set.- Returns:
- the DiagnosticContractProperties object itself.
-
operationNameFormat
public OperationNameFormat operationNameFormat()
Get the operationNameFormat property: The format of the Operation Name for Application Insights telemetries. Default is Name.- Returns:
- the operationNameFormat value.
-
withOperationNameFormat
public DiagnosticContractProperties withOperationNameFormat(OperationNameFormat operationNameFormat)
Set the operationNameFormat property: The format of the Operation Name for Application Insights telemetries. Default is Name.- Parameters:
operationNameFormat
- the operationNameFormat value to set.- Returns:
- the DiagnosticContractProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-