Class: Anthropic::Models::Beta::Organization::BetaTelemetryDestinationTracesParams

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_telemetry_destination_traces_params.rb,
sig/anthropic/models/beta/organization/beta_telemetry_destination_traces_params.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: nil, enabled: nil, endpoint_url: nil, max_content_bytes: nil) ⇒ BetaTelemetryDestinationTracesParams

The settings for the traces that a telemetry destination receives, as a create or update request sets them. An omitted field takes its default on create and keeps its stored value on update.

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

Parameters:

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

    What the exported spans contain. Defaults to metadata_only on create.

  • enabled (Boolean) (defaults to: nil) —

    Whether the destination receives traces. Defaults to true on create. It cannot b

  • endpoint_url (String, nil) (defaults to: nil) —

    The full URL of your collector's traces endpoint, for a collector that takes tra

  • max_content_bytes (Integer, nil) (defaults to: nil) —

    The most bytes of content that one exported span can contain, from 1 up to the A

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


# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_traces_params.rb', line 51

Instance Attribute Details

#content_mode ⇒ Symbol, ...

What the exported spans contain. Defaults to metadata_only on create.

On update, null sets metadata_only.

Parameters:

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

Returns:



14
15
16
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_traces_params.rb', line 14

optional :content_mode,
enum: -> { Anthropic::Beta::Organization::BetaTelemetryDestinationContentMode },
nil?: true

#enabled ⇒ Boolean?

Whether the destination receives traces. Defaults to true on create. It cannot be null.

Parameters:

Returns:



23
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_traces_params.rb', line 23

optional :enabled, Anthropic::Internal::Type::Boolean

#endpoint_url ⇒ String?

The full URL of your collector's traces endpoint, for a collector that takes traces on a path other than /v1/traces. The API posts traces to it exactly as given and appends nothing.

The same rules as for endpoint_url apply, except that any path is allowed. It must have the same scheme, host, and port as endpoint_url. At most 2,048 characters.

On create, null is the same as leaving it out. On update, null removes it. The API then posts traces to endpoint_url with /v1/traces appended. A change of this URL alone keeps the registered headers.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


39
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_traces_params.rb', line 39

optional :endpoint_url, String, nil?: true

#max_content_bytes ⇒ Integer?

The most bytes of content that one exported span can contain, from 1 up to the API's maximum. null sets no bound, so only the API's maximum applies.

On create, leaving it out is the same as null. The error for a value above the maximum states the maximum.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


49
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_traces_params.rb', line 49

optional :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? })


31
32
33
34
35
36
# File 'sig/anthropic/models/beta/organization/beta_telemetry_destination_traces_params.rbs', line 31

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