ManagedClusterAzureMonitorProfileMetricsControlPlane Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfileMetricsControlPlane

Implements

public final class ManagedClusterAzureMonitorProfileMetricsControlPlane
implements JsonSerializable<ManagedClusterAzureMonitorProfileMetricsControlPlane>

Control plane metrics collection profile for the Azure Managed Prometheus addon. Configures collection of operational runtime metrics from managed control plane components (kube-apiserver, etcd, etc). See aka.ms/aks/controlplane-metrics for an overview.

Constructor Summary

Constructor Description
ManagedClusterAzureMonitorProfileMetricsControlPlane()

Creates an instance of ManagedClusterAzureMonitorProfileMetricsControlPlane class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Whether to enable or disable collection of control plane metrics by the Azure Managed Prometheus addon.

static ManagedClusterAzureMonitorProfileMetricsControlPlane fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfileMetricsControlPlane from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterAzureMonitorProfileMetricsControlPlane withEnabled(Boolean enabled)

Set the enabled property: Whether to enable or disable collection of control plane metrics by the Azure Managed Prometheus addon.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterAzureMonitorProfileMetricsControlPlane

public ManagedClusterAzureMonitorProfileMetricsControlPlane()

Creates an instance of ManagedClusterAzureMonitorProfileMetricsControlPlane class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Whether to enable or disable collection of control plane metrics by the Azure Managed Prometheus addon. Defaults to disabled. See aka.ms/aks/controlplane-metrics for details.

Returns:

the enabled value.

fromJson

public static ManagedClusterAzureMonitorProfileMetricsControlPlane fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfileMetricsControlPlane from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedClusterAzureMonitorProfileMetricsControlPlane 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 ManagedClusterAzureMonitorProfileMetricsControlPlane.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public ManagedClusterAzureMonitorProfileMetricsControlPlane withEnabled(Boolean enabled)

Set the enabled property: Whether to enable or disable collection of control plane metrics by the Azure Managed Prometheus addon. Defaults to disabled. See aka.ms/aks/controlplane-metrics for details.

Parameters:

enabled - the enabled value to set.

Returns:

the ManagedClusterAzureMonitorProfileMetricsControlPlane object itself.

Applies to