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 Details

    • MonitoringSettingProperties

      public MonitoringSettingProperties()
      Creates an instance of MonitoringSettingProperties class.
  • Method Details

    • provisioningState

      public MonitoringSettingState provisioningState()
      Get the provisioningState property: State of the Monitoring Setting.
      Returns:
      the provisioningState value.
    • error

      public Error error()
      Get the error property: Error when apply Monitoring Setting changes.
      Returns:
      the error value.
    • withError

      public MonitoringSettingProperties withError(Error error)
      Set the error property: Error when apply Monitoring Setting changes.
      Parameters:
      error - the error value to set.
      Returns:
      the MonitoringSettingProperties object itself.
    • traceEnabled

      public Boolean 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

      public MonitoringSettingProperties withTraceEnabled(Boolean traceEnabled)
      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

      public String 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

      public Double 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

      public MonitoringSettingProperties withAppInsightsSamplingRate(Double appInsightsSamplingRate)
      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

      public ApplicationInsightsAgentVersions 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.