View Source LogSnag.Event (LogSnag v1.0.0)

Represents an Event created within LogSnag's system.

Typically Event structs won't be created manually, but will be returned from calls to LogSnag.publish_event/1.

Link to this section Summary

Link to this section Types

@type t() :: %LogSnag.Event{
  channel: String.t(),
  description: String.t() | nil,
  event: String.t(),
  icon: LogSnag.emoji() | nil,
  notify: boolean() | nil,
  tags: map() | nil
}

Link to this section Functions

@spec from_json(map()) :: t()