Class: Knockapi::Models::Schedule
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Knockapi::Models::Schedule
- Defined in:
- lib/knockapi/models/schedule.rb
Overview
Instance Attribute Summary collapse
-
#_typename ⇒ String?
The typename of the schema.
-
#actor ⇒ Knockapi::Models::User, ...
A recipient of a notification, which is either a user or an object.
-
#data ⇒ Hash{Symbol=>Object}?
An optional map of data to pass into the workflow execution.
-
#id ⇒ String
Unique identifier for the schedule.
-
#inserted_at ⇒ Time
Timestamp when the resource was created.
-
#last_occurrence_at ⇒ Time?
The last occurrence of the schedule.
-
#next_occurrence_at ⇒ Time?
The next occurrence of the schedule.
-
#recipient ⇒ Knockapi::Models::User, Knockapi::Models::Object
A recipient of a notification, which is either a user or an object.
-
#repeats ⇒ Array<Knockapi::Models::ScheduleRepeatRule>
The repeat rule for the schedule.
-
#tenant ⇒ String?
The tenant to trigger the workflow for.
-
#updated_at ⇒ Time
The timestamp when the resource was last updated.
-
#workflow ⇒ String
The workflow the schedule is applied to.
Instance Method Summary collapse
-
#initialize(id:, inserted_at:, recipient:, repeats:, updated_at:, workflow:, _typename: nil, actor: nil, data: nil, last_occurrence_at: nil, next_occurrence_at: nil, tenant: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Schedule 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(id:, inserted_at:, recipient:, repeats:, updated_at:, workflow:, _typename: nil, actor: nil, data: nil, last_occurrence_at: nil, next_occurrence_at: nil, tenant: nil) ⇒ Object
Some parameter documentations has been truncated, see Knockapi::Models::Schedule for more details.
A schedule represents a recurring workflow execution.
|
|
# File 'lib/knockapi/models/schedule.rb', line 84
|
Instance Attribute Details
#_typename ⇒ String?
The typename of the schema.
47 |
# File 'lib/knockapi/models/schedule.rb', line 47 optional :_typename, String, api_name: :__typename |
#actor ⇒ Knockapi::Models::User, ...
A recipient of a notification, which is either a user or an object.
53 |
# File 'lib/knockapi/models/schedule.rb', line 53 optional :actor, union: -> { Knockapi::Recipient }, nil?: true |
#data ⇒ Hash{Symbol=>Object}?
An optional map of data to pass into the workflow execution. There is a 10MB limit on the size of the full ‘data` payload. Any individual string value greater than 1024 bytes in length will be [truncated](/developer-tools/api-logs#log-truncation) in your logs.
62 |
# File 'lib/knockapi/models/schedule.rb', line 62 optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true |
#id ⇒ String
Unique identifier for the schedule.
11 |
# File 'lib/knockapi/models/schedule.rb', line 11 required :id, String |
#inserted_at ⇒ Time
Timestamp when the resource was created.
17 |
# File 'lib/knockapi/models/schedule.rb', line 17 required :inserted_at, Time |
#last_occurrence_at ⇒ Time?
The last occurrence of the schedule.
68 |
# File 'lib/knockapi/models/schedule.rb', line 68 optional :last_occurrence_at, Time, nil?: true |
#next_occurrence_at ⇒ Time?
The next occurrence of the schedule.
74 |
# File 'lib/knockapi/models/schedule.rb', line 74 optional :next_occurrence_at, Time, nil?: true |
#recipient ⇒ Knockapi::Models::User, Knockapi::Models::Object
A recipient of a notification, which is either a user or an object.
23 |
# File 'lib/knockapi/models/schedule.rb', line 23 required :recipient, union: -> { Knockapi::Recipient } |
#repeats ⇒ Array<Knockapi::Models::ScheduleRepeatRule>
The repeat rule for the schedule.
29 |
# File 'lib/knockapi/models/schedule.rb', line 29 required :repeats, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::ScheduleRepeatRule] } |
#tenant ⇒ String?
The tenant to trigger the workflow for. Triggering with a tenant will use any tenant-level overrides associated with the tenant object, and all messages produced from workflow runs will be tagged with the tenant.
82 |
# File 'lib/knockapi/models/schedule.rb', line 82 optional :tenant, String, nil?: true |
#updated_at ⇒ Time
The timestamp when the resource was last updated.
35 |
# File 'lib/knockapi/models/schedule.rb', line 35 required :updated_at, Time |
#workflow ⇒ String
The workflow the schedule is applied to.
41 |
# File 'lib/knockapi/models/schedule.rb', line 41 required :workflow, String |