stats: Get etcd statistics

Description Arguments Value Examples

Description

Get etcd statistics

Arguments

which

(character) one of leader (default), self, or store

pretty

(logical) parse text to an R list, or not. Default: TRUE

...

Further args passed on to GET

Value

Prints a human readable text representation to console. If pretty = TRUE (default), retunrs a list, but if pretty = FALSE returns JSON data.

Examples

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

# leader stats
cli$stats()

# self stats
cli$stats("self")

# store stats
cli$stats("store")

# Prety or not
cli$stats(pretty = TRUE)
cli$stats(pretty = FALSE)

## End(Not run)

etseed documentation built on May 2, 2019, 10:20 a.m.