{
  "type": "object",
  "properties": {
    "identifiers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "timeBoundIntervalInSeconds": {
      "type": "number"
    },
    "valueBoundsCount": {
      "type": "number"
    },
    "loadConf": {
      "type": "object",
      "properties": {
        "type": {
          "const": "Time",
          "type": "string"
        },
        "lead": {
          "type": "number"
        },
        "lag": {
          "type": "number"
        },
        "leadUnit": {
          "$ref": "#/definitions/DweenTimeUnit"
        },
        "lagUnit": {
          "$ref": "#/definitions/DweenTimeUnit"
        },
        "alignUnit": {
          "enum": [
            "DAYS",
            "HALFHOUR",
            "HOURS",
            "MILLIS",
            "MINUTES",
            "MONTHS",
            "SECONDS",
            "WEEKS",
            "YEARS"
          ],
          "type": "string"
        }
      },
      "required": [
        "alignUnit",
        "lag",
        "lagUnit",
        "leadUnit"
      ]
    },
    "boundType": {
      "$ref": "#/definitions/BoundType"
    },
    "xAxisType": {
      "$ref": "#/definitions/XAxisType"
    },
    "hideHeader": {
      "type": "boolean"
    },
    "updateFrequency": {
      "type": "number"
    },
    "showDateSelection": {
      "type": "boolean"
    },
    "hideRefresh": {
      "type": "boolean"
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "instantFrom": {
      "$ref": "#/definitions/JSJoda.Instant"
    },
    "instantTo": {
      "$ref": "#/definitions/JSJoda.Instant"
    }
  },
  "required": [
    "boundType",
    "identifiers",
    "loadConf",
    "xAxisType"
  ],
  "definitions": {
    "DweenTimeUnit": {
      "enum": [
        "DAYS",
        "HALFHOUR",
        "HOURS",
        "MILLIS",
        "MINUTES",
        "MONTHS",
        "SECONDS",
        "WEEKS",
        "YEARS"
      ],
      "type": "string"
    },
    "BoundType": {
      "type": "string",
      "enum": [
        "Min-Max",
        "Standard Deviation",
        "Confidence Interval"
      ]
    },
    "XAxisType": {
      "type": "string",
      "enum": [
        "Time",
        "Values"
      ]
    },
    "JSJoda.Instant": {
      "type": "object"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}