This functions queries an InfluxDB server.
influx_query(con, db = NULL, query = "SELECT * FROM measurement",
timestamp_format = c("n", "u", "ms", "s", "m", "h"), return_xts = TRUE,
chunked = FALSE, simplifyList = FALSE)
An influx_connection
object (s. influx_connection
).
Sets the target database for the query.
The InfluxDB query to be sent.
Sets the timestamp format ("n", "u", "ms", "s", "m", "h").
logical. Sets the return type. If set to TRUE, xts objects are returned, FALSE gives tibbles.
Either FALSE or an integer. If FALSE, series are not requested
in streamed batches. If an integer is provided, responses will be chunked by
series or by every chunked
points. Chunks are merged internally.
logical. If only one series is returned, the result can be flatten to directly get either a tibble or an xts object (instead of a list) (default is FALSE).
A list of tibble or xts objects.