Class: Anthropic::Models::Beta::Organization::Federation::BetaFederationIssuerPollStatus

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/federation/beta_federation_issuer_poll_status.rb,
sig/anthropic/models/beta/organization/federation/beta_federation_issuer_poll_status.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(consecutive_failures:, last_fetched_at:, next_poll_at:) ⇒ Object

Status of automatic JWKS polling for a federation issuer.

Anthropic periodically fetches the issuer's signing keys in the background. These fields summarize the most recent fetches so the health of the JWKS endpoint can be monitored.

Parameters:

  • consecutive_failures (Integer)

    Consecutive fetch failures since the last success.

  • last_fetched_at (Time, nil)

    When the last successful fetch completed.

  • next_poll_at (Time, nil)

    When the next fetch is scheduled. Null if paused.



# File 'lib/anthropic/models/beta/organization/federation/beta_federation_issuer_poll_status.rb', line 27

Instance Attribute Details

#consecutive_failuresInteger

Consecutive fetch failures since the last success.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :consecutive_failures, Integer

#last_fetched_atTime?

When the last successful fetch completed.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


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

required :last_fetched_at, Time, nil?: true

#next_poll_atTime?

When the next fetch is scheduled. Null if paused.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


25
# File 'lib/anthropic/models/beta/organization/federation/beta_federation_issuer_poll_status.rb', line 25

required :next_poll_at, Time, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


26
# File 'sig/anthropic/models/beta/organization/federation/beta_federation_issuer_poll_status.rbs', line 26

def to_hash: -> {