TelemetryConfig Class

  • java.lang.Object
    • com.azure.ai.agents.models.TelemetryConfig

Implements

public final class TelemetryConfig
implements JsonSerializable<TelemetryConfig>

Customer-supplied telemetry configuration for exporting container logs, traces, and metrics.

Constructor Summary

Constructor Description
TelemetryConfig(List<TelemetryEndpoint> endpoints)

Creates an instance of TelemetryConfig class.

Method Summary

Modifier and Type Method and Description
static TelemetryConfig fromJson(JsonReader jsonReader)

Reads an instance of TelemetryConfig from the JsonReader.

List<TelemetryEndpoint> getEndpoints()

Get the endpoints property: Customer-supplied telemetry export endpoint configurations.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

TelemetryConfig

public TelemetryConfig(List<TelemetryEndpoint> endpoints)

Creates an instance of TelemetryConfig class.

Parameters:

endpoints - the endpoints value to set.

Method Details

fromJson

public static TelemetryConfig fromJson(JsonReader jsonReader)

Reads an instance of TelemetryConfig from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TelemetryConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getEndpoints

public List<TelemetryEndpoint> getEndpoints()

Get the endpoints property: Customer-supplied telemetry export endpoint configurations.

Returns:

the endpoints value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to