Class ClusterLogAnalyticsProfile

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterLogAnalyticsProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterLogAnalyticsProfile>

public final class ClusterLogAnalyticsProfile extends Object implements com.azure.json.JsonSerializable<ClusterLogAnalyticsProfile>
Cluster log analytics profile to enable or disable OMS agent for cluster.
  • Constructor Details

    • ClusterLogAnalyticsProfile

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

    • enabled

      public boolean enabled()
      Get the enabled property: True if log analytics is enabled for the cluster, otherwise false.
      Returns:
      the enabled value.
    • withEnabled

      public ClusterLogAnalyticsProfile withEnabled(boolean enabled)
      Set the enabled property: True if log analytics is enabled for the cluster, otherwise false.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the ClusterLogAnalyticsProfile object itself.
    • applicationLogs

      public ClusterLogAnalyticsApplicationLogs applicationLogs()
      Get the applicationLogs property: Collection of logs to be enabled or disabled for log analytics.
      Returns:
      the applicationLogs value.
    • withApplicationLogs

      public ClusterLogAnalyticsProfile withApplicationLogs(ClusterLogAnalyticsApplicationLogs applicationLogs)
      Set the applicationLogs property: Collection of logs to be enabled or disabled for log analytics.
      Parameters:
      applicationLogs - the applicationLogs value to set.
      Returns:
      the ClusterLogAnalyticsProfile object itself.
    • metricsEnabled

      public Boolean metricsEnabled()
      Get the metricsEnabled property: True if metrics are enabled, otherwise false.
      Returns:
      the metricsEnabled value.
    • withMetricsEnabled

      public ClusterLogAnalyticsProfile withMetricsEnabled(Boolean metricsEnabled)
      Set the metricsEnabled property: True if metrics are enabled, otherwise false.
      Parameters:
      metricsEnabled - the metricsEnabled value to set.
      Returns:
      the ClusterLogAnalyticsProfile 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<ClusterLogAnalyticsProfile>
      Throws:
      IOException
    • fromJson

      public static ClusterLogAnalyticsProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ClusterLogAnalyticsProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ClusterLogAnalyticsProfile 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 ClusterLogAnalyticsProfile.