{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Schedule",
  "title": "Schedule",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the schedule"
    },
    "testId": {
      "type": "string",
      "description": "The test to run on this schedule"
    },
    "frequency": {
      "type": "string",
      "enum": [
        "5m",
        "15m",
        "30m",
        "1h",
        "6h",
        "12h",
        "24h"
      ],
      "description": "How often the test should run"
    },
    "environmentId": {
      "type": "string",
      "description": "The environment to use for scheduled runs"
    },
    "locationIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Monitoring locations to run the test from"
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the schedule is currently active"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the schedule was created"
    }
  }
}