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 Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterLogAnalyticsProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the applicationLogs property: Collection of logs to be enabled or disabled for log analytics.booleanenabled()Get the enabled property: True if log analytics is enabled for the cluster, otherwise false.static ClusterLogAnalyticsProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterLogAnalyticsProfile from the JsonReader.Get the metricsEnabled property: True if metrics are enabled, otherwise false.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withApplicationLogs(ClusterLogAnalyticsApplicationLogs applicationLogs) Set the applicationLogs property: Collection of logs to be enabled or disabled for log analytics.withEnabled(boolean enabled) Set the enabled property: True if log analytics is enabled for the cluster, otherwise false.withMetricsEnabled(Boolean metricsEnabled) Set the metricsEnabled property: True if metrics are enabled, otherwise false.Methods inherited from class 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
-
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
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
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
Get the metricsEnabled property: True if metrics are enabled, otherwise false.- Returns:
- the metricsEnabled value.
-
withMetricsEnabled
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
- Specified by:
toJsonin interfacecom.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.
-