schemas/devicePost.json in losant_rest-1.8.9 vs schemas/devicePost.json in losant_rest-1.9.0
- old
+ new
@@ -49,10 +49,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"
@@ -66,15 +155,35 @@
"enum": [
"standalone",
"gateway",
"peripheral",
"floating",
- "edgeCompute"
+ "edgeCompute",
+ "system"
]
},
"gatewayId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
+ },
+ "parentId": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[A-Fa-f\\d]{24}$"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "systemInterval": {
+ "type": "integer",
+ "minimum": 5,
+ "maximum": 3600
+ },
+ "keepDuplicates": {
+ "type": "boolean"
}
},
"additionalProperties": false,
"required": [
"name"
\ No newline at end of file