{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "insights/v1/events/system/report.system.cpu.json",
  "title": "System: report.system.cpu",
  "description": "CPU and load average metrics from the Honeybadger CLI agent. Recorded once per reporting interval.",
  "x-hb": {
    "notifiers": [
      "honeybadger-cli"
    ],
    "category": "system"
  },
  "type": "object",
  "properties": {
    "event_type": {
      "type": "string",
      "const": "report.system.cpu"
    },
    "host": {
      "type": "string",
      "description": "Hostname of the machine running the agent.",
      "examples": [
        "web-1.example.com"
      ]
    },
    "ts": {
      "type": "string",
      "description": "ISO 8601 timestamp set by the CLI agent at collection time.",
      "examples": [
        "2026-06-12T14:30:00Z"
      ]
    },
    "used_percent": {
      "type": "number",
      "description": "CPU usage as a percentage (0.0–100.0), rounded to 2 decimal places.",
      "examples": [
        32.85
      ]
    },
    "load_avg_1": {
      "type": "number",
      "description": "1-minute load average.",
      "examples": [
        3.35
      ]
    },
    "load_avg_5": {
      "type": "number",
      "description": "5-minute load average.",
      "examples": [
        3.73
      ]
    },
    "load_avg_15": {
      "type": "number",
      "description": "15-minute load average.",
      "examples": [
        3.86
      ]
    },
    "num_cpus": {
      "type": "integer",
      "description": "Number of logical CPUs.",
      "examples": [
        14
      ]
    }
  },
  "required": [
    "event_type",
    "host",
    "used_percent"
  ]
}
