For convenience a point can be represented by a hash-map: {:meas "cpu" :tags {:host "serverA" :region "us_west"} :fields {:value 0.64 :count 3} :time 1434067467000000000}
Just like for inserts and using the Line Protocol only measurement (meas) and at least one field is mandatory: https://docs.influxdata.com/influxdb/v1.7/write_protocols/line_protocol_reference/
For convenience a point can be represented by a hash-map: {:meas "cpu" :tags {:host "serverA" :region "us_west"} :fields {:value 0.64 :count 3} :time 1434067467000000000} Just like for inserts and using the Line Protocol only measurement (meas) and at least one field is mandatory: https://docs.influxdata.com/influxdb/v1.7/write_protocols/line_protocol_reference/
Takes an instant and returns it as nano seconds since epoch.
Takes an instant and returns it as nano seconds since epoch.
(adjust-precision inst precision)
Takes an instant representation and returns the adjusted instant according to the precision. Use nil as precision to leave the instant as-is i.e. when already represented in the correct precision.
Takes an instant representation and returns the adjusted instant according to the precision. Use nil as precision to leave the instant as-is i.e. when already represented in the correct precision.
(escape s)
See https://docs.influxdata.com/influxdb/v1.7/write_protocols/line_protocol_reference#special-characters
See https://docs.influxdata.com/influxdb/v1.7/write_protocols/line_protocol_reference#special-characters
(format-data-type v)
See https://docs.influxdata.com/influxdb/v1.7/write_protocols/line_protocol_reference#data-types
(key-val->str val->str m)
(point->line point)
(point->line {:keys [meas fields tags time] :as point} precision)
Takes a point (hash-map) and optionally a precision and returns a string in the Line Protocol syntax.
Takes a point (hash-map) and optionally a precision and returns a string in the Line Protocol syntax.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close