NornsSdk.EventResponse (norns_sdk v0.1.0)

Copy Markdown View Source

A single event from a run's event log, as returned by GET /api/v1/runs/:id/events.

Summary

Functions

Parse a decoded API map (string keys) into an EventResponse.

Types

t()

@type t() :: %NornsSdk.EventResponse{
  event_type: String.t(),
  id: integer(),
  inserted_at: String.t() | nil,
  payload: map(),
  sequence: integer(),
  source: String.t()
}

Functions

from_map(data)

@spec from_map(map()) :: t()

Parse a decoded API map (string keys) into an EventResponse.