Class MonitoringSettingProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.MonitoringSettingProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MonitoringSettingProperties>
public final class MonitoringSettingProperties
extends Object
implements com.azure.json.JsonSerializable<MonitoringSettingProperties>
Monitoring Setting properties payload.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MonitoringSettingProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the appInsightsAgentVersions property: Indicates the versions of application insight agent.Get the appInsightsInstrumentationKey property: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings.Get the appInsightsSamplingRate property: Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0].error()Get the error property: Error when apply Monitoring Setting changes.static MonitoringSettingPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MonitoringSettingProperties from the JsonReader.Get the provisioningState property: State of the Monitoring Setting.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the traceEnabled property: Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview.voidvalidate()Validates the instance.withAppInsightsAgentVersions(ApplicationInsightsAgentVersions appInsightsAgentVersions) Set the appInsightsAgentVersions property: Indicates the versions of application insight agent.withAppInsightsInstrumentationKey(String appInsightsInstrumentationKey) Set the appInsightsInstrumentationKey property: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings.withAppInsightsSamplingRate(Double appInsightsSamplingRate) Set the appInsightsSamplingRate property: Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0].Set the error property: Error when apply Monitoring Setting changes.withTraceEnabled(Boolean traceEnabled) Set the traceEnabled property: Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview.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
-
MonitoringSettingProperties
public MonitoringSettingProperties()Creates an instance of MonitoringSettingProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: State of the Monitoring Setting.- Returns:
- the provisioningState value.
-
error
Get the error property: Error when apply Monitoring Setting changes.- Returns:
- the error value.
-
withError
Set the error property: Error when apply Monitoring Setting changes.- Parameters:
error- the error value to set.- Returns:
- the MonitoringSettingProperties object itself.
-
traceEnabled
Get the traceEnabled property: Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not.- Returns:
- the traceEnabled value.
-
withTraceEnabled
Set the traceEnabled property: Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not.- Parameters:
traceEnabled- the traceEnabled value to set.- Returns:
- the MonitoringSettingProperties object itself.
-
appInsightsInstrumentationKey
Get the appInsightsInstrumentationKey property: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings.- Returns:
- the appInsightsInstrumentationKey value.
-
withAppInsightsInstrumentationKey
public MonitoringSettingProperties withAppInsightsInstrumentationKey(String appInsightsInstrumentationKey) Set the appInsightsInstrumentationKey property: Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings.- Parameters:
appInsightsInstrumentationKey- the appInsightsInstrumentationKey value to set.- Returns:
- the MonitoringSettingProperties object itself.
-
appInsightsSamplingRate
Get the appInsightsSamplingRate property: Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0].- Returns:
- the appInsightsSamplingRate value.
-
withAppInsightsSamplingRate
Set the appInsightsSamplingRate property: Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0].- Parameters:
appInsightsSamplingRate- the appInsightsSamplingRate value to set.- Returns:
- the MonitoringSettingProperties object itself.
-
appInsightsAgentVersions
Get the appInsightsAgentVersions property: Indicates the versions of application insight agent.- Returns:
- the appInsightsAgentVersions value.
-
withAppInsightsAgentVersions
public MonitoringSettingProperties withAppInsightsAgentVersions(ApplicationInsightsAgentVersions appInsightsAgentVersions) Set the appInsightsAgentVersions property: Indicates the versions of application insight agent.- Parameters:
appInsightsAgentVersions- the appInsightsAgentVersions value to set.- Returns:
- the MonitoringSettingProperties 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<MonitoringSettingProperties>- Throws:
IOException
-
fromJson
public static MonitoringSettingProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MonitoringSettingProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MonitoringSettingProperties 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 MonitoringSettingProperties.
-