stats: Get etcd statistics

statsR Documentation

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

## 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)

ropensci/etseed documentation built on May 18, 2022, 9:54 a.m.