{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/monit-rs/json-schema/monit-rs-alert-history-response-schema.json",
  "title": "AlertHistoryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monit-rs-alerts-api-openapi.yml#/components/schemas/AlertHistoryResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "alert_channel_id": {
      "type": "string",
      "format": "uuid",
      "title": "Alert Channel Id"
    },
    "regression_id": {
      "type": "string",
      "format": "uuid",
      "title": "Regression Id"
    },
    "incident_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Incident Id"
    },
    "alert_type": {
      "type": "string",
      "title": "Alert Type",
      "default": "regression_detected"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "attempts": {
      "type": "integer",
      "title": "Attempts"
    },
    "sent_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sent At"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "alert_channel_id",
    "regression_id",
    "status",
    "attempts",
    "sent_at",
    "created_at"
  ]
}