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 Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterAzureMonitorProfileKubeStateMetrics class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterAzureMonitorProfileKubeStateMetrics from the JsonReader.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],...').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],...').com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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],...').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],...').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
-
ManagedClusterAzureMonitorProfileKubeStateMetrics
public ManagedClusterAzureMonitorProfileKubeStateMetrics()Creates an instance of ManagedClusterAzureMonitorProfileKubeStateMetrics class.
-
-
Method Details
-
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
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
- Specified by:
toJsonin interfacecom.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.
-