ManagedClusterAzureMonitorProfileKubeStateMetrics Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ManagedClusterAzureMonitorProfileKubeStateMetrics
- com.
Implements
public final class ManagedClusterAzureMonitorProfileKubeStateMetrics
implements 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
Constructor | Description |
---|---|
ManagedClusterAzureMonitorProfileKubeStateMetrics() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
String |
metricAnnotationsAllowList()
Get the metric |
String |
metricLabelsAllowlist()
Get the metric |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
withMetricAnnotationsAllowList(String metricAnnotationsAllowList)
Set the metric |
Managed |
withMetricLabelsAllowlist(String metricLabelsAllowlist)
Set the metric |
Methods inherited from java.lang.Object
Constructor Details
ManagedClusterAzureMonitorProfileKubeStateMetrics
public ManagedClusterAzureMonitorProfileKubeStateMetrics()
Creates an instance of ManagedClusterAzureMonitorProfileKubeStateMetrics class.
Method Details
fromJson
public static ManagedClusterAzureMonitorProfileKubeStateMetrics fromJson(JsonReader jsonReader)
Reads an instance of ManagedClusterAzureMonitorProfileKubeStateMetrics from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java