Exemple #1
0
def cli(ctx, pickle_it, *args, **kwargs):
    """List all running deployments.

    .. versionadded:: 1.1.8

    """
    click.echo(get_request(ctx, 'deployments', pickle_it))
Exemple #2
0
def cli(ctx, pickle_it, *args, **kwargs):
    """Get the group with all applications and all transitive child groups.

    .. versionadded:: 1.1.8

    """
    click.echo(get_request(ctx, 'groups', pickle_it))
Exemple #3
0
def cli(ctx, pickle_it, *args, **kwargs):
    """List all the tasks queued up or waiting to be scheduled.

    .. versionadded:: 1.1.8

    """
    click.echo(get_request(ctx, 'queue', pickle_it))
Exemple #4
0
def cli(ctx, pickle_it, *args, **kwargs):
    """Get metrics data from this Marathon instance.

    .. versionadded:: 1.1.8

    """
    click.echo(get_request(ctx, 'metrics', pickle_it, with_version=False))
Exemple #5
0
def cli(ctx, pickle_it, *args, **kwargs):
    """Get info about the Marathon Instance.

    .. versionadded:: 1.1.7

    """
    click.echo(get_request(ctx, 'info', pickle_it))
Exemple #6
0
def cli(ctx, pickle_it, *args, **kwargs):
    """Returns the current leader.

    .. versionadded:: 1.1.8

    """
    click.echo(get_request(ctx, 'leader', pickle_it))
Exemple #7
0
def cli(ctx, pickle_it, *args, **kwargs):
    """Returns the list of all loaded plugins.

    .. versionadded:: 1.1.8

    """
    click.echo(get_request(ctx, 'plugins', pickle_it))
Exemple #8
0
def cli(ctx, pickle_it, *args, **kwargs):
    """Ping this Marathon instance.

    .. versionadded:: 1.1.8

    """
    click.echo(get_request(ctx, 'ping', pickle_it, with_version=False))
Exemple #9
0
def cli(ctx, pickle_it, *args, **kwargs):
    """Get all running tasks.
    """
    click.echo(get_request(ctx, 'tasks', pickle_it))