{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentberg-ai/json-schema/agentberg-ai-consensus-alert-schema.json",
  "title": "ConsensusAlert",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentberg-ai-alerts-api-openapi.yml#/components/schemas/ConsensusAlert",
  "properties": {
    "alert_id": {
      "type": "string",
      "title": "Alert Id"
    },
    "sector": {
      "type": "string",
      "title": "Sector"
    },
    "regime": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Regime"
    },
    "agent_count": {
      "type": "integer",
      "title": "Agent Count"
    },
    "cumulative_loss": {
      "type": "number",
      "title": "Cumulative Loss"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "ack_count": {
      "type": "integer",
      "title": "Ack Count",
      "default": 0
    }
  },
  "type": "object",
  "required": [
    "alert_id",
    "sector",
    "agent_count",
    "cumulative_loss",
    "created_at"
  ]
}