Class: Anthropic::Models::Beta::Organization::BetaTelemetryDestinationDeliveryHealth
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::BetaTelemetryDestinationDeliveryHealth
- 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
-
#last_error ⇒ String?
A message that describes the most recent failed delivery to the destination, or
nullif no delivery has failed yet. -
#last_error_at ⇒ Time?
Time of the failure that
last_errordescribes. -
#last_success_at ⇒ Time?
Time of the most recent successful delivery to the destination, or
nullif no delivery has succeeded yet.
Instance Method Summary collapse
-
#initialize(last_error:, last_error_at:, last_success_at:) ⇒ BetaTelemetryDestinationDeliveryHealth
constructor
The most recent delivery results that the API records for a telemetry destination.
- #to_hash ⇒ { last_error: String?, last_error_at: Time?, last_success_at: Time? }
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.
|
|
# 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.
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.
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.
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? }
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?
}
|