{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "insights/v1/events/honeybadger-laravel/response.received.json",
  "title": "Laravel: response.received",
  "description": "Laravel's HTTP client received a response.",
  "x-hb": {
    "notifiers": [
      "honeybadger-laravel"
    ],
    "category": "http",
    "component": "HTTP client"
  },
  "type": "object",
  "properties": {
    "event_type": {
      "type": "string",
      "const": "response.received"
    },
    "uri": {
      "type": "string",
      "description": "URL of the outbound request.",
      "examples": [
        "https://api.example.com/v1/payments"
      ]
    },
    "statusCode": {
      "type": "integer",
      "description": "HTTP response status code.",
      "examples": [
        200
      ]
    },
    "duration": {
      "type": "number",
      "description": "Duration in microseconds. The client sends a value with an ms suffix, such as \"5.123ms\". The ingestion pipeline converts it to microseconds.",
      "examples": [
        87000
      ]
    },
    "requestId": {
      "type": "string",
      "description": "Correlation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.",
      "examples": [
        "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
      ]
    }
  },
  "required": [
    "event_type",
    "uri",
    "statusCode"
  ]
}
