schemas/timeSeriesData.json in losant_rest-1.19.1 vs schemas/timeSeriesData.json in losant_rest-1.19.2
- old
+ new
@@ -9,11 +9,14 @@
"end": {
"type": "string",
"format": "date-time"
},
"resolution": {
- "type": "number"
+ "type": [
+ "number",
+ "null"
+ ]
},
"aggregation": {
"oneOf": [
{
"oneOf": [
@@ -115,10 +118,23 @@
"options"
]
}
]
},
+ "limit": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "order": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ]
+ },
"devices": {
"type": "object",
"patternProperties": {
"^[A-Fa-f\\d]{24}$": {
"type": "object",
@@ -126,10 +142,24 @@
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
+ "tags": {
+ "type": "object",
+ "patternProperties": {
+ "^[0-9a-zA-Z_-]{1,255}$": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 255
+ }
+ }
+ },
+ "additionalProperties": false
+ },
"points": {
"type": "array",
"items": {
"type": "object",
"properties": {
@@ -160,11 +190,12 @@
}
},
"additionalProperties": false,
"required": [
"name",
- "points"
+ "points",
+ "tags"
]
}
},
"additionalProperties": false
}
@@ -173,8 +204,10 @@
"required": [
"start",
"end",
"resolution",
"aggregation",
+ "limit",
+ "order",
"devices"
]
}
\ No newline at end of file