ManagedClusterAzureMonitorProfile Class

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

Implements

public final class ManagedClusterAzureMonitorProfile
implements JsonSerializable<ManagedClusterAzureMonitorProfile>

Azure Monitor addon profiles for monitoring the managed cluster.

Constructor Summary

Constructor Description
ManagedClusterAzureMonitorProfile()

Creates an instance of ManagedClusterAzureMonitorProfile class.

Method Summary

Modifier and Type Method and Description
ManagedClusterAzureMonitorProfileAppMonitoring appMonitoring()

Get the appMonitoring property: Application Monitoring Profile for Kubernetes Application Container.

static ManagedClusterAzureMonitorProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfile from the JsonReader.

ManagedClusterAzureMonitorProfileMetrics metrics()

Get the metrics property: Metrics profile for the Azure Monitor managed service for Prometheus addon.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterAzureMonitorProfile withAppMonitoring(ManagedClusterAzureMonitorProfileAppMonitoring appMonitoring)

Set the appMonitoring property: Application Monitoring Profile for Kubernetes Application Container.

ManagedClusterAzureMonitorProfile withMetrics(ManagedClusterAzureMonitorProfileMetrics metrics)

Set the metrics property: Metrics profile for the Azure Monitor managed service for Prometheus addon.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterAzureMonitorProfile

public ManagedClusterAzureMonitorProfile()

Creates an instance of ManagedClusterAzureMonitorProfile class.

Method Details

appMonitoring

public ManagedClusterAzureMonitorProfileAppMonitoring appMonitoring()

Get the appMonitoring property: Application Monitoring Profile for Kubernetes Application Container. Collects application logs, metrics and traces through auto-instrumentation of the application using Azure Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview.

Returns:

the appMonitoring value.

fromJson

public static ManagedClusterAzureMonitorProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

metrics

public ManagedClusterAzureMonitorProfileMetrics metrics()

Get the metrics property: 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.

Returns:

the metrics value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAppMonitoring

public ManagedClusterAzureMonitorProfile withAppMonitoring(ManagedClusterAzureMonitorProfileAppMonitoring appMonitoring)

Set the appMonitoring property: Application Monitoring Profile for Kubernetes Application Container. Collects application logs, metrics and traces through auto-instrumentation of the application using Azure Monitor OpenTelemetry based SDKs. See aka.ms/AzureMonitorApplicationMonitoring for an overview.

Parameters:

appMonitoring - the appMonitoring value to set.

Returns:

the ManagedClusterAzureMonitorProfile object itself.

withMetrics

public ManagedClusterAzureMonitorProfile withMetrics(ManagedClusterAzureMonitorProfileMetrics metrics)

Set the metrics property: 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.

Parameters:

metrics - the metrics value to set.

Returns:

the ManagedClusterAzureMonitorProfile object itself.

Applies to