ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces Class

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

Implements

public final class ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces
implements JsonSerializable<ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces>

Application Monitoring OpenTelemetry logs and traces profile for AKS. Collects OpenTelemetry logs and traces 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
ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces()

Creates an instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Indicates if Application Monitoring OpenTelemetry Logs and traces is enabled or not.

static ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces from the JsonReader.

Long grpcPort()

Get the grpcPort property: The host port for OpenTelemetry GRPC logs and traces.

Long httpPort()

Get the httpPort property: The host port for OpenTelemetry HTTP/PROTOBUF logs and traces.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces withEnabled(Boolean enabled)

Set the enabled property: Indicates if Application Monitoring OpenTelemetry Logs and traces is enabled or not.

ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces withGrpcPort(Long grpcPort)

Set the grpcPort property: The host port for OpenTelemetry GRPC logs and traces.

ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces withHttpPort(Long httpPort)

Set the httpPort property: The host port for OpenTelemetry HTTP/PROTOBUF logs and traces.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces

public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces()

Creates an instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Indicates if Application Monitoring OpenTelemetry Logs and traces is enabled or not.

Returns:

the enabled value.

fromJson

public static ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

grpcPort

public Long grpcPort()

Get the grpcPort property: The host port for OpenTelemetry GRPC logs and traces. If not specified, the default port is 28332.

Returns:

the grpcPort value.

httpPort

public Long httpPort()

Get the httpPort property: The host port for OpenTelemetry HTTP/PROTOBUF logs and traces. If not specified, the default port is 28331.

Returns:

the httpPort value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces withEnabled(Boolean enabled)

Set the enabled property: Indicates if Application Monitoring OpenTelemetry Logs and traces is enabled or not.

Parameters:

enabled - the enabled value to set.

Returns:

the ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces object itself.

withGrpcPort

public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces withGrpcPort(Long grpcPort)

Set the grpcPort property: The host port for OpenTelemetry GRPC logs and traces. If not specified, the default port is 28332.

Parameters:

grpcPort - the grpcPort value to set.

Returns:

the ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces object itself.

withHttpPort

public ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces withHttpPort(Long httpPort)

Set the httpPort property: The host port for OpenTelemetry HTTP/PROTOBUF logs and traces. If not specified, the default port is 28331.

Parameters:

httpPort - the httpPort value to set.

Returns:

the ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces object itself.

Applies to