def jri_result(follow): return list(utils.job_resource_iter( job, magic_iter, follow, key_func=lambda _: 456, ))
def jri_result(follow, tail=None): return list(utils.job_resource_iter( job, job.resource, follow=follow, tail=tail, output_json=True, ))
def cli(job_id, follow, tail): job = get_job(job_id) for item in job_resource_iter(job, job.items, output_json=True, follow=follow, tail=tail): click.echo(item)
def jri_result(follow): return list( utils.job_resource_iter( job, magic_iter, follow, key_func=lambda _: 456, ))
def cli(job_id, follow): job = get_job(job_id) for item in job_resource_iter(job, job.logs.iter_values, follow=follow, key_func=lambda item: item['_key']): click.echo("{} {} {}".format( datetime.utcfromtimestamp(item['time'] / 1000), logging.getLevelName(int(item['level'])), item['message']))
def cli(job_id, follow, tail): job = get_job(job_id) for item in job_resource_iter(job, job.logs, follow=follow, tail=tail): click.echo( u"{} {} {}".format( datetime.utcfromtimestamp(item['time']/1000), logging.getLevelName(int(item['level'])), item['message'] ) )
def cli(job_id, follow): job = get_job(job_id) for item in job_resource_iter(job, job.logs.iter_values, follow=follow, key_func=lambda item: item['_key']): click.echo( "{} {} {}".format( datetime.utcfromtimestamp(item['time']/1000), logging.getLevelName(int(item['level'])), item['message'] ) )
def cli(job_id, follow): job = get_job(job_id) for item in job_resource_iter(job, job.items.iter_json, follow=follow): click.echo(item)
def cli(job_id, follow, tail): job = get_job(job_id) for item in job_resource_iter(job, job.requests, output_json=True, follow=follow, tail=tail): click.echo(item)
def cli(job_id, follow): job = get_job(job_id) for item in job_resource_iter(job, job.requests.iter_json, follow=follow): click.echo(item)