Class MonitoringSettingProperties


  • public final class MonitoringSettingProperties
    extends Object
    Monitoring Setting properties payload.
    • Constructor Detail

      • MonitoringSettingProperties

        public MonitoringSettingProperties()
    • Method Detail

      • 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.