{
  "db_name": "PostgreSQL",
  "query": "SELECT worker, worker_instance,  EXTRACT(EPOCH FROM (now() - ping_at))::integer as last_ping, started_at, ip, jobs_executed,\n        CASE WHEN $4 IS TRUE THEN current_job_id ELSE NULL END as last_job_id, CASE WHEN $4 IS TRUE THEN current_job_workspace_id ELSE NULL END as last_job_workspace_id,\n        custom_tags, worker_group, wm_version, occupancy_rate, occupancy_rate_15s, occupancy_rate_5m, occupancy_rate_30m, memory, vcpus, memory_usage, wm_memory_usage, job_isolation\n        FROM worker_ping\n        WHERE ($1::integer IS NULL AND ping_at > now() - interval '5 minute') OR (ping_at > now() - ($1 || ' seconds')::interval)\n        ORDER BY ping_at desc LIMIT $2 OFFSET $3",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "worker",
        "type_info": "Varchar"
      },
      {
        "ordinal": 1,
        "name": "worker_instance",
        "type_info": "Varchar"
      },
      {
        "ordinal": 2,
        "name": "last_ping",
        "type_info": "Int4"
      },
      {
        "ordinal": 3,
        "name": "started_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 4,
        "name": "ip",
        "type_info": "Varchar"
      },
      {
        "ordinal": 5,
        "name": "jobs_executed",
        "type_info": "Int4"
      },
      {
        "ordinal": 6,
        "name": "last_job_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 7,
        "name": "last_job_workspace_id",
        "type_info": "Varchar"
      },
      {
        "ordinal": 8,
        "name": "custom_tags",
        "type_info": "TextArray"
      },
      {
        "ordinal": 9,
        "name": "worker_group",
        "type_info": "Varchar"
      },
      {
        "ordinal": 10,
        "name": "wm_version",
        "type_info": "Varchar"
      },
      {
        "ordinal": 11,
        "name": "occupancy_rate",
        "type_info": "Float4"
      },
      {
        "ordinal": 12,
        "name": "occupancy_rate_15s",
        "type_info": "Float4"
      },
      {
        "ordinal": 13,
        "name": "occupancy_rate_5m",
        "type_info": "Float4"
      },
      {
        "ordinal": 14,
        "name": "occupancy_rate_30m",
        "type_info": "Float4"
      },
      {
        "ordinal": 15,
        "name": "memory",
        "type_info": "Int8"
      },
      {
        "ordinal": 16,
        "name": "vcpus",
        "type_info": "Int8"
      },
      {
        "ordinal": 17,
        "name": "memory_usage",
        "type_info": "Int8"
      },
      {
        "ordinal": 18,
        "name": "wm_memory_usage",
        "type_info": "Int8"
      },
      {
        "ordinal": 19,
        "name": "job_isolation",
        "type_info": "Text"
      }
    ],
    "parameters": {
      "Left": [
        "Int4",
        "Int8",
        "Int8",
        "Bool"
      ]
    },
    "nullable": [
      false,
      false,
      null,
      false,
      false,
      false,
      null,
      null,
      true,
      false,
      false,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      true
    ]
  },
  "hash": "771a858a4b7ca41b6787e61f5a4a5c9c4d48fd213852e2f997cd4b2420580d30"
}
