View Source Instream.Encoder.Line (Instream v2.0.0)

Encoder for the InfluxDB line protocol.

Link to this section Summary

Functions

Creates protocol contents for a list of data points.

Link to this section Types

@type point() ::
  %{
    :fields => map(),
    :measurement => binary(),
    optional(:tags) => map(),
    optional(:timestamp) => non_neg_integer() | binary() | nil
  }
  | %{
      __struct__: module(),
      fields: map(),
      tags: map(),
      timestamp: non_neg_integer() | binary() | nil
    }

Link to this section Functions

@spec encode([point()]) :: binary()

Creates protocol contents for a list of data points.