ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics Class

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

Implements

public final class ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics
implements JsonSerializable<ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics>

Application Monitoring OpenTelemetry Metrics Profile for AKS. Collects OpenTelemetry metrics of the application using Azure Monitor OpenTelemetry based SDKs. See https://aka.ms/AKSAppMonitoringDocs and https://aka.ms/AzureMonitorApplicationMonitoring for an overview.

Constructor Summary

Constructor Description
ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics()

Creates an instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Indicates if Application Monitoring OpenTelemetry Metrics is enabled or not.

static ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics from the JsonReader.

Long grpcPort()

Get the grpcPort property: The host port for OpenTelemetry GRPC metrics.

Long httpPort()

Get the httpPort property: The host port for OpenTelemetry HTTP/PROTOBUF metrics.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics withEnabled(Boolean enabled)

Set the enabled property: Indicates if Application Monitoring OpenTelemetry Metrics is enabled or not.

ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics withGrpcPort(Long grpcPort)

Set the grpcPort property: The host port for OpenTelemetry GRPC metrics.

ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics withHttpPort(Long httpPort)

Set the httpPort property: The host port for OpenTelemetry HTTP/PROTOBUF metrics.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics

public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics()

Creates an instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Indicates if Application Monitoring OpenTelemetry Metrics is enabled or not.

Returns:

the enabled value.

fromJson

public static ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

grpcPort

public Long grpcPort()

Get the grpcPort property: The host port for OpenTelemetry GRPC metrics. If not specified, the default port is 28334.

Returns:

the grpcPort value.

httpPort

public Long httpPort()

Get the httpPort property: The host port for OpenTelemetry HTTP/PROTOBUF metrics. If not specified, the default port is 28333.

Returns:

the httpPort value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics withEnabled(Boolean enabled)

Set the enabled property: Indicates if Application Monitoring OpenTelemetry Metrics is enabled or not.

Parameters:

enabled - the enabled value to set.

Returns:

the ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics object itself.

withGrpcPort

public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics withGrpcPort(Long grpcPort)

Set the grpcPort property: The host port for OpenTelemetry GRPC metrics. If not specified, the default port is 28334.

Parameters:

grpcPort - the grpcPort value to set.

Returns:

the ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics object itself.

withHttpPort

public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics withHttpPort(Long httpPort)

Set the httpPort property: The host port for OpenTelemetry HTTP/PROTOBUF metrics. If not specified, the default port is 28333.

Parameters:

httpPort - the httpPort value to set.

Returns:

the ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics object itself.

Applies to