{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/red-hat/main/json-schema/red-hat-system-schema.json",
  "title": "System",
  "description": "A RHEL system registered with Red Hat Insights for monitoring and recommendations.",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-systems-api-openapi.yml#/components/schemas/System",
  "type": "object",
  "properties": {
    "system_uuid": {
      "type": "string",
      "format": "uuid",
      "description": "The unique identifier of the system."
    },
    "display_name": {
      "type": "string",
      "description": "The display name of the system."
    },
    "last_seen": {
      "type": "string",
      "format": "date-time",
      "description": "The last time the system checked in with Insights."
    },
    "stale_at": {
      "type": "string",
      "format": "date-time",
      "description": "The date when the system will be considered stale."
    },
    "hits": {
      "type": "integer",
      "description": "The number of active Advisor recommendations."
    },
    "critical_hits": {
      "type": "integer",
      "description": "The number of critical severity recommendations."
    },
    "important_hits": {
      "type": "integer",
      "description": "The number of important severity recommendations."
    },
    "moderate_hits": {
      "type": "integer",
      "description": "The number of moderate severity recommendations."
    },
    "low_hits": {
      "type": "integer",
      "description": "The number of low severity recommendations."
    },
    "rhel_version": {
      "type": "string",
      "description": "The RHEL version running on the system."
    }
  }
}