Exchange v0.2.0 Exchange.Adapters.Flux.Connection View Source

Public API to use the adapter of Exchange.TimeSeries, the Flux. This module uses the InfluxDB to write and query the data

  config :exchange, Exchange.Adapters.Flux.Connection,
    database: System.get_env("FLUX_DB_NAME") || "dbname",
    host: System.get_env("FLUX_DB_HOST") || "localhost",
    port: System.get_env("FLUX_DB_PORT") || 8086

Link to this section Summary

Link to this section Functions

Callback implementation for Instream.Connection.child_spec/1.

Callback implementation for Instream.Connection.config/1.

Link to this function

execute(query, opts \\ [])

View Source

Callback implementation for Instream.Connection.execute/2.

Link to this function

ping(host \\ nil, opts \\ [])

View Source

Callback implementation for Instream.Connection.ping/2.

Link to this function

query(query, opts \\ [])

View Source

Callback implementation for Instream.Connection.query/2.

Callback implementation for Instream.Connection.status/1.

Link to this function

status(host \\ nil, opts \\ [])

View Source
Link to this function

version(host \\ nil, opts \\ [])

View Source

Callback implementation for Instream.Connection.version/2.

Link to this function

write(payload, opts \\ [])

View Source

Callback implementation for Instream.Connection.write/2.