Class: Anthropic::Models::Beta::BetaManagedAgentsSchedule

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_managed_agents_schedule.rb

Defined Under Namespace

Modules: Type

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(expression:, timezone:, type:, last_run_at: nil, upcoming_runs_at: nil) ⇒ Object

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

5-field POSIX cron schedule with computed runtime timestamps.

Parameters:

  • expression (String)

    5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g.,

  • timezone (String)

    IANA timezone identifier (e.g., “America/Los_Angeles”, “UTC”).

  • type (Symbol, Anthropic::Models::Beta::BetaManagedAgentsSchedule::Type)
  • last_run_at (Time, nil) (defaults to: nil)

    A timestamp in RFC 3339 format

  • upcoming_runs_at (Array<Time>) (defaults to: nil)

    Up to 5 timestamps of upcoming cron occurrences. Non-empty for active and paused



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

Instance Attribute Details

#expressionString

5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., “0 9 * * 1-5” for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).

Returns:

  • (String)


15
# File 'lib/anthropic/models/beta/beta_managed_agents_schedule.rb', line 15

required :expression, String

#last_run_atTime?

A timestamp in RFC 3339 format

Returns:

  • (Time, nil)


32
# File 'lib/anthropic/models/beta/beta_managed_agents_schedule.rb', line 32

optional :last_run_at, Time, nil?: true

#timezoneString

IANA timezone identifier (e.g., “America/Los_Angeles”, “UTC”).

Returns:

  • (String)


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

required :timezone, String

#typeSymbol, Anthropic::Models::Beta::BetaManagedAgentsSchedule::Type



26
# File 'lib/anthropic/models/beta/beta_managed_agents_schedule.rb', line 26

required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsSchedule::Type }

#upcoming_runs_atArray<Time>?

Up to 5 timestamps of upcoming cron occurrences. Non-empty for active and paused deployments (reflects what the schedule would do if unpaused); empty once the deployment is archived (‘archived_at` set). Each fire is offset by a small per-schedule jitter, so a run will actually start at or shortly after its listed time.

Returns:

  • (Array<Time>, nil)


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

optional :upcoming_runs_at, Anthropic::Internal::Type::ArrayOf[Time]