AccessGrid.Event (AccessGrid v0.1.0)

Copy Markdown View Source

Represents a template activity log event.

Events are returned by AccessGrid.Console.get_logs/2 and capture actions taken on templates and access passes.

Summary

Functions

Creates an Event struct from an API response map.

Types

t()

@type t() :: %AccessGrid.Event{
  created_at: String.t() | nil,
  event: String.t() | nil,
  id: String.t() | integer() | nil,
  ip_address: String.t() | nil,
  metadata: map(),
  user_agent: String.t() | nil
}

Functions

from_response(data)

@spec from_response(map()) :: t()

Creates an Event struct from an API response map.