Esempio n. 1
0
def get_settings():
    try:
        response = base.es.cluster.get_settings()
    except Exception as e:
        click.echo(e)
    else:
        base.pretty_print(response)
Esempio n. 2
0
def stats():
    try:
        response = base.es.nodes.stats()
    except Exception as e:
        click.echo(e)
    else:
        base.pretty_print(response)
Esempio n. 3
0
def stats():
    try:
        response = base.es.cluster.stats(human=True)
        # table = base.draw_table(response)
    except Exception as e:
        click.echo(e)
    else:
        base.pretty_print(response)
Esempio n. 4
0
def state(index):
    try:
        response = base.es.cluster.state(index=index)
        # table = base.draw_table(response)
    except Exception as e:
        click.echo(e)
    else:
        base.pretty_print(response)