Liking cljdoc? Tell your friends :D

dk.emcken.influxdb-client.core

When interacting with the InfluxDB HTTP API a "connection" needs to be provided. A connection is a hash-map describing how to connect to InfluxDB and could look like the following: {:url "http://localhost:8086" :username "root" :password "root"} Only the :url is mandatory.

When interacting with the InfluxDB HTTP API a "connection" needs to be
provided. A connection is a hash-map describing how to connect to InfluxDB and
could look like the following:
  {:url "http://localhost:8086"
   :username "root"
   :password "root"}
Only the :url is mandatory.
raw docstring

available-methodsclj


prep-query-paramsclj

(prep-query-params {:keys [username password] :as conn}
                   base-params
                   &
                   overwrite-params)

Constructs query params automatically including authentication from connection if present.

Constructs query params automatically including authentication from
connection if present.
raw docstring

queryclj

(query conn method q)
(query conn method q query-params)

Takes a connection along with query method and the actual query which can be either a string (single query) or a list/vector of strings (multiple queries). Optionally a fourth argument containing query params can be provided. For a list of valid query params see: https://docs.influxdata.com/influxdb/v1.7/tools/api/#query-string-parameters-1

Takes a connection along with query method and the actual query which can be
either a string (single query) or a list/vector of strings (multiple queries).
Optionally a fourth argument containing query params can be provided. For a
list of valid query params see:
https://docs.influxdata.com/influxdb/v1.7/tools/api/#query-string-parameters-1
raw docstring

unwrapclj

(unwrap response)

Takes a http response from the API endpoint and converts it to a Clojure data structure for convenience.

Takes a http response from the API endpoint and converts it to a Clojure data
structure for convenience.
raw docstring

writeclj

(write conn db data)
(write conn db data query-params)
For valid query params see: https://docs.influxdata.com/influxdb/v1.7/tools/api/#query-string-parameters-2
raw docstring

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

× close