schemas/dashboardPost.json in losant_rest-1.16.3 vs schemas/dashboardPost.json in losant_rest-1.16.5

- old
+ new

@@ -118,12 +118,22 @@ "properties": { "realTime": { "type": "boolean" }, "duration": { - "type": "integer", - "minimum": 0 + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "string", + "enum": [ + "{{dashboard.duration}}" + ] + } + ] }, "xAxisFormat": { "type": "string", "maxLength": 255 }, @@ -560,12 +570,22 @@ }, "additionalProperties": false } }, "duration": { - "type": "integer", - "minimum": 0 + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "string", + "enum": [ + "{{dashboard.duration}}" + ] + } + ] }, "resolution": { "oneOf": [ { "type": "integer", @@ -733,12 +753,22 @@ }, "additionalProperties": false } }, "duration": { - "type": "integer", - "minimum": 0 + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "string", + "enum": [ + "{{dashboard.duration}}" + ] + } + ] } }, "additionalProperties": false }, { @@ -1469,12 +1499,22 @@ }, "additionalProperties": false } }, "duration": { - "type": "integer", - "minimum": 0 + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "string", + "enum": [ + "{{dashboard.duration}}" + ] + } + ] }, "sortDirection": { "type": "integer", "minimum": -1, "maximum": 1 @@ -1719,12 +1759,22 @@ }, "displayAsPercentage": { "type": "boolean" }, "duration": { - "type": "integer", - "minimum": 0 + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "string", + "enum": [ + "{{dashboard.duration}}" + ] + } + ] }, "gaugeMax": { "oneOf": [ { "type": "number" @@ -2041,12 +2091,22 @@ "properties": { "realTime": { "type": "boolean" }, "duration": { - "type": "integer", - "minimum": 0 + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "string", + "enum": [ + "{{dashboard.duration}}" + ] + } + ] }, "resolution": { "oneOf": [ { "type": "integer", @@ -2417,12 +2477,22 @@ }, "additionalProperties": false } }, "duration": { - "type": "integer", - "minimum": 0 + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "string", + "enum": [ + "{{dashboard.duration}}" + ] + } + ] }, "locationTagKey": { "oneOf": [ { "type": "string", @@ -2806,12 +2876,22 @@ }, "additionalProperties": false } }, "duration": { - "type": "integer", - "minimum": 0 + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "string", + "enum": [ + "{{dashboard.duration}}" + ] + } + ] } }, "additionalProperties": false } ] @@ -3262,12 +3342,22 @@ "properties": { "realTime": { "type": "boolean" }, "duration": { - "type": "integer", - "minimum": 0 + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "string", + "enum": [ + "{{dashboard.duration}}" + ] + } + ] }, "segments": { "type": "array", "maxItems": 255, "items": { @@ -4691,12 +4781,22 @@ }, "additionalProperties": false } }, "duration": { - "type": "integer", - "minimum": 0 + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "string", + "enum": [ + "{{dashboard.duration}}" + ] + } + ] }, "endColor": { "type": "string", "maxLength": 64 }, @@ -4887,12 +4987,22 @@ "properties": { "realTime": { "type": "boolean" }, "duration": { - "type": "integer", - "minimum": 0 + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "string", + "enum": [ + "{{dashboard.duration}}" + ] + } + ] }, "percentFormat": { "type": "string", "maxLength": 255 }, @@ -5202,12 +5312,22 @@ }, "additionalProperties": false } }, "duration": { - "type": "integer", - "minimum": 0 + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "type": "string", + "enum": [ + "{{dashboard.duration}}" + ] + } + ] }, "endColor": { "type": "string", "maxLength": 64 }, @@ -5433,9 +5553,17 @@ }, "refreshRate": { "type": "number", "minimum": 5, "maximum": 600 + }, + "duration": { + "type": "integer", + "minimum": 1 + }, + "resolution": { + "type": "integer", + "minimum": 1 }, "defaultTheme": { "type": "string", "enum": [ "dark", \ No newline at end of file