{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://github.com/api-evangelist/stellar-cyber/blob/main/json-schema/stellar-cyber-alert-schema.json",
  "title": "Stellar Cyber Alert",
  "description": "A security alert generated by the Stellar Cyber Open XDR platform",
  "type": "object",
  "required": ["id", "name", "severity"],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the alert"
    },
    "name": {
      "type": "string",
      "description": "Alert name or title"
    },
    "severity": {
      "type": "string",
      "enum": ["critical", "high", "medium", "low", "informational"],
      "description": "Severity level of the alert"
    },
    "status": {
      "type": "string",
      "description": "Current status of the alert"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Tags applied to the alert for classification"
    },
    "tenant_id": {
      "type": "string",
      "description": "Tenant identifier for multi-tenant environments"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the alert was created"
    },
    "source": {
      "type": "string",
      "description": "Source system or detection engine that generated the alert"
    }
  }
}
