ex_flux v0.2.0 ExFlux.Point View Source

Data points as Elixir structs

For simplicity, timestamps are only dealt with in the unix format within the library. Additionally, both in the typespecs and in the ExFlux.LineProtocol implementation, strings and atoms can be used interchangably in places where the influx line protocol specification calls for strings.

Link to this section Summary

Link to this section Types

Link to this type

field_map()

View Source
field_map() :: %{required(influx_string()) => field_value()}
Link to this type

field_value()

View Source
field_value() :: influx_string() | boolean() | number()
Link to this type

influx_string()

View Source
influx_string() :: String.t() | atom()
Link to this type

t()

View Source
t() :: %ExFlux.Point{
  fields: field_map(),
  measurement: String.t(),
  tags: term(),
  timestamp: term()
}
Link to this type

tag_map()

View Source
tag_map() :: %{optional(influx_string()) => tag_value()}
Link to this type

timestamp()

View Source
timestamp() :: integer()