View Source Mobius.Event (mobius v0.6.1)

An single event

Summary

Types

The name of the event

Options for creating a new event

t()

An event

Types

@type name() :: binary() | [atom()]

The name of the event

@type new_opt() :: {:group, atom()} | {:timestamp, integer()}

Options for creating a new event

@type t() :: %Mobius.Event{
  group: atom(),
  measurements: map(),
  name: name(),
  session: Mobius.session(),
  tags: map(),
  timestamp: pos_integer() | nil
}

An event

Functions

Link to this function

new(session, name, measurements, tags, opts \\ [])

View Source
@spec new(Mobius.session(), name(), map(), map(), [new_opt()]) :: t()

Create a new event

Link to this function

set_timestamp(event, timestamp)

View Source