Class ManagedClusterAzureMonitorProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterAzureMonitorProfile>
public final class ManagedClusterAzureMonitorProfile
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterAzureMonitorProfile>
Azure Monitor addon profiles for monitoring the managed cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterAzureMonitorProfile class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterAzureMonitorProfile from the JsonReader.metrics()Get the metrics property: Metrics profile for the Azure Monitor managed service for Prometheus addon.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the metrics property: Metrics profile for the Azure Monitor managed service for Prometheus addon.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
-
ManagedClusterAzureMonitorProfile
public ManagedClusterAzureMonitorProfile()Creates an instance of ManagedClusterAzureMonitorProfile class.
-
-
Method Details
-
metrics
Get the metrics property: Metrics profile for the Azure Monitor managed service for Prometheus addon. Collect out-of-the-box Kubernetes infrastructure metrics to send to an Azure Monitor Workspace and configure additional scraping for custom targets. See aka.ms/AzureManagedPrometheus for an overview.- Returns:
- the metrics value.
-
withMetrics
public ManagedClusterAzureMonitorProfile withMetrics(ManagedClusterAzureMonitorProfileMetrics metrics) Set the metrics property: Metrics profile for the Azure Monitor managed service for Prometheus addon. Collect out-of-the-box Kubernetes infrastructure metrics to send to an Azure Monitor Workspace and configure additional scraping for custom targets. See aka.ms/AzureManagedPrometheus for an overview.- Parameters:
metrics- the metrics value to set.- Returns:
- the ManagedClusterAzureMonitorProfile 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<ManagedClusterAzureMonitorProfile>- Throws:
IOException
-
fromJson
public static ManagedClusterAzureMonitorProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterAzureMonitorProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterAzureMonitorProfile 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 ManagedClusterAzureMonitorProfile.
-