WardrikEvents. CloudEvent
(wardrik_events v0.1.0-rc.1)
Copy Markdown
Builds events as Wardrik sends them: CloudEvents maps with string keys and the payload under
"data".
Summary
Functions
Returns the source of the audit's changes.
Builds an event of type about subject.
Puts the event's place in its log as the sequence extension, padded to 12 digits.
Returns the source of an agent's events.
Returns the trace id in the event's traceparent, which is its run's id. Returns nil if there's none.
Types
Functions
Returns the source of the audit's changes.
Builds an event of type about subject.
WardrikEvents.CloudEvent.new("run.started", "runs/0af7...", data,
deployment: "acme-prod",
agent_id: "acme/triage",
time: DateTime.utc_now()
)type leaves out the wardrik. prefix, which is added.
Options
:time- required. When it happened.:deployment- the deployment's name. Required unless:sourceis set.:agent_id- the agent the event is about. Required unless:sourceis set.:source- the event'ssource, for an event that isn't an agent's.:span- theWardrikCore.Spanit happened in. A new root span unless set.
@spec sequenced(t(), pos_integer()) :: t()
Puts the event's place in its log as the sequence extension, padded to 12 digits.
Returns the source of an agent's events.
Returns the trace id in the event's traceparent, which is its run's id. Returns nil if there's none.