Description Usage Arguments Details Examples
'influxr_select' returns the result of a query.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
client |
Influx_client object created with |
database |
character string. Database name. |
measurement |
character string. InfluxDb measurement name. |
fields |
character vector, |
from |
'POSIX' datetime or character in ISO8601 format which will be parsed to date time
eg. '2017-12-31 14:00:00' or simply '2017' for the start of 2017. if |
to |
POSIX datetime or character in ISO8601 format which will be parsed to date time
eg. '2017-12-31 14:00:00' or simply '2017' for the start of 2017. if |
tags |
named character vector. Only data points tagged with provided
tags will be fetched. eg. |
group_by |
character string. How data points should be grouped when an aggregation function is specified,
possible values are |
fill |
character string. How should empty datapoints be filled, default to 'null' other
possible options are |
limit |
numeric. How many data points should the result be limited to. If |
desc |
logical, not emplemented yet. |
extra_conditions |
Pass extra conditions to the query. |
... |
passed to ‘influxr_query'. e.g. 'write_to_file = ’~/test.csv'' |
aggreagation |
character string. Aggregation function to be used. Currently supported
functions are |
other options that can be passed to the function are ignore_names
and ignore_tags
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Read data from InfluxDB instance and store the result in timed rotating
## Not run:
influxr_select(
influxdb_connection,
database,
measurement = 'cpu',
tags = c(level = 1, station = 'work'),
verbose = TRUE,
from = '2017-07-10 12:00:00',
to = '2017-08-10 12:00:00',
write_handler = save_timed_rotating_files,
path = my_path,
base_file_name = 'cpu_',
rotation_interval = '1 week',
trunc_start = TRUE
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.