Class: Anthropic::Models::Beta::Organization::TelemetryDestinationCreateParams

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_create_params.rb,
sig/anthropic/models/beta/organization/telemetry_destination_create_params.rbs

Overview

See Also:

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

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(endpoint_url:, workspaces:, display_name: nil, headers: nil, traces: nil, betas: nil, request_options: {}) ⇒ TelemetryDestinationCreateParams

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

Parameters:



# File 'lib/anthropic/models/beta/organization/telemetry_destination_create_params.rb', line 71

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:



69
# File 'lib/anthropic/models/beta/organization/telemetry_destination_create_params.rb', line 69

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

#display_name ⇒ String?

Human-readable name for the destination. Optional. 1 to 255 characters.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


38
# File 'lib/anthropic/models/beta/organization/telemetry_destination_create_params.rb', line 38

optional :display_name, String, nil?: true

#endpoint_url ⇒ String

The base URL of your collector's OTLP/HTTP endpoint, for example https://gateway.example.com.

The URL must use https and a hostname, not an IP address. The port, if given, must be 443. The URL must not contain a query string, a fragment, or a username and password. At most 2,048 characters.

A path prefix, such as /otlp, is allowed. Don't include the per-signal path (/v1/traces), because the API appends it on delivery. If your collector takes traces on another path, also set traces.endpoint_url.

Parameters:

  • value (String)

Returns:

  • (String)


25
# File 'lib/anthropic/models/beta/organization/telemetry_destination_create_params.rb', line 25

required :endpoint_url, String

#headers ⇒ Hash{Symbol=>String}?

Request headers that the API sends with every delivery, typically your collector's authentication header (for example authorization).

The API never returns the values. Reads show only header_names.

At most 20 headers. Names are at most 128 characters. Two names can't differ only in case. Values are printable ASCII, at most 4,096 characters, and can't begin or end with a space. Names and values together are at most 16,384 bytes.

Reserved names are rejected, for example host, cookie, user-agent, and names that start with content-, proxy-, x-forwarded-, or anthropic-. For this check, _ in a name counts as -.

Parameters:

  • (::Hash[Symbol, String])

Returns:

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


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

optional :headers, Anthropic::Internal::Type::HashOf[String]

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

The settings for the traces that the destination receives. If you leave it out, every setting takes its default.

Parameters:

  • (Anthropic::Beta::Organization::BetaTelemetryDestinationTracesParams)

Returns:



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

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

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

Which of the organization's workspaces the destination covers.



31
32
# File 'lib/anthropic/models/beta/organization/telemetry_destination_create_params.rb', line 31

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

Instance Method Details

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

Returns:

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


52
53
54
55
56
57
58
59
60
# File 'sig/anthropic/models/beta/organization/telemetry_destination_create_params.rbs', line 52

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