Class: Anthropic::Models::Beta::Organization::BetaTelemetryDestinationDeliveryHealth

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_telemetry_destination_delivery_health.rb,
sig/anthropic/models/beta/organization/beta_telemetry_destination_delivery_health.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(last_error:, last_error_at:, last_success_at:) ⇒ BetaTelemetryDestinationDeliveryHealth

The most recent delivery results that the API records for a telemetry destination.

Changes to the destination's configuration or state don't reset these fields. Changes to these fields don't change updated_at. The values can lag behind the latest deliveries.

See the OpenTelemetry export guide to learn how the API delivers spans and when it disables a destination.

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

Parameters:

  • last_error (String, nil) —

    A message that describes the most recent failed delivery to the destination, or

  • last_error_at (Time, nil) —

    Time of the failure that last_error describes. Changes together with

  • last_success_at (Time, nil) —

    Time of the most recent successful delivery to the destination, or null if no

  • last_error: (String, nil)
  • last_error_at: (Time, nil)
  • last_success_at: (Time, nil)


# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_delivery_health.rb', line 44

Instance Attribute Details

#last_error ⇒ String?

A message that describes the most recent failed delivery to the destination, or null if no delivery has failed yet.

Examples are temporary DNS failure, TLS failure, timeout, connection failure, invalid address, HTTP error (status 503), and redirect (status 301). The message is invalid address both for a hostname that doesn't exist and for an address that isn't publicly routable. It never contains the endpoint's response body, a header value, a network address, or TLS details.

last_error and last_error_at always change together. A later successful delivery doesn't clear them. If last_success_at is later than last_error_at, a delivery has succeeded since this failure.

See the OpenTelemetry export guide to learn the likely cause of each error.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


28
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_delivery_health.rb', line 28

required :last_error, String, nil?: true

#last_error_at ⇒ Time?

Time of the failure that last_error describes. Changes together with last_error. Null until a delivery first fails.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


35
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_delivery_health.rb', line 35

required :last_error_at, Time, nil?: true

#last_success_at ⇒ Time?

Time of the most recent successful delivery to the destination, or null if no delivery has succeeded yet.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


42
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_delivery_health.rb', line 42

required :last_success_at, Time, nil?: true

Instance Method Details

#to_hash ⇒ { last_error: String?, last_error_at: Time?, last_success_at: Time? }

Returns:

  • ({ last_error: String?, last_error_at: Time?, last_success_at: Time? })


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

def to_hash: -> {
  last_error: String?,
  last_error_at: Time?,
  last_success_at: Time?
}