Exemplo 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)
Exemplo n.º 2
0
def stats():
    try:
        response = base.es.nodes.stats()
    except Exception as e:
        click.echo(e)
    else:
        base.pretty_print(response)
Exemplo 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)
Exemplo 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)