On Thu, Jan 14, 2021 at 02:46:32PM +0800, Wu Zhende wrote:
Use es-jobs to summarizes information about a group of related jobs.
[Example] es-jobs submit_id=xxx -f 'job_state,dmesg.timestamp:last' -r '-1' -s 'on_fail' means:
- query the job whose submit_id is xxx
- I want to get job_state,dmesg.timestamp:last
- don't refine jobs
- -s 'on_fail' to get data in stats which contain 'on_fail'
[Output] {
Please change to 1-dimension YAML form. One line per stat.
"job_state": [ "crystal.605716.failed" ], "dmesg.timestamp:last": [ 657.181408 ], "stats_filter_result": { "crystal.605716.openeuler_docker.\u001b[0mwordpress_build_on_fail": 1 }, "stats.count": { "stats.has_error": 1, "stats.has_error_jobs": [ "crystal.605716" ] } }
Thanks, Fengguang