{
  "raw_checkout_event_window": {
    "request": {
      "query": {
        "sql": "SELECT event_id, _timestamp, duration_ms FROM raw_checkout ORDER BY event_id",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [],
    "total": 0
  },
  "time_checkout_event_window": {
    "request": {
      "query": {
        "sql": "SELECT event_id, _timestamp, duration_ms FROM time_checkout ORDER BY event_id",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [
      {
        "event_id": "e-001",
        "_timestamp": 1791511200123456,
        "duration_ms": "1200"
      },
      {
        "event_id": "e-002",
        "_timestamp": 1791511260000000,
        "duration_ms": "1600"
      },
      {
        "event_id": "e-003",
        "_timestamp": 1791511320000000
      },
      {
        "event_id": "e-004",
        "_timestamp": 1791511380000000,
        "duration_ms": "80"
      },
      {
        "event_id": "e-005",
        "_timestamp": 1791511440000000,
        "duration_ms": "350"
      },
      {
        "event_id": "e-006",
        "_timestamp": 1791511499999999,
        "duration_ms": "20"
      }
    ],
    "total": 6
  },
  "checkout_event_window": {
    "request": {
      "query": {
        "sql": "SELECT event_id, _timestamp, duration_ms FROM checkout ORDER BY event_id",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [
      {
        "event_id": "e-001",
        "_timestamp": 1791511200123456,
        "duration_ms": 1200.0
      },
      {
        "event_id": "e-002",
        "_timestamp": 1791511260000000,
        "duration_ms": 1600.0
      },
      {
        "event_id": "e-003",
        "_timestamp": 1791511320000000
      },
      {
        "event_id": "e-004",
        "_timestamp": 1791511380000000,
        "duration_ms": 80.0
      },
      {
        "event_id": "e-005",
        "_timestamp": 1791511440000000,
        "duration_ms": 350.0
      },
      {
        "event_id": "e-006",
        "_timestamp": 1791511499999999,
        "duration_ms": 20.0
      }
    ],
    "total": 6
  },
  "corrupt_checkout_event_window": {
    "request": {
      "query": {
        "sql": "SELECT event_id, _timestamp, duration_ms FROM corrupt_checkout ORDER BY event_id",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [
      {
        "event_id": "e-001",
        "_timestamp": 1791511200123456,
        "duration_ms": 1200.0
      },
      {
        "event_id": "e-001",
        "_timestamp": 1791511200123456,
        "duration_ms": 1200.0
      },
      {
        "event_id": "e-002",
        "_timestamp": 1791511260000000,
        "duration_ms": 1600.0
      },
      {
        "event_id": "e-004",
        "_timestamp": 1791511380000000,
        "duration_ms": 80.0
      },
      {
        "event_id": "e-005",
        "_timestamp": 1791511440000000,
        "duration_ms": 350.0
      },
      {
        "event_id": "e-006",
        "_timestamp": 1791511499999999,
        "duration_ms": 20.0
      }
    ],
    "total": 6
  },
  "canonical_checkout_event_window": {
    "request": {
      "query": {
        "sql": "SELECT event_id, _timestamp, duration_ms FROM canonical_checkout ORDER BY event_id",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [
      {
        "event_id": "e-001",
        "_timestamp": 1791511200123456,
        "duration_ms": 1200.0
      },
      {
        "event_id": "e-002",
        "_timestamp": 1791511260000000,
        "duration_ms": 1600.0
      },
      {
        "event_id": "e-003",
        "_timestamp": 1791511320000000
      },
      {
        "event_id": "e-004",
        "_timestamp": 1791511380000000,
        "duration_ms": 80.0
      },
      {
        "event_id": "e-005",
        "_timestamp": 1791511440000000,
        "duration_ms": 350.0
      },
      {
        "event_id": "e-006",
        "_timestamp": 1791511499999999,
        "duration_ms": 20.0
      }
    ],
    "total": 6
  },
  "raw_ingest_window": {
    "request": {
      "query": {
        "sql": "SELECT event_id, _timestamp FROM raw_checkout ORDER BY event_id",
        "start_time": 1791530156973824,
        "end_time": 1791530396973824,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [
      {
        "event_id": "e-001",
        "_timestamp": 1791530275777992
      },
      {
        "event_id": "e-002",
        "_timestamp": 1791530275778553
      },
      {
        "event_id": "e-003",
        "_timestamp": 1791530275778555
      },
      {
        "event_id": "e-004",
        "_timestamp": 1791530275778556
      },
      {
        "event_id": "e-005",
        "_timestamp": 1791530275778557
      },
      {
        "event_id": "e-006",
        "_timestamp": 1791530275778557
      }
    ],
    "total": 6
  },
  "string_threshold": {
    "request": {
      "query": {
        "sql": "SELECT event_id, duration_ms FROM time_checkout WHERE duration_ms > '900' ORDER BY event_id",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [],
    "total": 0
  },
  "explicit_cast_threshold": {
    "request": {
      "query": {
        "sql": "SELECT event_id, duration_ms FROM time_checkout WHERE CAST(duration_ms AS DOUBLE) > 900 ORDER BY event_id",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [
      {
        "_timestamp": 1791511200123456,
        "event_id": "e-001",
        "duration_ms": "1200"
      },
      {
        "_timestamp": 1791511260000000,
        "event_id": "e-002",
        "duration_ms": "1600"
      }
    ],
    "total": 2
  },
  "numeric_threshold": {
    "request": {
      "query": {
        "sql": "SELECT event_id, duration_ms FROM checkout WHERE duration_ms > 900 ORDER BY event_id",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [
      {
        "_timestamp": 1791511200123456,
        "event_id": "e-001",
        "duration_ms": 1200.0
      },
      {
        "_timestamp": 1791511260000000,
        "event_id": "e-002",
        "duration_ms": 1600.0
      }
    ],
    "total": 2
  },
  "checkout_fields": {
    "request": {
      "query": {
        "sql": "SELECT event_id, _timestamp, service, env, status, duration_ms, trace_id, message FROM checkout ORDER BY event_id",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [
      {
        "event_id": "e-001",
        "_timestamp": 1791511200123456,
        "service": "checkout",
        "env": "prod",
        "status": "error",
        "duration_ms": 1200.0,
        "trace_id": "00000000000000000000000000000001",
        "message": "upstream timeout"
      },
      {
        "event_id": "e-002",
        "_timestamp": 1791511260000000,
        "service": "checkout",
        "env": "prod",
        "status": "error",
        "duration_ms": 1600.0,
        "trace_id": "00000000000000000000000000000002",
        "message": "upstream timeout"
      },
      {
        "event_id": "e-003",
        "_timestamp": 1791511320000000,
        "service": "checkout",
        "env": "prod",
        "status": "error",
        "trace_id": "00000000000000000000000000000003",
        "message": "upstream timeout"
      },
      {
        "event_id": "e-004",
        "_timestamp": 1791511380000000,
        "service": "checkout",
        "env": "prod",
        "status": "info",
        "duration_ms": 80.0,
        "trace_id": "00000000000000000000000000000004",
        "message": "checkout complete"
      },
      {
        "event_id": "e-005",
        "_timestamp": 1791511440000000,
        "service": "checkout",
        "env": "prod",
        "status": "warn",
        "duration_ms": 350.0,
        "trace_id": "00000000000000000000000000000005",
        "message": "checkout complete"
      },
      {
        "event_id": "e-006",
        "_timestamp": 1791511499999999,
        "service": "checkout",
        "env": "prod",
        "status": "info",
        "duration_ms": 20.0,
        "trace_id": "00000000000000000000000000000006",
        "message": "checkout complete"
      }
    ],
    "total": 6
  },
  "canonical_fields": {
    "request": {
      "query": {
        "sql": "SELECT event_id, _timestamp, service, env, status, duration_ms, trace_id, message FROM canonical_checkout ORDER BY event_id",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [
      {
        "event_id": "e-001",
        "_timestamp": 1791511200123456,
        "service": "checkout",
        "env": "prod",
        "status": "error",
        "duration_ms": 1200.0,
        "trace_id": "00000000000000000000000000000001",
        "message": "upstream timeout"
      },
      {
        "event_id": "e-002",
        "_timestamp": 1791511260000000,
        "service": "checkout",
        "env": "prod",
        "status": "error",
        "duration_ms": 1600.0,
        "trace_id": "00000000000000000000000000000002",
        "message": "upstream timeout"
      },
      {
        "event_id": "e-003",
        "_timestamp": 1791511320000000,
        "service": "checkout",
        "env": "prod",
        "status": "error",
        "trace_id": "00000000000000000000000000000003",
        "message": "upstream timeout"
      },
      {
        "event_id": "e-004",
        "_timestamp": 1791511380000000,
        "service": "checkout",
        "env": "prod",
        "status": "info",
        "duration_ms": 80.0,
        "trace_id": "00000000000000000000000000000004",
        "message": "checkout complete"
      },
      {
        "event_id": "e-005",
        "_timestamp": 1791511440000000,
        "service": "checkout",
        "env": "prod",
        "status": "warning",
        "duration_ms": 350.0,
        "trace_id": "00000000000000000000000000000005",
        "message": "checkout complete"
      },
      {
        "event_id": "e-006",
        "_timestamp": 1791511499999999,
        "service": "checkout",
        "env": "prod",
        "status": "info",
        "duration_ms": 20.0,
        "trace_id": "00000000000000000000000000000006",
        "message": "checkout complete"
      }
    ],
    "total": 6
  },
  "count_nulls": {
    "request": {
      "query": {
        "sql": "SELECT count(*) AS error_events, count(duration_ms) AS with_duration FROM checkout WHERE env='prod' AND status='error'",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [
      {
        "error_events": 3,
        "with_duration": 2
      }
    ],
    "total": 1
  },
  "checkout_counts": {
    "request": {
      "query": {
        "sql": "SELECT count(*) AS events, count(DISTINCT event_id) AS unique_events FROM checkout",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [
      {
        "events": 6,
        "unique_events": 6
      }
    ],
    "total": 1
  },
  "corrupt_checkout_counts": {
    "request": {
      "query": {
        "sql": "SELECT count(*) AS events, count(DISTINCT event_id) AS unique_events FROM corrupt_checkout",
        "start_time": 1791511200000000,
        "end_time": 1791511500000000,
        "from": 0,
        "size": 100
      },
      "search_type": "ui"
    },
    "http": 200,
    "hits": [
      {
        "events": 6,
        "unique_events": 5
      }
    ],
    "total": 1
  }
}
