Logistiki.Audit.Evidence (logistiki v0.1.0)

Copy Markdown View Source

A structured audit-evidence record.

Evidence is the in-memory explanation that accompanies a processed event; it is persisted as one or more Logistiki.Audit.AuditEvent rows by Logistiki.Audit.

Summary

Types

t()

The struct type. See the module documentation for field details and examples.

Functions

Builds an evidence record from a pipeline trace.

Types

t()

@type t() :: %Logistiki.Audit.Evidence{
  event_id: term() | nil,
  explanation: map(),
  journal_id: term() | nil,
  stages: [map()]
}

The struct type. See the module documentation for field details and examples.

Functions

build(event_id, journal_id, stages, explanation)

(since 0.1.0)

Builds an evidence record from a pipeline trace.