Humaans.Resources.AuditEvent (Humaans v0.6.0)

Copy Markdown View Source

Representation of an Audit Event resource.

Summary

Types

t()

@type t() :: %Humaans.Resources.AuditEvent{
  action: binary() | nil,
  actor: map() | nil,
  company_id: binary() | nil,
  entity: map() | nil,
  id: binary() | nil,
  request: map() | nil,
  seq: binary() | nil,
  subject: map() | nil,
  ts: DateTime.t() | nil
}

Functions

build(map_or_kwlist, opts \\ [])

@spec build(ExConstructor.map_or_kwlist(), Keyword.t()) ::
  %Humaans.Resources.AuditEvent{
    action: term(),
    actor: term(),
    company_id: term(),
    entity: term(),
    id: term(),
    request: term(),
    seq: term(),
    subject: term(),
    ts: term()
  }

new(data)