schemas/dashboards.json in losant_rest-1.16.3 vs schemas/dashboards.json in losant_rest-1.16.5
- old
+ new
@@ -66,10 +66,18 @@
"refreshRate": {
"type": "number",
"minimum": 5,
"maximum": 600
},
+ "duration": {
+ "type": "integer",
+ "minimum": 1
+ },
+ "resolution": {
+ "type": "integer",
+ "minimum": 1
+ },
"defaultTheme": {
"type": "string",
"enum": [
"dark",
"light"
@@ -260,12 +268,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
},
@@ -702,12 +720,22 @@
},
"additionalProperties": false
}
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
},
"resolution": {
"oneOf": [
{
"type": "integer",
@@ -875,12 +903,22 @@
},
"additionalProperties": false
}
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
}
},
"additionalProperties": false
},
{
@@ -1611,12 +1649,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
@@ -1861,12 +1909,22 @@
},
"displayAsPercentage": {
"type": "boolean"
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
},
"gaugeMax": {
"oneOf": [
{
"type": "number"
@@ -2183,12 +2241,22 @@
"properties": {
"realTime": {
"type": "boolean"
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
},
"resolution": {
"oneOf": [
{
"type": "integer",
@@ -2559,12 +2627,22 @@
},
"additionalProperties": false
}
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
},
"locationTagKey": {
"oneOf": [
{
"type": "string",
@@ -2948,12 +3026,22 @@
},
"additionalProperties": false
}
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
}
},
"additionalProperties": false
}
]
@@ -3404,12 +3492,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": {
@@ -4833,12 +4931,22 @@
},
"additionalProperties": false
}
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
},
"endColor": {
"type": "string",
"maxLength": 64
},
@@ -5029,12 +5137,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
},
@@ -5344,11 +5462,21 @@
},
"additionalProperties": false
}
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
},
"endColor": {
"type": "string",
"maxLength": 64
},
\ No newline at end of file