Class: Courier::Models::JourneyRun
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::JourneyRun
- Defined in:
- lib/courier/models/journey_run.rb,
sig/courier/models/journey_run.rbs
Instance Attribute Summary collapse
-
#created_at ⇒ String?
When the run started, as an ISO 8601 timestamp.
-
#run_id ⇒ String
A unique identifier representing the run.
-
#source ⇒ Array<String>
Internal provenance strings describing what started the run, e.g.
-
#status ⇒ String?
The state of the run:
PROCESSING,PROCESSED,WAITING,CANCELED,ERROR,THROTTLED, orNOT PROCESSED. -
#template_id ⇒ String?
The id of the Journey this run belongs to.
-
#updated_at ⇒ String?
When the run last changed state, as an ISO 8601 timestamp.
Instance Method Summary collapse
-
#initialize(run_id:, source:, created_at: nil, status: nil, template_id: nil, updated_at: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see JourneyRun for more details.
- #to_hash ⇒ {
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(run_id:, source:, created_at: nil, status: nil, template_id: nil, updated_at: nil) ⇒ Object
Some parameter documentations has been truncated, see Courier::Models::JourneyRun for more details.
One run of a Journey. status and created_at are absent on a small number of
legacy runs stored without them.
|
|
# File 'lib/courier/models/journey_run.rb', line 46
|
Instance Attribute Details
#created_at ⇒ String?
When the run started, as an ISO 8601 timestamp.
24 |
# File 'lib/courier/models/journey_run.rb', line 24 optional :created_at, String |
#run_id ⇒ String
A unique identifier representing the run.
10 |
# File 'lib/courier/models/journey_run.rb', line 10 required :run_id, String |
#source ⇒ Array<String>
Internal provenance strings describing what started the run, e.g.
invoke/<journey_id> or segment/page/Pricing Page. Diagnostic only — the
format is unstable and should not be parsed.
18 |
# File 'lib/courier/models/journey_run.rb', line 18 required :source, Courier::Internal::Type::ArrayOf[String] |
#status ⇒ String?
The state of the run: PROCESSING, PROCESSED, WAITING, CANCELED, ERROR,
THROTTLED, or NOT PROCESSED. Not an enum — new values have been added
before.
32 |
# File 'lib/courier/models/journey_run.rb', line 32 optional :status, String |
#template_id ⇒ String?
The id of the Journey this run belongs to.
38 |
# File 'lib/courier/models/journey_run.rb', line 38 optional :template_id, String |
#updated_at ⇒ String?
When the run last changed state, as an ISO 8601 timestamp.
44 |
# File 'lib/courier/models/journey_run.rb', line 44 optional :updated_at, String |
Instance Method Details
#to_hash ⇒ {
43 |
# File 'sig/courier/models/journey_run.rbs', line 43
def to_hash: -> {
|