{
  "title": "GB Electricity Imbalance Price Monitor",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "settlementDate": {
      "title": "Settlement date (optional)",
      "type": "string",
      "description": "YYYY-MM-DD, from 2015-11-05 through today UTC. Blank uses the preceding UTC date. Settlement periods themselves follow Europe/London time. Prices may be revised.",
      "editor": "textfield",
      "default": ""
    },
    "startPeriod": {
      "title": "First settlement period",
      "type": "integer",
      "description": "Include periods from this number. Most dates have 48 periods; London clock changes create 46 or 50.",
      "minimum": 1,
      "maximum": 50,
      "default": 1
    },
    "endPeriod": {
      "title": "Last settlement period",
      "type": "integer",
      "description": "Include periods up to this number. A value of 50 safely includes all published periods on any supported date.",
      "minimum": 1,
      "maximum": 50,
      "default": 50
    },
    "maxResults": {
      "title": "Maximum saved observations",
      "type": "integer",
      "description": "Save the latest matching window of 1–50 records. Default is three. The source coverage report describes records outside the selection.",
      "minimum": 1,
      "maximum": 50,
      "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"
    }
  }
}
