schemas/devices.json in losant_rest-1.8.9 vs schemas/devices.json in losant_rest-1.9.0
- old
+ new
@@ -76,10 +76,99 @@
"string",
"number",
"gps",
"boolean"
]
+ },
+ "description": {
+ "type": "string",
+ "maxLength": 32767
+ },
+ "attributeTags": {
+ "type": "object",
+ "patternProperties": {
+ "^[0-9a-zA-Z_-]{1,255}$": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 255
+ }
+ },
+ "additionalProperties": false
+ },
+ "system": {
+ "type": "object",
+ "properties": {
+ "aggregation": {
+ "type": "string",
+ "enum": [
+ "FIRST",
+ "LAST",
+ "COUNT",
+ "MAX",
+ "MIN",
+ "MEDIAN",
+ "MEAN",
+ "SUM",
+ "STD_DEV",
+ "NONE"
+ ]
+ },
+ "childAttributes": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
+ },
+ "mode": {
+ "type": "string",
+ "enum": [
+ "all",
+ "whitelist",
+ "blacklist"
+ ]
+ },
+ "deviceIds": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "pattern": "^[A-Fa-f\\d]{24}$"
+ },
+ "maxItems": 1000
+ },
+ "deviceTags": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
+ },
+ "value": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 255
+ }
+ },
+ "additionalProperties": false
+ },
+ "maxItems": 100
+ }
+ },
+ "required": [
+ "name",
+ "mode"
+ ],
+ "additionalProperties": false
+ },
+ "maxItems": 256
+ }
+ },
+ "additionalProperties": false
}
},
"required": [
"name",
"dataType"
@@ -93,11 +182,12 @@
"enum": [
"standalone",
"gateway",
"peripheral",
"floating",
- "edgeCompute"
+ "edgeCompute",
+ "system"
]
},
"gatewayId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
@@ -119,10 +209,29 @@
0,
null
]
}
}
+ },
+ "parentId": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[A-Fa-f\\d]{24}$"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "systemInterval": {
+ "type": "integer",
+ "minimum": 5,
+ "maximum": 3600
+ },
+ "keepDuplicates": {
+ "type": "boolean"
}
}
}
},
"count": {
@@ -165,11 +274,12 @@
"enum": [
"standalone",
"gateway",
"peripheral",
"floating",
- "edgeCompute"
+ "edgeCompute",
+ "system"
]
},
"tagFilter": {
"title": "Device Tag Filter",
"description": "Array of Tags for filtering devices. Tag keys and tag values are optional.",
@@ -188,8 +298,19 @@
}
},
"additionalProperties": false
},
"maxItems": 100
+ },
+ "parentId": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[A-Fa-f\\d]{24}$"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
}
}
\ No newline at end of file