Class TelemetryDestinationUpdateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class TelemetryDestinationUpdateParams implements Params
Change a telemetry destination's settings, its state, or which workspaces it covers.
Send at least one field. Omitted fields keep their stored values, except the registered headers, which a change of the endpoint's hostname or port removes. Only
display_name,traces,traces.endpoint_url,traces.content_mode,traces.max_content_bytes, and individualheadersvalues acceptnull.If another request changes the destination while the update runs, the API returns a 409
conflict_error. Read the destination again, then retry the update.See the OpenTelemetry export guide to learn more about changing a destination.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTelemetryDestinationUpdateParams.BuilderA builder for TelemetryDestinationUpdateParams.
public final classTelemetryDestinationUpdateParams.Bodypublic final classTelemetryDestinationUpdateParams.DestinationHeadersHeaders to set or remove. The API merges them into the destination's headers by name.
Names compare case-insensitively. A string value sets or replaces that header. A
nullvalue removes it. Headers that you omit don't change. The field itself can't benull.A request that sets a header value must also include
endpoint_url. The current URL is accepted.The resulting set must stay within the same limits as on create. When the request sets a value, each stored value that it doesn't set counts as 4,096 bytes toward the 16,384-byte limit, because you can't read its real length. So to change one header of a destination that has four or more other headers, send the values of the others again in the same request.
-
Method Summary
Modifier and Type Method Description final Optional<String>destinationId()ID of the destination ( tdst_...).final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send telemetry-destinations-2026-08-11in this header.final Optional<String>displayName()New human-readable name, 1 to 255 characters. final Optional<String>endpointUrl()The new base URL of the destination's OTLP/HTTP endpoint. final Optional<TelemetryDestinationUpdateParams.DestinationHeaders>headers()Headers to set or remove. final Optional<BetaTelemetryDestinationStateParams>state()Whether the destination receives deliveries after the update. final Optional<BetaTelemetryDestinationTracesParams>traces()The traces settings to change. final Optional<BetaTelemetryDestinationWorkspacesParams>workspaces()The new workspace scope, in the same form as on create. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final JsonField<String>_endpointUrl()Returns the raw JSON value of endpointUrl. final JsonField<TelemetryDestinationUpdateParams.DestinationHeaders>_headers_()Returns the raw JSON value of headers. final JsonField<BetaTelemetryDestinationStateParams>_state()Returns the raw JSON value of state. final JsonField<BetaTelemetryDestinationTracesParams>_traces()Returns the raw JSON value of traces. final JsonField<BetaTelemetryDestinationWorkspacesParams>_workspaces()Returns the raw JSON value of workspaces. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final TelemetryDestinationUpdateParams.BuildertoBuilder()final TelemetryDestinationUpdateParams.Body_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 TelemetryDestinationUpdateParamsnone()final static TelemetryDestinationUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of TelemetryDestinationUpdateParams. -
-
Method Detail
-
destinationId
final Optional<String> destinationId()
ID of the destination (
tdst_...).
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
telemetry-destinations-2026-08-11in this header.
-
displayName
final Optional<String> displayName()
New human-readable name, 1 to 255 characters. Null clears it.
-
endpointUrl
final Optional<String> endpointUrl()
The new base URL of the destination's OTLP/HTTP endpoint. The same rules as on create apply.
A change of hostname or port first removes every registered header, so send the headers for the new endpoint in the same request. When the destination has a
traces.endpoint_url, such a change must also settraces.endpoint_urlto a URL with the new hostname and port, or tonull. A change of the path alone keeps the headers.
-
headers
final Optional<TelemetryDestinationUpdateParams.DestinationHeaders> headers()
Headers to set or remove. The API merges them into the destination's headers by name.
Names compare case-insensitively. A string value sets or replaces that header. A
nullvalue removes it. Headers that you omit don't change. The field itself can't benull.A request that sets a header value must also include
endpoint_url. The current URL is accepted.The resulting set must stay within the same limits as on create. When the request sets a value, each stored value that it doesn't set counts as 4,096 bytes toward the 16,384-byte limit, because you can't read its real length. So to change one header of a destination that has four or more other headers, send the values of the others again in the same request.
-
state
final Optional<BetaTelemetryDestinationStateParams> state()
Whether the destination receives deliveries after the update. The field can't be
null.
-
traces
final Optional<BetaTelemetryDestinationTracesParams> traces()
The traces settings to change. Omitted settings keep their stored values.
nullsets every traces setting to its create default.
-
workspaces
final Optional<BetaTelemetryDestinationWorkspacesParams> workspaces()
The new workspace scope, in the same form as on create. The field can't be
null.The API refuses an update that changes the type or sends
workspace_idswhile the destination's list has more than 750 workspaces. Remove workspaces one at a time until 750 or fewer remain, then send the update again.
-
_displayName
final JsonField<String> _displayName()
Returns the raw JSON value of displayName.
Unlike displayName, this method doesn't throw if the JSON field has an unexpected type.
-
_endpointUrl
final JsonField<String> _endpointUrl()
Returns the raw JSON value of endpointUrl.
Unlike endpointUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_headers_
final JsonField<TelemetryDestinationUpdateParams.DestinationHeaders> _headers_()
Returns the raw JSON value of headers.
Unlike headers, this method doesn't throw if the JSON field has an unexpected type.
-
_state
final JsonField<BetaTelemetryDestinationStateParams> _state()
Returns the raw JSON value of state.
Unlike state, this method doesn't throw if the JSON field has an unexpected type.
-
_traces
final JsonField<BetaTelemetryDestinationTracesParams> _traces()
Returns the raw JSON value of traces.
Unlike traces, this method doesn't throw if the JSON field has an unexpected type.
-
_workspaces
final JsonField<BetaTelemetryDestinationWorkspacesParams> _workspaces()
Returns the raw JSON value of workspaces.
Unlike workspaces, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_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 TelemetryDestinationUpdateParams.Builder toBuilder()
-
_body
final TelemetryDestinationUpdateParams.Body _body()
-
_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 TelemetryDestinationUpdateParams none()
-
builder
final static TelemetryDestinationUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of TelemetryDestinationUpdateParams.
-
-
-
-