schemas/dashboard.json in losant_rest-1.16.3 vs schemas/dashboard.json in losant_rest-1.16.5
- old
+ new
@@ -59,10 +59,18 @@
"refreshRate": {
"type": "number",
"minimum": 5,
"maximum": 600
},
+ "duration": {
+ "type": "integer",
+ "minimum": 1
+ },
+ "resolution": {
+ "type": "integer",
+ "minimum": 1
+ },
"defaultTheme": {
"type": "string",
"enum": [
"dark",
"light"
@@ -253,12 +261,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
},
@@ -695,12 +713,22 @@
},
"additionalProperties": false
}
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
},
"resolution": {
"oneOf": [
{
"type": "integer",
@@ -868,12 +896,22 @@
},
"additionalProperties": false
}
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
}
},
"additionalProperties": false
},
{
@@ -1604,12 +1642,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
@@ -1854,12 +1902,22 @@
},
"displayAsPercentage": {
"type": "boolean"
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
},
"gaugeMax": {
"oneOf": [
{
"type": "number"
@@ -2176,12 +2234,22 @@
"properties": {
"realTime": {
"type": "boolean"
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
},
"resolution": {
"oneOf": [
{
"type": "integer",
@@ -2552,12 +2620,22 @@
},
"additionalProperties": false
}
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
},
"locationTagKey": {
"oneOf": [
{
"type": "string",
@@ -2941,12 +3019,22 @@
},
"additionalProperties": false
}
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
}
},
"additionalProperties": false
}
]
@@ -3397,12 +3485,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": {
@@ -4826,12 +4924,22 @@
},
"additionalProperties": false
}
},
"duration": {
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "string",
+ "enum": [
+ "{{dashboard.duration}}"
+ ]
+ }
+ ]
},
"endColor": {
"type": "string",
"maxLength": 64
},
@@ -5022,12 +5130,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
},
@@ -5337,11 +5455,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