galaxyproject / gxabm

Scripts for automating tasks in Galaxy
MIT License
2 stars 4 forks source link

Add listing job metrics for all jobs in a history #185

Closed afgane closed 1 year ago

afgane commented 1 year ago

The metrics subcommand now returns a list of dicts with some job metadata along the metrics:

❯ abm gke jobs metrics -h 34a389071c95afda
[
    {
        "job_id": "68e8e638dde1f7ce",
        "job_state": "ok",
        "tool_id": "__IMPORT_HISTORY__",
        "job_metrics": [
            {
                "title": "Operating System",
                "value": "Linux gkm-galaxy-job-0-59975b7955-fw4sk 5.10.162+ #1 SMP Sat Mar 11 15:59:33 UTC 2023 x86_64 GNU/Linux\n",
                "plugin": "uname",
                "name": "uname",
                "raw_value": "Linux gkm-galaxy-job-0-59975b7955-fw4sk 5.10.162+ #1 SMP Sat Mar 11 15:59:33 UTC 2023 x86_64 GNU/Linux\n"
            },
            {
                "title": "Total System Swap",
                "value": "0 bytes",
                ...