Class DiagnosticContractUpdateProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.DiagnosticContractUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiagnosticContractUpdateProperties>
public final class DiagnosticContractUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<DiagnosticContractUpdateProperties>
Diagnostic Entity Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DiagnosticContractUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the alwaysLog property: Specifies for what type of messages sampling settings should not apply.backend()Get the backend property: Diagnostic settings for incoming/outgoing HTTP messages to the Backend.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiagnosticContractUpdateProperties from the JsonReader.frontend()Get the frontend property: Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.Get the httpCorrelationProtocol property: Sets correlation protocol to use for Application Insights diagnostics.Get the logClientIp property: Log the ClientIP.loggerId()Get the loggerId property: Resource Id of a target logger.metrics()Get the metrics property: Emit custom metrics via emit-metric policy.Get the operationNameFormat property: The format of the Operation Name for Application Insights telemetries.sampling()Get the sampling property: Sampling settings for Diagnostic.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the verbosity property: The verbosity level applied to traces emitted by trace policies.withAlwaysLog(AlwaysLog alwaysLog) Set the alwaysLog property: Specifies for what type of messages sampling settings should not apply.withBackend(PipelineDiagnosticSettings backend) Set the backend property: Diagnostic settings for incoming/outgoing HTTP messages to the Backend.withFrontend(PipelineDiagnosticSettings frontend) Set the frontend property: Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.withHttpCorrelationProtocol(HttpCorrelationProtocol httpCorrelationProtocol) Set the httpCorrelationProtocol property: Sets correlation protocol to use for Application Insights diagnostics.withLogClientIp(Boolean logClientIp) Set the logClientIp property: Log the ClientIP.withLoggerId(String loggerId) Set the loggerId property: Resource Id of a target logger.withMetrics(Boolean metrics) Set the metrics property: Emit custom metrics via emit-metric policy.withOperationNameFormat(OperationNameFormat operationNameFormat) Set the operationNameFormat property: The format of the Operation Name for Application Insights telemetries.withSampling(SamplingSettings sampling) Set the sampling property: Sampling settings for Diagnostic.withVerbosity(Verbosity verbosity) Set the verbosity property: The verbosity level applied to traces emitted by trace policies.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DiagnosticContractUpdateProperties
public DiagnosticContractUpdateProperties()Creates an instance of DiagnosticContractUpdateProperties class.
-
-
Method Details
-
alwaysLog
Get the alwaysLog property: Specifies for what type of messages sampling settings should not apply.- Returns:
- the alwaysLog value.
-
withAlwaysLog
Set the alwaysLog property: Specifies for what type of messages sampling settings should not apply.- Parameters:
alwaysLog- the alwaysLog value to set.- Returns:
- the DiagnosticContractUpdateProperties object itself.
-
loggerId
Get the loggerId property: Resource Id of a target logger.- Returns:
- the loggerId value.
-
withLoggerId
Set the loggerId property: Resource Id of a target logger.- Parameters:
loggerId- the loggerId value to set.- Returns:
- the DiagnosticContractUpdateProperties object itself.
-
sampling
Get the sampling property: Sampling settings for Diagnostic.- Returns:
- the sampling value.
-
withSampling
Set the sampling property: Sampling settings for Diagnostic.- Parameters:
sampling- the sampling value to set.- Returns:
- the DiagnosticContractUpdateProperties object itself.
-
frontend
Get the frontend property: Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.- Returns:
- the frontend value.
-
withFrontend
Set the frontend property: Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.- Parameters:
frontend- the frontend value to set.- Returns:
- the DiagnosticContractUpdateProperties object itself.
-
backend
Get the backend property: Diagnostic settings for incoming/outgoing HTTP messages to the Backend.- Returns:
- the backend value.
-
withBackend
Set the backend property: Diagnostic settings for incoming/outgoing HTTP messages to the Backend.- Parameters:
backend- the backend value to set.- Returns:
- the DiagnosticContractUpdateProperties object itself.
-
logClientIp
Get the logClientIp property: Log the ClientIP. Default is false.- Returns:
- the logClientIp value.
-
withLogClientIp
Set the logClientIp property: Log the ClientIP. Default is false.- Parameters:
logClientIp- the logClientIp value to set.- Returns:
- the DiagnosticContractUpdateProperties object itself.
-
httpCorrelationProtocol
Get the httpCorrelationProtocol property: Sets correlation protocol to use for Application Insights diagnostics.- Returns:
- the httpCorrelationProtocol value.
-
withHttpCorrelationProtocol
public DiagnosticContractUpdateProperties 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 DiagnosticContractUpdateProperties object itself.
-
verbosity
Get the verbosity property: The verbosity level applied to traces emitted by trace policies.- Returns:
- the verbosity value.
-
withVerbosity
Set the verbosity property: The verbosity level applied to traces emitted by trace policies.- Parameters:
verbosity- the verbosity value to set.- Returns:
- the DiagnosticContractUpdateProperties object itself.
-
operationNameFormat
Get the operationNameFormat property: The format of the Operation Name for Application Insights telemetries. Default is Name.- Returns:
- the operationNameFormat value.
-
withOperationNameFormat
public DiagnosticContractUpdateProperties 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 DiagnosticContractUpdateProperties object itself.
-
metrics
Get the metrics property: Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.- Returns:
- the metrics value.
-
withMetrics
Set the metrics property: Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.- Parameters:
metrics- the metrics value to set.- Returns:
- the DiagnosticContractUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DiagnosticContractUpdateProperties>- Throws:
IOException
-
fromJson
public static DiagnosticContractUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DiagnosticContractUpdateProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiagnosticContractUpdateProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the DiagnosticContractUpdateProperties.
-