Class: Anthropic::Models::Beta::Organization::TelemetryDestinationUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb,
sig/anthropic/models/beta/organization/telemetry_destination_update_params.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::TelemetryDestinations#update

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(destination_id:, display_name: nil, endpoint_url: nil, headers: nil, state: nil, traces: nil, workspaces: nil, betas: nil, request_options: {}) ⇒ TelemetryDestinationUpdateParams

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::TelemetryDestinationUpdateParams for more details.

Parameters:



# File 'lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb', line 95

Instance Attribute Details

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

This endpoint is in beta: requests must send telemetry-destinations-2026-08-11 in this header.

Parameters:

  • (::Array[Anthropic::Models::anthropic_beta])

Returns:



93
# File 'lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb', line 93

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#destination_id ⇒ String

ID of the destination (tdst_...).

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb', line 16

required :destination_id, String

#display_name ⇒ String?

New human-readable name, 1 to 255 characters. Null clears it.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


22
# File 'lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb', line 22

optional :display_name, String, nil?: true

#endpoint_url ⇒ String?

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 set traces.endpoint_url to a URL with the new hostname and port, or to null. A change of the path alone keeps the headers.

Parameters:

  • (String)

Returns:

  • (String, nil)


35
# File 'lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb', line 35

optional :endpoint_url, String

#headers ⇒ Hash{Symbol=>String, nil}?

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 null value removes it. Headers that you omit don't change. The field itself can't be null.

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.

Parameters:

  • value (::Hash[Symbol, String?], nil)

Returns:

  • (Hash{Symbol=>String, nil}, nil)


55
# File 'lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb', line 55

optional :headers, Anthropic::Internal::Type::HashOf[String, nil?: true], nil?: true

#state ⇒ Anthropic::Models::Beta::Organization::BetaTelemetryDestinationStateEnabledParams, ...

Whether the destination receives deliveries after the update. The field can't be null.

Parameters:

  • (Anthropic::Models::Beta::Organization::beta_telemetry_destination_state_params)

Returns:



62
# File 'lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb', line 62

optional :state, union: -> { Anthropic::Beta::Organization::BetaTelemetryDestinationStateParams }

#traces ⇒ Anthropic::Models::Beta::Organization::BetaTelemetryDestinationTracesParams?

The traces settings to change. Omitted settings keep their stored values.

null sets every traces setting to its create default.

Parameters:

  • value (Anthropic::Beta::Organization::BetaTelemetryDestinationTracesParams, nil)

Returns:



70
71
72
73
74
# File 'lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb', line 70

optional :traces,
-> {
  Anthropic::Beta::Organization::BetaTelemetryDestinationTracesParams
},
nil?: true

#workspaces ⇒ Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesAllParams, ...

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_ids while 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.



85
86
# File 'lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb', line 85

optional :workspaces,
union: -> { Anthropic::Beta::Organization::BetaTelemetryDestinationWorkspacesParams }

Instance Method Details

#to_hash ⇒ { destination_id: String, display_name: String?, endpoint_url: String, headers: ::Hash[Symbol, String?]?, state: Anthropic::Models::Beta::Organization::beta_telemetry_destination_state_params, traces: Anthropic::Beta::Organization::BetaTelemetryDestinationTracesParams?, workspaces: Anthropic::Models::Beta::Organization::beta_telemetry_destination_workspaces_params, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }

Returns:

  • ({ destination_id: String, display_name: String?, endpoint_url: String, headers: ::Hash[Symbol, String?]?, state: Anthropic::Models::Beta::Organization::beta_telemetry_destination_state_params, traces: Anthropic::Beta::Organization::BetaTelemetryDestinationTracesParams?, workspaces: Anthropic::Models::Beta::Organization::beta_telemetry_destination_workspaces_params, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions })


64
65
66
67
68
69
70
71
72
73
74
# File 'sig/anthropic/models/beta/organization/telemetry_destination_update_params.rbs', line 64

def to_hash: -> {
  destination_id: String,
  display_name: String?,
  endpoint_url: String,
  headers: ::Hash[Symbol, String?]?,
  state: Anthropic::Models::Beta::Organization::beta_telemetry_destination_state_params,
  traces: Anthropic::Beta::Organization::BetaTelemetryDestinationTracesParams?,
  workspaces: Anthropic::Models::Beta::Organization::beta_telemetry_destination_workspaces_params,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  request_options: Anthropic::RequestOptions
}