schemas/dashboardPost.json in losant_rest-1.10.0 vs schemas/dashboardPost.json in losant_rest-1.10.1

- old
+ new

@@ -162,22 +162,101 @@ "attribute": { "type": "string", "maxLength": 255 }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "color": { "type": "string", "maxLength": 64 @@ -333,22 +412,101 @@ "attribute": { "type": "string", "maxLength": 255 }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "deviceIds": { "type": "array", "maxItems": 100, @@ -417,22 +575,101 @@ "attribute": { "type": "string", "maxLength": 255 }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "deviceIds": { "type": "array", "maxItems": 100, @@ -1320,22 +1557,101 @@ "attribute": { "type": "string", "maxLength": 255 }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "color": { "type": "string", "maxLength": 64 @@ -1527,22 +1843,101 @@ "attribute": { "type": "string", "maxLength": 255 }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "color": { "type": "string", "maxLength": 64 @@ -1778,10 +2173,24 @@ }, "duration": { "type": "integer", "minimum": 0 }, + "locationTagKey": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-zA-Z_-]{1,255}$" + }, + { + "type": "string", + "minLength": 4, + "maxLength": 255, + "pattern": ".*{{.+}}.*" + } + ] + }, "mapStyle": { "type": "string", "enum": [ "normal", "satellite" @@ -1909,10 +2318,25 @@ "maxLength": 2048 }, "imageUrl": { "type": "string", "maxLength": 32767 + }, + "imageSource": { + "type": "string", + "enum": [ + "static", + "attribute" + ] + }, + "deviceId": { + "type": "string", + "maxLength": 255 + }, + "attribute": { + "type": "string", + "maxLength": 255 } }, "additionalProperties": false } }, @@ -1997,22 +2421,101 @@ "attribute": { "type": "string", "maxLength": 255 }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "deviceIds": { "type": "array", "maxItems": 100, @@ -2512,22 +3015,101 @@ "attribute": { "type": "string", "maxLength": 255 }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "color": { "type": "string", "maxLength": 64 @@ -2776,22 +3358,101 @@ "attribute": { "type": "string", "maxLength": 255 }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "deviceIds": { "type": "array", "maxItems": 100, @@ -2921,22 +3582,101 @@ "attribute": { "type": "string", "maxLength": 255 }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "deviceIds": { "type": "array", "maxItems": 100, @@ -3021,22 +3761,101 @@ "attribute": { "type": "string", "maxLength": 255 }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "deviceIds": { "type": "array", "maxItems": 100, @@ -3122,22 +3941,101 @@ "attribute": { "type": "string", "maxLength": 255 }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "deviceIds": { "type": "array", "maxItems": 100, @@ -3492,10 +4390,24 @@ "type": "boolean" }, "includeLines": { "type": "boolean" }, + "locationTagKey": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-zA-Z_-]{1,255}$" + }, + { + "type": "string", + "minLength": 4, + "maxLength": 255, + "pattern": ".*{{.+}}.*" + } + ] + }, "mapStyle": { "type": "string", "enum": [ "normal", "satellite" @@ -3675,22 +4587,101 @@ "attribute": { "type": "string", "maxLength": 255 }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "color": { "type": "string", "maxLength": 64 @@ -4073,9 +5064,14 @@ "includeEdge": { "type": "boolean" }, "includeExperience": { "type": "boolean" + }, + "experienceVersion": { + "type": "string", + "minLength": 1, + "maxLength": 255 } }, "additionalProperties": false } }, \ No newline at end of file