package influxdb

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Point represents a single time series point

type t = {
  1. name : string;
    (*

    The name of the series this point belongs to

    *)
  2. field : Field.t;
    (*

    At least one field is required, usually with a key of "value"

    *)
  3. tags : (string * string) list;
    (*

    Optional key / value pair tags

    *)
  4. extra_fields : Field.t list;
    (*

    Additional fields

    *)
  5. timestamp : TimestampNS.t option;
    (*

    If None, a timestamp will be assigned by InfluxDB

    *)
}
val to_line : ?precision:Precision.t -> t -> string

Returns the the point in InfluxDB line protocol format

val create : ?tags:(string * string) list -> ?extra_fields:Field.t list -> ?timestamp:TimestampNS.t -> field:Field.t -> string -> t

Create a new Point

OCaml

Innovation. Community. Security.