Learn R Programming

influxdb (version 0.0.0)

influxdb_query: Query an InfluxDB database

Description

Query an InfluxDB database

Usage

influxdb_query(host, port, username, password, database, query, time_precision = c("s", "m", "u"))

Arguments

host
Character vector with IP address or hostname
port
Port number
username
InfluxDB user
password
InfluxDB password (will be passed in plain text)
database
The name of the database
query
Character vector containing the InfluxDB query
time_precision
Specifies whether the time should be returned in seconds (s), milliseconds (m), or microseconds (u) from epoch (January 1, 1970, 00:00:00 UTC).

Value

A named list of data frames, where the names are the series names, and the data frames contain the points.