AppRecorder.Events (app_recorder v0.4.1) View Source

The requests context.

Link to this section Summary

Link to this section Functions

Specs

event_queryable(keyword()) :: Ecto.Queryable.t()
Link to this function

get_event(id, opts \\ [])

View Source

Specs

get_event(
  binary(),
  keyword()
) :: AppRecorder.Events.Event.t() | nil
Link to this function

get_event!(id, opts \\ [])

View Source

Specs

get_event!(
  binary(),
  keyword()
) :: AppRecorder.Events.Event.t()

Specs

list_events(keyword()) :: [AppRecorder.Events.Event.t()]

List all events

Link to this function

paginate_events(page_size, page_number, opts \\ [])

View Source

Specs

paginate_events(pos_integer(), pos_integer(), keyword()) :: %{
  data: [AppRecorder.Events.Event.t()],
  total: integer(),
  page_size: integer(),
  page_number: integer()
}

Paginate events

Link to this function

record_event!(attrs, opts \\ [])

View Source

Specs

record_event!(
  map(),
  keyword()
) :: AppRecorder.Events.Event.t()

Record an event

Options

  • :allowed_event_types - List of allowed event types
Link to this function

record_event_multi(multi, mixed, opts \\ [])

View Source

Specs

record_event_multi(Ecto.Multi.t(), map() | function(), keyword()) ::
  Ecto.Multi.t()

Return an record event multi

Options

  • :allowed_event_types - List of allowed event types