flux: fluxy client

Description Usage Arguments Details Value flux methods Examples

Description

fluxy client

Usage

1
flux(host = "127.0.0.1", port = 8086, scheme = "http")

Arguments

host

(character) Host url. Default: 127.0.0.1

port

(character/numeric) Port. Default: 8086

scheme

(character) http scheme, one of http or https. Default: http

path

(character) URL path. Default: NULL/none

Details

flux creates a R6 class object. The object is not cloneable and is portable, so it can be inherited across packages without complication.

flux is used to initialize a client that knows about your etcd instance, with options for setting host, port, etcd api version, whether to allow redirects, and the http scheme.

Value

Various output, see help files for each grouping of methods.

flux methods

Methods

ping()

ping the InfluxDB server

version()

check the InfluxDB version

keys()

list keys, see also keys

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
# make a client
(cli <- flux())

# ping
## ping to make sure it's up
cli$ping()

# etcd variables
cli$host
cli$port
cli$scheme

# set a different host
flux(host = 'stuff.com')

# set a different port
flux(host = 3456)

# set a different http scheme
flux(scheme = 'https')

## End(Not run)

sckott/fluxy documentation built on May 29, 2019, 4 p.m.