View Source Runlet.Event (runlet v1.2.0)

Runlet events

Link to this section Summary

Functions

Takes all entries corresponding to the given keys in the contained event and extracts them into a separate map.

Convert the contained event to a map.

Link to this section Types

@type t() :: %Runlet.Event{
  attr: %{optional(atom()) => integer() | float() | binary()},
  event: any(),
  query: binary()
}

Link to this section Functions

@spec split(struct() | map(), [any()]) :: {map(), map()}

Takes all entries corresponding to the given keys in the contained event and extracts them into a separate map.

@spec to_map(struct() | map()) :: map()

Convert the contained event to a map.