{
  "title": "NOAA Space Weather Alert Monitor",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "productIds": {
      "title": "NOAA product IDs",
      "type": "array",
      "description": "Optional exact IDs such as K04W. Up to 20 product IDs. Leave empty to include all source bulletin products.",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "default": []
    },
    "messageContains": {
      "title": "Message contains",
      "type": "string",
      "description": "Optional case-insensitive literal text, for example radio or geomagnetic. This filters official message text, not an AI severity judgement.",
      "editor": "textfield",
      "default": ""
    },
    "maxAgeHours": {
      "title": "Maximum bulletin age in hours",
      "type": "integer",
      "description": "0 disables the age filter. Otherwise include source issue times within this many hours. The live retained feed is not a complete archive.",
      "minimum": 0,
      "maximum": 720,
      "default": 0
    },
    "maxResults": {
      "title": "Maximum saved observations",
      "type": "integer",
      "description": "Save the latest matching window of 1–100 records. Default is three. The source coverage report describes records outside the selection.",
      "minimum": 1,
      "maximum": 100,
      "default": 3,
      "prefill": 3
    },
    "maxRunSeconds": {
      "title": "Time budget (seconds)",
      "type": "integer",
      "description": "30–120 seconds including source, output and comparison. Each request is bounded to 20 seconds; the platform timeout can stop sooner.",
      "minimum": 30,
      "maximum": 120,
      "default": 60
    },
    "comparePrevious": {
      "title": "Compare saved observations",
      "type": "boolean",
      "description": "Compare the same selection and snapshot name with prior complete saved observations. The first run establishes a baseline; missing records are never inferred removed.",
      "default": false
    },
    "onlyChanges": {
      "title": "Save only new or changed observations",
      "type": "boolean",
      "description": "Enables comparison. An unchanged repeat can correctly return zero rows. Source failures and partial runs cannot advance the baseline.",
      "default": false
    },
    "snapshotName": {
      "title": "Snapshot name",
      "type": "string",
      "description": "1–80 letters, digits, underscores or hyphens. Selection settings also separate history. Run the same snapshot sequentially.",
      "editor": "textfield",
      "default": "default"
    }
  }
}
