PPNet.Message.Event (pp_net v0.1.5)

Copy Markdown View Source

This module defines the PPNet.Message.Event struct and provides functions to parse a binary or list representation of an Event message into this struct.

Summary

Types

event_kind()

@type event_kind() :: :detection

t()

@type t() :: %PPNet.Message.Event{
  data: %{optional(String.t()) => any()},
  datetime: DateTime.t(),
  kind: event_kind()
}

The PPNet.Message.Event struct

Fields

  • kind - The kind of event (:detection)
  • data - Arbitrary key/value payload associated with the event
  • datetime - Timestamp of the event