Class ManagedClusterAzureMonitorProfileMetrics
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfileMetrics
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterAzureMonitorProfileMetrics>
public final class ManagedClusterAzureMonitorProfileMetrics
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterAzureMonitorProfileMetrics>
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.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterAzureMonitorProfileMetrics class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Get the enabled property: Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterAzureMonitorProfileMetrics from the JsonReader.Get the kubeStateMetrics property: Kube State Metrics profile for the Azure Managed Prometheus addon.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnabled(boolean enabled) Set the enabled property: Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring.withKubeStateMetrics(ManagedClusterAzureMonitorProfileKubeStateMetrics kubeStateMetrics) Set the kubeStateMetrics property: Kube State Metrics profile for the Azure Managed 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
-
ManagedClusterAzureMonitorProfileMetrics
public ManagedClusterAzureMonitorProfileMetrics()Creates an instance of ManagedClusterAzureMonitorProfileMetrics class.
-
-
Method Details
-
enabled
public boolean enabled()Get the enabled property: Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling.- Parameters:
enabled- the enabled value to set.- Returns:
- the ManagedClusterAzureMonitorProfileMetrics object itself.
-
kubeStateMetrics
Get the kubeStateMetrics property: Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details.- Returns:
- the kubeStateMetrics value.
-
withKubeStateMetrics
public ManagedClusterAzureMonitorProfileMetrics withKubeStateMetrics(ManagedClusterAzureMonitorProfileKubeStateMetrics kubeStateMetrics) Set the kubeStateMetrics property: Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details.- Parameters:
kubeStateMetrics- the kubeStateMetrics value to set.- Returns:
- the ManagedClusterAzureMonitorProfileMetrics 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<ManagedClusterAzureMonitorProfileMetrics>- Throws:
IOException
-
fromJson
public static ManagedClusterAzureMonitorProfileMetrics fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterAzureMonitorProfileMetrics from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterAzureMonitorProfileMetrics 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 ManagedClusterAzureMonitorProfileMetrics.
-