Class: Anthropic::Models::Beta::Organization::BetaTelemetryDestination

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_telemetry_destination.rb,
sig/anthropic/models/beta/organization/beta_telemetry_destination.rbs

Overview

See Also:

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(id:, created_at:, delivery_health:, display_name:, endpoint_url:, header_names:, state:, traces:, updated_at:, workspaces:, type: :telemetry_destination) ⇒ BetaTelemetryDestination

An OpenTelemetry destination: an OTLP/HTTP endpoint, the request headers sent with every delivery to it, what the exported spans contain, and which workspaces it covers. A destination belongs to an organization. A workspace's spans go to every enabled destination that covers it.

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

Parameters:



# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination.rb', line 83

Instance Attribute Details

#created_at ⇒ Time

Time the destination was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


19
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination.rb', line 19

required :created_at, Time

#delivery_health ⇒ Anthropic::Models::Beta::Organization::BetaTelemetryDestinationDeliveryHealth

The most recent delivery results for this destination.

Parameters:

  • value (Anthropic::Beta::Organization::BetaTelemetryDestinationDeliveryHealth)

Returns:



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

required :delivery_health, -> { Anthropic::Beta::Organization::BetaTelemetryDestinationDeliveryHealth }

#display_name ⇒ String?

Human-readable name for the destination. Null when none was set.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :display_name, String, nil?: true

#endpoint_url ⇒ String

The base URL of the destination's OTLP/HTTP endpoint, exactly as registered.

The API appends the per-signal path, such as /v1/traces, on delivery, unless traces.endpoint_url is set.

Parameters:

  • value (String)

Returns:

  • (String)


40
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination.rb', line 40

required :endpoint_url, String

#header_names ⇒ Array<String>

Names of the registered request headers. Header values are write-only and are never returned.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


47
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination.rb', line 47

required :header_names, Anthropic::Internal::Type::ArrayOf[String]

#id ⇒ String

The unique ID of the destination (tdst_...).

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination.rb', line 13

required :id, String

#state ⇒ Anthropic::Models::Beta::Organization::BetaTelemetryDestinationStateEnabled, Anthropic::Models::Beta::Organization::BetaTelemetryDestinationStateDisabled

Whether the destination receives deliveries.

Parameters:

  • value (Anthropic::Models::Beta::Organization::beta_telemetry_destination_state)

Returns:



53
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination.rb', line 53

required :state, union: -> { Anthropic::Beta::Organization::BetaTelemetryDestinationState }

#traces ⇒ Anthropic::Models::Beta::Organization::BetaTelemetryDestinationTraces

The destination's settings for the traces it receives.

Parameters:

  • value (Anthropic::Beta::Organization::BetaTelemetryDestinationTraces)

Returns:



59
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination.rb', line 59

required :traces, -> { Anthropic::Beta::Organization::BetaTelemetryDestinationTraces }

#type ⇒ Symbol, :telemetry_destination

Parameters:

  • value (:telemetry_destination)

Returns:

  • (Symbol, :telemetry_destination)


64
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination.rb', line 64

required :type, const: :telemetry_destination

#updated_at ⇒ Time

Time of the last change to the destination's configuration or state. Changes to delivery_health don't change it.

An update that sets a header value always changes it, even when the value is the same as before. Adding or removing a single workspace on the destination's list doesn't change it. An update that changes the list does.

Parameters:

  • value (Time)

Returns:

  • (Time)


75
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination.rb', line 75

required :updated_at, Time

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

Which of the organization's workspaces the destination covers.



81
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination.rb', line 81

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

Instance Method Details

#to_hash ⇒ { id: String, created_at: Time, delivery_health: Anthropic::Beta::Organization::BetaTelemetryDestinationDeliveryHealth, display_name: String?, endpoint_url: String, header_names: ::Array[String], state: Anthropic::Models::Beta::Organization::beta_telemetry_destination_state, traces: Anthropic::Beta::Organization::BetaTelemetryDestinationTraces, type: :telemetry_destination, updated_at: Time, workspaces: Anthropic::Models::Beta::Organization::beta_telemetry_destination_workspaces }

Returns:

  • ({ id: String, created_at: Time, delivery_health: Anthropic::Beta::Organization::BetaTelemetryDestinationDeliveryHealth, display_name: String?, endpoint_url: String, header_names: ::Array[String], state: Anthropic::Models::Beta::Organization::beta_telemetry_destination_state, traces: Anthropic::Beta::Organization::BetaTelemetryDestinationTraces, type: :telemetry_destination, updated_at: Time, workspaces: Anthropic::Models::Beta::Organization::beta_telemetry_destination_workspaces })


57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'sig/anthropic/models/beta/organization/beta_telemetry_destination.rbs', line 57

def to_hash: -> {
  id: String,
  created_at: Time,
  delivery_health: Anthropic::Beta::Organization::BetaTelemetryDestinationDeliveryHealth,
  display_name: String?,
  endpoint_url: String,
  header_names: ::Array[String],
  state: Anthropic::Models::Beta::Organization::beta_telemetry_destination_state,
  traces: Anthropic::Beta::Organization::BetaTelemetryDestinationTraces,
  type: :telemetry_destination,
  updated_at: Time,
  workspaces: Anthropic::Models::Beta::Organization::beta_telemetry_destination_workspaces
}