StatifierRouter.Schema.Ledger (StatifierRouter v0.1.0)

Copy Markdown View Source

A row of the routing ledger: one recorded outcome of one routing attempt for one binding (ADR-0004, section 4). The ledger is append-only.

key is empty for key_refused, execution_id is empty where the outcome names no execution, and reason is empty for every outcome but key_refused, when it holds the reason term as inspect/1 renders it (see StatifierRouter). See StatifierRouter.Schema for how a row reaches a configured table.

Summary

Types

t()

@type t() :: %StatifierRouter.Schema.Ledger{
  __meta__: term(),
  binding_id: String.t() | nil,
  execution_id: String.t() | nil,
  id: pos_integer() | nil,
  inserted_at: DateTime.t() | nil,
  key: String.t() | nil,
  message_id: String.t() | nil,
  outcome: String.t() | nil,
  reason: String.t() | nil,
  scope: String.t() | nil
}