InfluxDB v0.2.1 InfluxDB
Main interface to query and insert data into InfluxDB.
Summary
Functions
Send a query to InfluxDB and return the result
See :influxdb.query/3
See :influxdb.query/4
Write one or more points to InfluxDB
See :influxdb.write/3
Types
Functions
Send a query to InfluxDB and return the result.
In case of success, it will return either:
:ok
, when the query doesn’t have any result set{:ok, [result]}
, where result is a list of series, and a series is a map containing the:name
,:columns
,:rows
and:tags
keys.
In case of error, it will return either:
{:error, {:not_found, description}}}
, when the series being queried could not be found{:error, {:server_error, description}}}
, when a server error occurs
query(config, query, params, options)
query(config, query, query_parameters, query_options) :: :ok | {:ok, [result]} | {:error, {:not_found, charlist}} | {:error, {:server_error, charlist}}
See :influxdb.query/4
.
Write one or more points to InfluxDB.
In case of success, it will return either:
:ok
, when the write completes successfully
In case of error, it will return either:
{:error, {:not_found, description}}}
, when the database could not be found{:error, {:server_error, description}}}
, when a server error occurs
write(config, points, options)
write(config, points, write_options) :: :ok | {:error, {:not_found, charlist}} | {:error, {:server_error, charlist}}
See :influxdb.write/3
.