{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mandiant/json-schema/mandiant-alert-audit-records-schema.json",
  "title": "Alert Audit Records",
  "description": "List of alert audit records.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/mandiant-alert-audit-api-openapi.yml#/components/schemas/AlertAuditRecords",
  "properties": {
    "history": {
      "description": "The list of alert audit records.",
      "items": {
        "$ref": "#/$defs/AlertAuditRecord"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "AlertAuditRecord": {
      "description": "Metadata regarding an operation performed on an alert.",
      "properties": {
        "alert_id": {
          "description": "The ID of the alert that was operated on.",
          "readOnly": true,
          "type": "string"
        },
        "history_created_at": {
          "description": "The time the operation was performed.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "description": "The ID of the audit record.",
          "readOnly": true,
          "type": "string"
        },
        "monitor_id": {
          "description": "The ID of the monitor that created the alert.",
          "readOnly": true,
          "type": "string"
        },
        "operation": {
          "description": "The operation performed on the alert.",
          "enum": [
            "read",
            "update",
            "rollback",
            "delete",
            "update_analysis",
            "delete_analysis",
            "create_attachment",
            "delete_attachment",
            "add_tags",
            "remove_tags",
            "download"
          ],
          "readOnly": true,
          "type": "string"
        },
        "previous_status": {
          "description": "The status of the alert prior to the operation.",
          "readOnly": true,
          "type": "string"
        },
        "to_status": {
          "description": "The status of the alert after the operation.",
          "readOnly": true,
          "type": "string"
        },
        "user_email": {
          "description": "The username that performed the operation.",
          "readOnly": true,
          "type": "string"
        },
        "user_id": {
          "description": "The ID of the user that performed the operation.",
          "readOnly": true,
          "type": "string"
        }
      },
      "title": "Alert Audit Record",
      "type": "object"
    }
  }
}