{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "insights/v1/events/honeybadger-ruby/request.net_http.json",
  "title": "Net::HTTP: request",
  "description": "An outbound HTTP request made with Ruby's Net::HTTP.",
  "x-hb": {
    "notifiers": [
      "honeybadger-ruby"
    ],
    "category": "http",
    "component": "Net::HTTP"
  },
  "type": "object",
  "properties": {
    "event_type": {
      "type": "string",
      "const": "request.net_http"
    },
    "method": {
      "type": "string",
      "description": "HTTP method, e.g. \"GET\", \"POST\".",
      "examples": [
        "GET"
      ]
    },
    "host": {
      "type": "string",
      "description": "Destination host.",
      "examples": [
        "api.example.com"
      ]
    },
    "url": {
      "type": "string",
      "description": "Full request URL. Only present when the net_http.insights.full_url config option is enabled.",
      "examples": [
        "https://api.example.com/v2/items/42"
      ]
    },
    "status": {
      "type": "integer",
      "description": "HTTP response status code.",
      "examples": [
        200
      ]
    },
    "duration": {
      "type": "number",
      "description": "Round-trip duration in milliseconds.",
      "examples": [
        89.4
      ]
    },
    "request_id": {
      "type": "string",
      "description": "Rails request UUID, present on any event fired during a web request context. Set by the Honeybadger agent when available.",
      "examples": [
        "0f5e4bb2-3c46-4b1c-91d5-2f4e8a6b9c01"
      ]
    },
    "hostname": {
      "type": "string",
      "description": "Server hostname. Attached to every event by default (events.attach_hostname).",
      "examples": [
        "web-1.example.com"
      ]
    },
    "environment": {
      "type": "string",
      "description": "Application environment, e.g. \"production\". Attached to every event by default (events.attach_environment).",
      "examples": [
        "production"
      ]
    }
  },
  "required": [
    "event_type",
    "method",
    "host",
    "duration"
  ]
}
