Class DiagnosticUpdateContract
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.models.DiagnosticUpdateContract
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class DiagnosticUpdateContract
extends com.azure.core.management.ProxyResource
Diagnostic details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DiagnosticUpdateContract 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.static DiagnosticUpdateContractfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiagnosticUpdateContract 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.id()Get the id property: Fully qualified resource Id for the resource.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.name()Get the name property: The name of the resource.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) type()Get the type property: The type of the resource.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
-
DiagnosticUpdateContract
public DiagnosticUpdateContract()Creates an instance of DiagnosticUpdateContract class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
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 DiagnosticUpdateContract 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 DiagnosticUpdateContract 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 DiagnosticUpdateContract 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 DiagnosticUpdateContract 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 DiagnosticUpdateContract 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 DiagnosticUpdateContract object itself.
-
httpCorrelationProtocol
Get the httpCorrelationProtocol property: Sets correlation protocol to use for Application Insights diagnostics.- Returns:
- the httpCorrelationProtocol value.
-
withHttpCorrelationProtocol
public DiagnosticUpdateContract 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 DiagnosticUpdateContract 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 DiagnosticUpdateContract 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
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 DiagnosticUpdateContract 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 DiagnosticUpdateContract 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static DiagnosticUpdateContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DiagnosticUpdateContract from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiagnosticUpdateContract if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DiagnosticUpdateContract.
-