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

      public ManagedClusterAzureMonitorProfileMetrics withEnabled(boolean enabled)
      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

      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.