Learn R Programming

etseed (version 0.1.0)

stats: Get etcd statistics

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

Run this code
## 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)

Run the code above in your browser using DataLab