{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "insights/v1/events/honeybadger-python/asgi.request.json",
  "title": "ASGI: request",
  "description": "An ASGI app finished handling an HTTP request. Used by FastAPI, Starlette, and similar frameworks.",
  "x-hb": {
    "notifiers": [
      "honeybadger-python"
    ],
    "category": "request",
    "component": "ASGI"
  },
  "type": "object",
  "properties": {
    "event_type": {
      "type": "string",
      "const": "asgi.request"
    },
    "path": {
      "type": "string",
      "description": "Request path from the ASGI scope.",
      "examples": [
        "/users/123"
      ]
    },
    "method": {
      "type": "string",
      "description": "HTTP method, e.g. \"GET\", \"POST\".",
      "examples": [
        "GET"
      ]
    },
    "status": {
      "type": "integer",
      "description": "HTTP response status code.",
      "examples": [
        200
      ]
    },
    "duration": {
      "type": "number",
      "description": "Request duration in milliseconds.",
      "examples": [
        23.4567
      ]
    },
    "params": {
      "type": "object",
      "description": "Parsed query string params. Only present when include_params is enabled in insights_config.",
      "additionalProperties": true,
      "examples": [
        {
          "page": "2",
          "sort": "name"
        }
      ]
    },
    "request_id": {
      "type": "string",
      "description": "Request ID from event context, if set.",
      "examples": [
        "1f9f6f1a-2b3c-4d5e-8f6a-7b8c9d0e1f2a"
      ]
    }
  },
  "required": [
    "event_type",
    "method",
    "path"
  ]
}
