Class: Anthropic::Models::Beta::BetaManagedAgentsCronSchedule
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaManagedAgentsCronSchedule
- Defined in:
- lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#expression ⇒ String
5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., “0 9 * * 1-5” for weekdays at 9am).
-
#last_run_at ⇒ Time?
A timestamp in RFC 3339 format.
-
#timezone ⇒ String
IANA timezone identifier (e.g., “America/Los_Angeles”, “UTC”).
- #type ⇒ Symbol, Anthropic::Models::Beta::BetaManagedAgentsCronSchedule::Type
-
#upcoming_runs_at ⇒ Array<Time>?
Up to 5 timestamps of upcoming cron occurrences.
Instance Method Summary collapse
-
#initialize(expression:, timezone:, type:, last_run_at: nil, upcoming_runs_at: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see BetaManagedAgentsCronSchedule for more details.
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::BetaManagedAgentsCronSchedule for more details.
5-field POSIX cron schedule with computed runtime timestamps.
|
|
# File 'lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb', line 44
|
Instance Attribute Details
#expression ⇒ String
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).
15 |
# File 'lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb', line 15 required :expression, String |
#last_run_at ⇒ Time?
A timestamp in RFC 3339 format
32 |
# File 'lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb', line 32 optional :last_run_at, Time, nil?: true |
#timezone ⇒ String
IANA timezone identifier (e.g., “America/Los_Angeles”, “UTC”).
21 |
# File 'lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb', line 21 required :timezone, String |
#type ⇒ Symbol, Anthropic::Models::Beta::BetaManagedAgentsCronSchedule::Type
26 |
# File 'lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb', line 26 required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsCronSchedule::Type } |
#upcoming_runs_at ⇒ Array<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.
42 |
# File 'lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb', line 42 optional :upcoming_runs_at, Anthropic::Internal::Type::ArrayOf[Time] |