WardrikEvents.Audit (wardrik_events v0.1.0-rc.1)

Copy Markdown

Keeps the audit: one log for the deployment of what people changed and who changed it.

It's kept apart from the agents' logs. See WardrikEvents.record/3 and WardrikEvents.audit/2.

Summary

Functions

Returns up to limit changes after the sequence number at, and the sequence number of the last one.

Writes change, a {type, subject, data}, with its :actor and :assumed_by.

Functions

page(settings, at, limit)

Returns up to limit changes after the sequence number at, and the sequence number of the last one.

record(settings, arg, opts)

@spec record(map(), {String.t(), String.t(), map()}, keyword()) ::
  {:ok, WardrikEvents.CloudEvent.t()} | {:error, term()}

Writes change, a {type, subject, data}, with its :actor and :assumed_by.