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