For convenience a point can be represented by a hash-map: {:measurement "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 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: {:measurement "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 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.
(point->line point)
(point->line {:keys [measurement 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