Class: Anthropic::Models::Beta::Organization::BetaTelemetryDestinationTraces

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

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(content_mode:, enabled:, endpoint_url:, max_content_bytes:) ⇒ BetaTelemetryDestinationTraces

A telemetry destination's settings for the traces it receives.

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

Parameters:

  • content_mode (Symbol, Anthropic::Models::Beta::Organization::BetaTelemetryDestinationContentMode) —

    What the exported spans contain.

  • enabled (Boolean) —

    Whether the destination receives traces. A destination whose enabled is false

  • endpoint_url (String, nil) —

    The full URL that the API posts traces to, exactly as registered, or null if t

  • max_content_bytes (Integer, nil) —

    The most bytes of content that one exported span can contain, or null if only

  • content_mode: (Anthropic::Models::Beta::Organization::beta_telemetry_destination_content_mode)
  • enabled: (Boolean)
  • endpoint_url: (String, nil)
  • max_content_bytes: (Integer, nil)


# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_traces.rb', line 43

Instance Attribute Details

#content_mode ⇒ Symbol, Anthropic::Models::Beta::Organization::BetaTelemetryDestinationContentMode

What the exported spans contain.

Parameters:

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

Returns:



12
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_traces.rb', line 12

required :content_mode, enum: -> { Anthropic::Beta::Organization::BetaTelemetryDestinationContentMode }

#enabled ⇒ Boolean

Whether the destination receives traces. A destination whose enabled is false keeps its other settings.

Parameters:

Returns:



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

required :enabled, Anthropic::Internal::Type::Boolean

#endpoint_url ⇒ String?

The full URL that the API posts traces to, exactly as registered, or null if the destination doesn't have one.

When it is null, the API posts traces to endpoint_url with /v1/traces appended.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


29
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_traces.rb', line 29

required :endpoint_url, String, nil?: true

#max_content_bytes ⇒ Integer?

The most bytes of content that one exported span can contain, or null if only the API's maximum applies.

Content means model prompts and responses, and tool inputs and outputs. The API shortens longer content to this size before it delivers the span. A destination whose content_mode is metadata_only keeps this value. It applies once content_mode is content.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


41
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_traces.rb', line 41

required :max_content_bytes, Integer, nil?: true

Instance Method Details

#to_hash ⇒ { content_mode: Anthropic::Models::Beta::Organization::beta_telemetry_destination_content_mode, enabled: bool, endpoint_url: String?, max_content_bytes: Integer? }

Returns:

  • ({ content_mode: Anthropic::Models::Beta::Organization::beta_telemetry_destination_content_mode, enabled: bool, endpoint_url: String?, max_content_bytes: Integer? })


29
30
31
32
33
34
# File 'sig/anthropic/models/beta/organization/beta_telemetry_destination_traces.rbs', line 29

def to_hash: -> {
  content_mode: Anthropic::Models::Beta::Organization::beta_telemetry_destination_content_mode,
  enabled: bool,
  endpoint_url: String?,
  max_content_bytes: Integer?
}