Class TelemetryDestinationTestParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class TelemetryDestinationTestParams implements Params
Send one test span, named
anthropic.test, to the destination with its registered headers, once and without retries, and report the destination's answer. The response is 200 whether or not the destination answered with a 2xx status: itsresulthas the typesuccess, or the typefailureand the reason inerror. The destination's configuration,stateanddelivery_healthdo not change. A disabled destination can be tested too. Wait 10 seconds between tests of one destination; a request that comes sooner may be answered with status 429.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTelemetryDestinationTestParams.BuilderA builder for TelemetryDestinationTestParams.
-
Method Summary
Modifier and Type Method Description final Optional<String>destinationId()ID of the destination to test (starts with tdst_).final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send telemetry-destinations-2026-08-11in this header.final Map<String, JsonValue>_additionalBodyProperties()Additional body properties to send with the request. final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final TelemetryDestinationTestParams.BuildertoBuilder()final Optional<Map<String, JsonValue>>_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static TelemetryDestinationTestParamsnone()final static TelemetryDestinationTestParams.Builderbuilder()Returns a mutable builder for constructing an instance of TelemetryDestinationTestParams. -
-
Method Detail
-
destinationId
final Optional<String> destinationId()
ID of the destination to test (starts with
tdst_).
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
telemetry-destinations-2026-08-11in this header.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
Additional body properties to send with the request.
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final TelemetryDestinationTestParams.Builder toBuilder()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
none
final static TelemetryDestinationTestParams none()
-
builder
final static TelemetryDestinationTestParams.Builder builder()
Returns a mutable builder for constructing an instance of TelemetryDestinationTestParams.
-
-
-
-