Liking cljdoc? Tell your friends :D

dk.emcken.influxdb-client.convert

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/
raw docstring

->nanocljmultimethod

Takes an instant and returns it as nano seconds since epoch.

Takes an instant and returns it as nano seconds since epoch.
sourceraw docstring

adjust-precisionclj

(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.
sourceraw docstring

key-val->strclj

(key-val->str m)
source

point->lineclj

(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.
sourceraw docstring

val->strclj

(val->str v)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close