struct

JoobQ::Event

Inherits JSON::Serializable < Struct < Value < Object

A lifecycle event (e.g. "job.started"). Wire form: {v, id?, ts, type, data}.

Constructors

new(type : String, data : JSON::Any, ts : Int64 = Time.utc.to_unix_ms, id : String | Nil = nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

data
Source
type
Source
with_id(id : String) : Event
Source