{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT\n            COUNT(*) as \"total_requests!\",\n            COALESCE(SUM(prompt_tokens), 0) as \"total_prompt_tokens!\",\n            COALESCE(SUM(completion_tokens), 0) as \"total_completion_tokens!\",\n            COALESCE(SUM(reasoning_tokens), 0) as \"total_reasoning_tokens!\",\n            COALESCE(SUM(total_tokens), 0) as \"total_tokens!\",\n            AVG(duration_ms) as \"avg_duration_ms\",\n            AVG(duration_to_first_byte_ms) as \"avg_ttfb_ms\",\n            SUM((prompt_tokens * COALESCE(input_price_per_token, 0)) +\n                (completion_tokens * COALESCE(output_price_per_token, 0))) as \"total_cost\"\n        FROM http_analytics\n        WHERE fusillade_batch_id = $1\n          AND status_code BETWEEN 200 AND 299\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "total_requests!",
        "type_info": "Int8"
      },
      {
        "ordinal": 1,
        "name": "total_prompt_tokens!",
        "type_info": "Numeric"
      },
      {
        "ordinal": 2,
        "name": "total_completion_tokens!",
        "type_info": "Numeric"
      },
      {
        "ordinal": 3,
        "name": "total_reasoning_tokens!",
        "type_info": "Numeric"
      },
      {
        "ordinal": 4,
        "name": "total_tokens!",
        "type_info": "Numeric"
      },
      {
        "ordinal": 5,
        "name": "avg_duration_ms",
        "type_info": "Numeric"
      },
      {
        "ordinal": 6,
        "name": "avg_ttfb_ms",
        "type_info": "Numeric"
      },
      {
        "ordinal": 7,
        "name": "total_cost",
        "type_info": "Numeric"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid"
      ]
    },
    "nullable": [
      null,
      null,
      null,
      null,
      null,
      null,
      null,
      null
    ]
  },
  "hash": "f75b82892371b3772f9398c33d15eb035c89ed80e6b2cc58e1debd83d9040d30"
}
