{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "MaintenancePlanRequest",
  "type": "object",
  "description": "Payload for creating a maintenance plan.",
  "properties": {
    "name": {
      "type": "string",
      "description": "Maintenance plan name.",
      "example": "Weekend Maintenance"
    },
    "condition": {
      "type": "string",
      "description": "Filter condition for hosts in maintenance.",
      "example": "host = \"production-database-1\""
    },
    "start": {
      "type": "integer",
      "description": "Start Unix timestamp.",
      "example": 1713000000
    },
    "end": {
      "type": "integer",
      "description": "End Unix timestamp.",
      "example": 1713086400
    }
  },
  "required": [
    "name",
    "condition",
    "start",
    "end"
  ]
}