create_database: Influx database management

Description Usage Arguments Value References See Also

View source: R/influxdb_database_management.R

Description

The folllowing functions are convenient wrappers around influx_post.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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 influx_connection object (s. influx_connection).

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/

See Also

influx_connection


crab1234/influxdbr- documentation built on Jan. 12, 2020, 6:28 p.m.