{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mandiant/json-schema/mandiant-alert-profile-wrapped-schema.json",
  "title": "alert_profile_wrapped",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/mandiant-notification-profiles-api-openapi.yml#/components/schemas/alert_profile_wrapped",
  "type": "object",
  "properties": {
    "alert_profile": {
      "$ref": "#/$defs/alert_profile"
    }
  },
  "$defs": {
    "alert_profile": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "action_type": {
          "type": "string",
          "enum": [
            "monitor_run",
            "monitor_fail",
            "monitor_state_change",
            "detection_change",
            "detection_count_change",
            "detection_increase",
            "detection_decrease"
          ],
          "description": "Monitor result that triggers notification"
        },
        "alert_format_ids": {
          "description": "IDs of related Notification Format for this Notification Profile.  The list of available Notification Formats can be retrieved from the `GET /alert_formats` endpoint.\n",
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "max_alerts": {
          "type": "integer",
          "minimum": 1,
          "description": "Maximum number of alerts for time period"
        },
        "max_alerts_interval": {
          "type": "string",
          "enum": [
            "minute",
            "hour",
            "day",
            "week"
          ],
          "description": "Time period type, used with the max_alerts value to indicate how many notifications can be sent within a given timeframe.  For example, a `max_alerts` value of 30 and a `max_alerts_interval` value of `hour` would mean this notification would be sent not more than 30 times per hour\n"
        },
        "monitor_def_ids": {
          "description": "IDs of related Monitor Defs for this Notification Profile. The list of available Monitor Defs can be retrieved from the `GET /monitor_defs` endpoint.\n"
        }
      }
    }
  }
}