Class: Anthropic::Models::Beta::Organization::BetaTelemetryDestinationDisabledReasonInvalidAddress

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_invalid_address.rb,
sig/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_invalid_address.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(type: :invalid_address) ⇒ BetaTelemetryDestinationDisabledReasonInvalidAddress

The API disabled the destination because deliveries to it failed for longer than the same threshold as for sustained_failure, and the most recent failed delivery failed with an invalid address: the DNS answer says that the endpoint's hostname doesn't exist or doesn't have an address, or the address that the API would connect to isn't publicly routable or is reserved, for example a loopback, link-local, private-network, or cloud-metadata address. The API doesn't connect to such an address, and retries the delivery a bounded number of times as it does after a timeout. A timeout or a server failure of the DNS lookup is a temporary DNS failure instead, not an invalid address.

Parameters:

  • type (Symbol, :invalid_address) (defaults to: :invalid_address)
  • type: (:invalid_address) (defaults to: :invalid_address)


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

Instance Attribute Details

#type ⇒ Symbol, :invalid_address

Parameters:

  • value (:invalid_address)

Returns:

  • (Symbol, :invalid_address)


11
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_invalid_address.rb', line 11

required :type, const: :invalid_address

Instance Method Details

#to_hash ⇒ { type: :invalid_address }

Returns:

  • ({ type: :invalid_address })


13
# File 'sig/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_invalid_address.rbs', line 13

def to_hash: -> { type: :invalid_address }