Class: Anthropic::Models::Beta::Organization::BetaTelemetryDestinationTestResponse

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

Overview

See Also:

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

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(result:, type: :telemetry_destination_test) ⇒ BetaTelemetryDestinationTestResponse

The result of one test span sent to a destination.

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

Parameters:



# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_test_response.rb', line 21

Instance Attribute Details

#result ⇒ Anthropic::Models::Beta::Organization::BetaTelemetryDestinationTestSuccess, Anthropic::Models::Beta::Organization::BetaTelemetryDestinationTestFailure

How the test went: success when the destination answered with a 2xx status, else failure with the reason.

Parameters:

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

Returns:



14
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_test_response.rb', line 14

required :result, union: -> { Anthropic::Beta::Organization::BetaTelemetryDestinationTestResult }

#type ⇒ Symbol, :telemetry_destination_test

Parameters:

  • value (:telemetry_destination_test)

Returns:

  • (Symbol, :telemetry_destination_test)


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

required :type, const: :telemetry_destination_test

Instance Method Details

#to_hash ⇒ { result: Anthropic::Models::Beta::Organization::beta_telemetry_destination_test_result, type: :telemetry_destination_test }

Returns:

  • ({ result: Anthropic::Models::Beta::Organization::beta_telemetry_destination_test_result, type: :telemetry_destination_test })


21
22
23
24
# File 'sig/anthropic/models/beta/organization/beta_telemetry_destination_test_response.rbs', line 21

def to_hash: -> {
  result: Anthropic::Models::Beta::Organization::beta_telemetry_destination_test_result,
  type: :telemetry_destination_test
}