influx_query {influxdbr} | R Documentation |
Query an InfluxDB server
Description
This functions queries an InfluxDB server.
Usage
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)
Arguments
con |
An |
db |
Sets the target database for the query. |
query |
The InfluxDB query to be sent. |
timestamp_format |
Sets the timestamp format ("n", "u", "ms", "s", "m", "h"). |
return_xts |
logical. Sets the return type. If set to TRUE, xts objects are returned, FALSE gives tibbles. |
chunked |
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 |
simplifyList |
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). |
Value
A list of tibble or xts objects.
References
https://docs.influxdata.com/influxdb/
See Also
[Package influxdbr version 0.14.2 Index]