Class ManagedClusterAzureMonitorProfileKubeStateMetrics

java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfileKubeStateMetrics
All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterAzureMonitorProfileKubeStateMetrics>

public final class ManagedClusterAzureMonitorProfileKubeStateMetrics extends Object implements com.azure.json.JsonSerializable<ManagedClusterAzureMonitorProfileKubeStateMetrics>
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.
  • Constructor Details

    • ManagedClusterAzureMonitorProfileKubeStateMetrics

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

    • metricLabelsAllowlist

      public String metricLabelsAllowlist()
      Get the metricLabelsAllowlist property: Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric (Example: 'namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...'). By default the metric contains only resource name and namespace labels.
      Returns:
      the metricLabelsAllowlist value.
    • withMetricLabelsAllowlist

      public ManagedClusterAzureMonitorProfileKubeStateMetrics withMetricLabelsAllowlist(String metricLabelsAllowlist)
      Set the metricLabelsAllowlist property: Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric (Example: 'namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...'). By default the metric contains only resource name and namespace labels.
      Parameters:
      metricLabelsAllowlist - the metricLabelsAllowlist value to set.
      Returns:
      the ManagedClusterAzureMonitorProfileKubeStateMetrics object itself.
    • metricAnnotationsAllowList

      public String metricAnnotationsAllowList()
      Get the metricAnnotationsAllowList property: Comma-separated list of Kubernetes annotation keys that will be used in the resource's labels metric (Example: 'namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...'). By default the metric contains only resource name and namespace labels.
      Returns:
      the metricAnnotationsAllowList value.
    • withMetricAnnotationsAllowList

      public ManagedClusterAzureMonitorProfileKubeStateMetrics withMetricAnnotationsAllowList(String metricAnnotationsAllowList)
      Set the metricAnnotationsAllowList property: Comma-separated list of Kubernetes annotation keys that will be used in the resource's labels metric (Example: 'namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...'). By default the metric contains only resource name and namespace labels.
      Parameters:
      metricAnnotationsAllowList - the metricAnnotationsAllowList value to set.
      Returns:
      the ManagedClusterAzureMonitorProfileKubeStateMetrics 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<ManagedClusterAzureMonitorProfileKubeStateMetrics>
      Throws:
      IOException
    • fromJson

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