create_database {influxdbr} | R Documentation |
Influx database management
Description
The folllowing functions are convenient wrappers around influx_post
.
-
create_database()
: creates a new database -
drop_database()
: drops an existing database -
drop_series()
: drops specific series -
delete()
: deletes all points from a series in a database (supports time intervals) -
drop_measurement()
: drops an entire measurement -
create_retention_policy()
: create a new retention policy -
alter_retention_policy()
: alter a retention policy -
drop_retention_policy()
: drop a retention policy
Usage
create_database(con, db)
drop_database(con, db)
drop_series(con, db, measurement = NULL, where = NULL)
delete(con, db, measurement = NULL, where = NULL)
drop_measurement(con, db, measurement)
create_retention_policy(con, db, rp_name, duration, replication,
default = FALSE)
alter_retention_policy(con, db, rp_name, duration, replication,
default = FALSE)
drop_retention_policy(con, db, rp_name)
Arguments
con |
An |
db |
Sets the target database for the query. |
measurement |
Sets a specific measurement. |
where |
Apply filter on tag key values. |
rp_name |
The name of the retention policy. |
duration |
Determines how long InfluxDB keeps the data. |
replication |
The number of data nodes. |
default |
logical. If TRUE, the new retention policy is the default retention policy for the database. |
Value
A tibble containing post results in case of an error (or message). Otherwise NULL (invisibly).
References
https://docs.influxdata.com/influxdb/