losant_rest 1.9.3 → 1.10.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +17405 -2766
  3. data/docs/application.md +85 -0
  4. data/docs/applicationApiTokens.md +1 -1
  5. data/docs/applicationTemplate.md +46 -0
  6. data/docs/applicationTemplates.md +76 -1
  7. data/docs/device.md +7 -3
  8. data/docs/devices.md +92 -4
  9. data/docs/experienceEndpoints.md +1 -0
  10. data/docs/file.md +4 -4
  11. data/docs/flow.md +94 -1
  12. data/docs/flowVersion.md +96 -1
  13. data/docs/me.md +0 -36
  14. data/lib/losant_rest.rb +1 -0
  15. data/lib/losant_rest/application.rb +48 -0
  16. data/lib/losant_rest/application_api_tokens.rb +1 -1
  17. data/lib/losant_rest/application_template.rb +79 -0
  18. data/lib/losant_rest/application_templates.rb +89 -1
  19. data/lib/losant_rest/client.rb +6 -2
  20. data/lib/losant_rest/device.rb +11 -3
  21. data/lib/losant_rest/devices.rb +103 -3
  22. data/lib/losant_rest/experience_endpoints.rb +2 -0
  23. data/lib/losant_rest/file.rb +3 -3
  24. data/lib/losant_rest/flow.rb +115 -1
  25. data/lib/losant_rest/flow_version.rb +115 -1
  26. data/lib/losant_rest/me.rb +0 -41
  27. data/lib/losant_rest/version.rb +1 -1
  28. data/schemas/advancedDeviceQuery.json +117 -0
  29. data/schemas/advancedEventQuery.json +205 -0
  30. data/schemas/advancedQuery.json +34 -3
  31. data/schemas/application.json +13 -0
  32. data/schemas/applicationApiTokenPost.json +9 -1
  33. data/schemas/applicationApplyTemplatePatch.json +19 -0
  34. data/schemas/applicationCreationByTemplateResult.json +13 -0
  35. data/schemas/applicationPatch.json +5 -0
  36. data/schemas/applicationPost.json +13 -0
  37. data/schemas/applicationTemplate.json +32 -0
  38. data/schemas/applicationTemplateCategories.json +43 -0
  39. data/schemas/applicationTemplateCategory.json +23 -0
  40. data/schemas/applicationTemplates.json +44 -0
  41. data/schemas/applications.json +13 -0
  42. data/schemas/changePassword.json +2 -2
  43. data/schemas/dashboard.json +1285 -145
  44. data/schemas/dashboardPatch.json +1285 -145
  45. data/schemas/dashboardPost.json +1285 -145
  46. data/schemas/dashboards.json +1285 -145
  47. data/schemas/dataExport.json +142 -0
  48. data/schemas/dataTableRowsExport.json +34 -3
  49. data/schemas/device.json +16 -3
  50. data/schemas/devicePatch.json +16 -3
  51. data/schemas/devicePost.json +16 -3
  52. data/schemas/deviceRecipe.json +16 -3
  53. data/schemas/deviceRecipePatch.json +16 -3
  54. data/schemas/deviceRecipePost.json +16 -3
  55. data/schemas/deviceRecipes.json +16 -3
  56. data/schemas/devices.json +16 -3
  57. data/schemas/devicesDataRemoved.json +12 -0
  58. data/schemas/devicesDeletePost.json +1034 -0
  59. data/schemas/devicesDeleted.json +12 -0
  60. data/schemas/devicesExportPost.json +1035 -0
  61. data/schemas/devicesPatch.json +1773 -7
  62. data/schemas/devicesRemoveDataPost.json +1056 -0
  63. data/schemas/devicesUpdated.json +18 -0
  64. data/schemas/eventPost.json +22 -0
  65. data/schemas/eventsExport.json +205 -0
  66. data/schemas/experienceDomain.json +1 -1
  67. data/schemas/experienceDomainPatch.json +1 -1
  68. data/schemas/experienceDomainPost.json +1 -1
  69. data/schemas/experienceDomains.json +1 -1
  70. data/schemas/experienceGroup.json +7 -0
  71. data/schemas/experienceGroupPatch.json +7 -0
  72. data/schemas/experienceGroupPost.json +7 -0
  73. data/schemas/experienceGroups.json +7 -0
  74. data/schemas/experienceLinkedResources.json +348 -3
  75. data/schemas/experienceVersion.json +1 -1
  76. data/schemas/experienceVersions.json +1 -1
  77. data/schemas/flow.json +116 -1
  78. data/schemas/flowErrors.json +87 -0
  79. data/schemas/flowPatch.json +116 -1
  80. data/schemas/flowPost.json +116 -1
  81. data/schemas/flowStats.json +54 -0
  82. data/schemas/flowVersion.json +232 -2
  83. data/schemas/flowVersionPost.json +116 -1
  84. data/schemas/flowVersions.json +232 -2
  85. data/schemas/flows.json +116 -1
  86. data/schemas/flowsImportPost.json +232 -2
  87. data/schemas/flowsImportResult.json +348 -3
  88. data/schemas/githubLogin.json +15 -4
  89. data/schemas/me.json +0 -3
  90. data/schemas/mePatch.json +2 -2
  91. data/schemas/multiDeviceCommand.json +1019 -0
  92. data/schemas/notebook.json +99 -2
  93. data/schemas/notebookPatch.json +99 -2
  94. data/schemas/notebookPost.json +99 -2
  95. data/schemas/notebooks.json +99 -2
  96. data/schemas/org.json +1 -1
  97. data/schemas/orgInviteInfo.json +3 -0
  98. data/schemas/orgInvitePost.json +3 -0
  99. data/schemas/orgInvites.json +3 -0
  100. data/schemas/orgPatch.json +1 -1
  101. data/schemas/orgPost.json +0 -9
  102. data/schemas/orgs.json +1 -1
  103. data/schemas/passwordResetFinish.json +2 -2
  104. data/schemas/samlResponse.json +1 -1
  105. data/schemas/templateKeywords.json +14 -0
  106. data/schemas/timeSeriesData.json +101 -12
  107. data/schemas/timeSeriesQuery.json +101 -12
  108. data/schemas/userCredentials.json +13 -3
  109. data/schemas/userPost.json +21 -7
  110. metadata +19 -5
@@ -156,18 +156,107 @@
156
156
  "maxLength": 255
157
157
  },
158
158
  "aggregation": {
159
- "type": "string",
160
- "enum": [
161
- "FIRST",
162
- "LAST",
163
- "COUNT",
164
- "MAX",
165
- "MIN",
166
- "MEDIAN",
167
- "MEAN",
168
- "SUM",
169
- "STD_DEV",
170
- "NONE"
159
+ "oneOf": [
160
+ {
161
+ "oneOf": [
162
+ {
163
+ "type": "string",
164
+ "enum": [
165
+ "FIRST",
166
+ "LAST",
167
+ "COUNT",
168
+ "MAX",
169
+ "MIN",
170
+ "MEDIAN",
171
+ "MEAN",
172
+ "SUM",
173
+ "STD_DEV"
174
+ ]
175
+ },
176
+ {
177
+ "type": "string",
178
+ "enum": [
179
+ "NONE"
180
+ ]
181
+ }
182
+ ]
183
+ },
184
+ {
185
+ "type": "object",
186
+ "properties": {
187
+ "type": {
188
+ "oneOf": [
189
+ {
190
+ "type": "string",
191
+ "enum": [
192
+ "FIRST",
193
+ "LAST",
194
+ "COUNT",
195
+ "MAX",
196
+ "MIN",
197
+ "MEDIAN",
198
+ "MEAN",
199
+ "SUM",
200
+ "STD_DEV"
201
+ ]
202
+ },
203
+ {
204
+ "type": "string",
205
+ "enum": [
206
+ "NONE"
207
+ ]
208
+ }
209
+ ]
210
+ },
211
+ "options": {
212
+ "type": "object",
213
+ "additionalProperties": false
214
+ }
215
+ },
216
+ "additionalProperties": false,
217
+ "required": [
218
+ "type"
219
+ ]
220
+ },
221
+ {
222
+ "type": "object",
223
+ "properties": {
224
+ "type": {
225
+ "type": "string",
226
+ "enum": [
227
+ "TIMEATVALUE"
228
+ ]
229
+ },
230
+ "options": {
231
+ "type": "object",
232
+ "properties": {
233
+ "value": {
234
+ "oneOf": [
235
+ {
236
+ "type": "string",
237
+ "maxLength": 255
238
+ },
239
+ {
240
+ "type": "number"
241
+ },
242
+ {
243
+ "type": "boolean"
244
+ }
245
+ ]
246
+ }
247
+ },
248
+ "additionalProperties": false,
249
+ "required": [
250
+ "value"
251
+ ]
252
+ }
253
+ },
254
+ "additionalProperties": false,
255
+ "required": [
256
+ "type",
257
+ "options"
258
+ ]
259
+ }
171
260
  ]
172
261
  },
173
262
  "color": {
@@ -208,6 +297,10 @@
208
297
  "type": "string",
209
298
  "maxLength": 255
210
299
  },
300
+ "expression": {
301
+ "type": "string",
302
+ "maxLength": 255
303
+ },
211
304
  "yAxisLabel": {
212
305
  "type": "string",
213
306
  "maxLength": 255
@@ -327,18 +420,107 @@
327
420
  "maxLength": 255
328
421
  },
329
422
  "aggregation": {
330
- "type": "string",
331
- "enum": [
332
- "FIRST",
333
- "LAST",
334
- "COUNT",
335
- "MAX",
336
- "MIN",
337
- "MEDIAN",
338
- "MEAN",
339
- "SUM",
340
- "STD_DEV",
341
- "NONE"
423
+ "oneOf": [
424
+ {
425
+ "oneOf": [
426
+ {
427
+ "type": "string",
428
+ "enum": [
429
+ "FIRST",
430
+ "LAST",
431
+ "COUNT",
432
+ "MAX",
433
+ "MIN",
434
+ "MEDIAN",
435
+ "MEAN",
436
+ "SUM",
437
+ "STD_DEV"
438
+ ]
439
+ },
440
+ {
441
+ "type": "string",
442
+ "enum": [
443
+ "NONE"
444
+ ]
445
+ }
446
+ ]
447
+ },
448
+ {
449
+ "type": "object",
450
+ "properties": {
451
+ "type": {
452
+ "oneOf": [
453
+ {
454
+ "type": "string",
455
+ "enum": [
456
+ "FIRST",
457
+ "LAST",
458
+ "COUNT",
459
+ "MAX",
460
+ "MIN",
461
+ "MEDIAN",
462
+ "MEAN",
463
+ "SUM",
464
+ "STD_DEV"
465
+ ]
466
+ },
467
+ {
468
+ "type": "string",
469
+ "enum": [
470
+ "NONE"
471
+ ]
472
+ }
473
+ ]
474
+ },
475
+ "options": {
476
+ "type": "object",
477
+ "additionalProperties": false
478
+ }
479
+ },
480
+ "additionalProperties": false,
481
+ "required": [
482
+ "type"
483
+ ]
484
+ },
485
+ {
486
+ "type": "object",
487
+ "properties": {
488
+ "type": {
489
+ "type": "string",
490
+ "enum": [
491
+ "TIMEATVALUE"
492
+ ]
493
+ },
494
+ "options": {
495
+ "type": "object",
496
+ "properties": {
497
+ "value": {
498
+ "oneOf": [
499
+ {
500
+ "type": "string",
501
+ "maxLength": 255
502
+ },
503
+ {
504
+ "type": "number"
505
+ },
506
+ {
507
+ "type": "boolean"
508
+ }
509
+ ]
510
+ }
511
+ },
512
+ "additionalProperties": false,
513
+ "required": [
514
+ "value"
515
+ ]
516
+ }
517
+ },
518
+ "additionalProperties": false,
519
+ "required": [
520
+ "type",
521
+ "options"
522
+ ]
523
+ }
342
524
  ]
343
525
  },
344
526
  "deviceIds": {
@@ -411,18 +593,107 @@
411
593
  "maxLength": 255
412
594
  },
413
595
  "aggregation": {
414
- "type": "string",
415
- "enum": [
416
- "FIRST",
417
- "LAST",
418
- "COUNT",
419
- "MAX",
420
- "MIN",
421
- "MEDIAN",
422
- "MEAN",
423
- "SUM",
424
- "STD_DEV",
425
- "NONE"
596
+ "oneOf": [
597
+ {
598
+ "oneOf": [
599
+ {
600
+ "type": "string",
601
+ "enum": [
602
+ "FIRST",
603
+ "LAST",
604
+ "COUNT",
605
+ "MAX",
606
+ "MIN",
607
+ "MEDIAN",
608
+ "MEAN",
609
+ "SUM",
610
+ "STD_DEV"
611
+ ]
612
+ },
613
+ {
614
+ "type": "string",
615
+ "enum": [
616
+ "NONE"
617
+ ]
618
+ }
619
+ ]
620
+ },
621
+ {
622
+ "type": "object",
623
+ "properties": {
624
+ "type": {
625
+ "oneOf": [
626
+ {
627
+ "type": "string",
628
+ "enum": [
629
+ "FIRST",
630
+ "LAST",
631
+ "COUNT",
632
+ "MAX",
633
+ "MIN",
634
+ "MEDIAN",
635
+ "MEAN",
636
+ "SUM",
637
+ "STD_DEV"
638
+ ]
639
+ },
640
+ {
641
+ "type": "string",
642
+ "enum": [
643
+ "NONE"
644
+ ]
645
+ }
646
+ ]
647
+ },
648
+ "options": {
649
+ "type": "object",
650
+ "additionalProperties": false
651
+ }
652
+ },
653
+ "additionalProperties": false,
654
+ "required": [
655
+ "type"
656
+ ]
657
+ },
658
+ {
659
+ "type": "object",
660
+ "properties": {
661
+ "type": {
662
+ "type": "string",
663
+ "enum": [
664
+ "TIMEATVALUE"
665
+ ]
666
+ },
667
+ "options": {
668
+ "type": "object",
669
+ "properties": {
670
+ "value": {
671
+ "oneOf": [
672
+ {
673
+ "type": "string",
674
+ "maxLength": 255
675
+ },
676
+ {
677
+ "type": "number"
678
+ },
679
+ {
680
+ "type": "boolean"
681
+ }
682
+ ]
683
+ }
684
+ },
685
+ "additionalProperties": false,
686
+ "required": [
687
+ "value"
688
+ ]
689
+ }
690
+ },
691
+ "additionalProperties": false,
692
+ "required": [
693
+ "type",
694
+ "options"
695
+ ]
696
+ }
426
697
  ]
427
698
  },
428
699
  "deviceIds": {
@@ -1314,18 +1585,107 @@
1314
1585
  "maxLength": 255
1315
1586
  },
1316
1587
  "aggregation": {
1317
- "type": "string",
1318
- "enum": [
1319
- "FIRST",
1320
- "LAST",
1321
- "COUNT",
1322
- "MAX",
1323
- "MIN",
1324
- "MEDIAN",
1325
- "MEAN",
1326
- "SUM",
1327
- "STD_DEV",
1328
- "NONE"
1588
+ "oneOf": [
1589
+ {
1590
+ "oneOf": [
1591
+ {
1592
+ "type": "string",
1593
+ "enum": [
1594
+ "FIRST",
1595
+ "LAST",
1596
+ "COUNT",
1597
+ "MAX",
1598
+ "MIN",
1599
+ "MEDIAN",
1600
+ "MEAN",
1601
+ "SUM",
1602
+ "STD_DEV"
1603
+ ]
1604
+ },
1605
+ {
1606
+ "type": "string",
1607
+ "enum": [
1608
+ "NONE"
1609
+ ]
1610
+ }
1611
+ ]
1612
+ },
1613
+ {
1614
+ "type": "object",
1615
+ "properties": {
1616
+ "type": {
1617
+ "oneOf": [
1618
+ {
1619
+ "type": "string",
1620
+ "enum": [
1621
+ "FIRST",
1622
+ "LAST",
1623
+ "COUNT",
1624
+ "MAX",
1625
+ "MIN",
1626
+ "MEDIAN",
1627
+ "MEAN",
1628
+ "SUM",
1629
+ "STD_DEV"
1630
+ ]
1631
+ },
1632
+ {
1633
+ "type": "string",
1634
+ "enum": [
1635
+ "NONE"
1636
+ ]
1637
+ }
1638
+ ]
1639
+ },
1640
+ "options": {
1641
+ "type": "object",
1642
+ "additionalProperties": false
1643
+ }
1644
+ },
1645
+ "additionalProperties": false,
1646
+ "required": [
1647
+ "type"
1648
+ ]
1649
+ },
1650
+ {
1651
+ "type": "object",
1652
+ "properties": {
1653
+ "type": {
1654
+ "type": "string",
1655
+ "enum": [
1656
+ "TIMEATVALUE"
1657
+ ]
1658
+ },
1659
+ "options": {
1660
+ "type": "object",
1661
+ "properties": {
1662
+ "value": {
1663
+ "oneOf": [
1664
+ {
1665
+ "type": "string",
1666
+ "maxLength": 255
1667
+ },
1668
+ {
1669
+ "type": "number"
1670
+ },
1671
+ {
1672
+ "type": "boolean"
1673
+ }
1674
+ ]
1675
+ }
1676
+ },
1677
+ "additionalProperties": false,
1678
+ "required": [
1679
+ "value"
1680
+ ]
1681
+ }
1682
+ },
1683
+ "additionalProperties": false,
1684
+ "required": [
1685
+ "type",
1686
+ "options"
1687
+ ]
1688
+ }
1329
1689
  ]
1330
1690
  },
1331
1691
  "color": {
@@ -1366,6 +1726,10 @@
1366
1726
  "type": "string",
1367
1727
  "maxLength": 255
1368
1728
  },
1729
+ "expression": {
1730
+ "type": "string",
1731
+ "maxLength": 255
1732
+ },
1369
1733
  "yAxisLabel": {
1370
1734
  "type": "string",
1371
1735
  "maxLength": 255
@@ -1521,18 +1885,107 @@
1521
1885
  "maxLength": 255
1522
1886
  },
1523
1887
  "aggregation": {
1524
- "type": "string",
1525
- "enum": [
1526
- "FIRST",
1527
- "LAST",
1528
- "COUNT",
1529
- "MAX",
1530
- "MIN",
1531
- "MEDIAN",
1532
- "MEAN",
1533
- "SUM",
1534
- "STD_DEV",
1535
- "NONE"
1888
+ "oneOf": [
1889
+ {
1890
+ "oneOf": [
1891
+ {
1892
+ "type": "string",
1893
+ "enum": [
1894
+ "FIRST",
1895
+ "LAST",
1896
+ "COUNT",
1897
+ "MAX",
1898
+ "MIN",
1899
+ "MEDIAN",
1900
+ "MEAN",
1901
+ "SUM",
1902
+ "STD_DEV"
1903
+ ]
1904
+ },
1905
+ {
1906
+ "type": "string",
1907
+ "enum": [
1908
+ "NONE"
1909
+ ]
1910
+ }
1911
+ ]
1912
+ },
1913
+ {
1914
+ "type": "object",
1915
+ "properties": {
1916
+ "type": {
1917
+ "oneOf": [
1918
+ {
1919
+ "type": "string",
1920
+ "enum": [
1921
+ "FIRST",
1922
+ "LAST",
1923
+ "COUNT",
1924
+ "MAX",
1925
+ "MIN",
1926
+ "MEDIAN",
1927
+ "MEAN",
1928
+ "SUM",
1929
+ "STD_DEV"
1930
+ ]
1931
+ },
1932
+ {
1933
+ "type": "string",
1934
+ "enum": [
1935
+ "NONE"
1936
+ ]
1937
+ }
1938
+ ]
1939
+ },
1940
+ "options": {
1941
+ "type": "object",
1942
+ "additionalProperties": false
1943
+ }
1944
+ },
1945
+ "additionalProperties": false,
1946
+ "required": [
1947
+ "type"
1948
+ ]
1949
+ },
1950
+ {
1951
+ "type": "object",
1952
+ "properties": {
1953
+ "type": {
1954
+ "type": "string",
1955
+ "enum": [
1956
+ "TIMEATVALUE"
1957
+ ]
1958
+ },
1959
+ "options": {
1960
+ "type": "object",
1961
+ "properties": {
1962
+ "value": {
1963
+ "oneOf": [
1964
+ {
1965
+ "type": "string",
1966
+ "maxLength": 255
1967
+ },
1968
+ {
1969
+ "type": "number"
1970
+ },
1971
+ {
1972
+ "type": "boolean"
1973
+ }
1974
+ ]
1975
+ }
1976
+ },
1977
+ "additionalProperties": false,
1978
+ "required": [
1979
+ "value"
1980
+ ]
1981
+ }
1982
+ },
1983
+ "additionalProperties": false,
1984
+ "required": [
1985
+ "type",
1986
+ "options"
1987
+ ]
1988
+ }
1536
1989
  ]
1537
1990
  },
1538
1991
  "color": {
@@ -1772,12 +2225,30 @@
1772
2225
  "type": "integer",
1773
2226
  "minimum": 0
1774
2227
  },
2228
+ "locationTagKey": {
2229
+ "oneOf": [
2230
+ {
2231
+ "type": "string",
2232
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
2233
+ },
2234
+ {
2235
+ "type": "string",
2236
+ "minLength": 4,
2237
+ "maxLength": 255,
2238
+ "pattern": ".*{{.+}}.*"
2239
+ }
2240
+ ]
2241
+ },
1775
2242
  "mapStyle": {
1776
2243
  "type": "string",
1777
2244
  "enum": [
1778
2245
  "normal",
1779
2246
  "satellite"
1780
2247
  ]
2248
+ },
2249
+ "query": {
2250
+ "type": "string",
2251
+ "maxLength": 32767
1781
2252
  }
1782
2253
  },
1783
2254
  "additionalProperties": false
@@ -1903,6 +2374,21 @@
1903
2374
  "imageUrl": {
1904
2375
  "type": "string",
1905
2376
  "maxLength": 32767
2377
+ },
2378
+ "imageSource": {
2379
+ "type": "string",
2380
+ "enum": [
2381
+ "static",
2382
+ "attribute"
2383
+ ]
2384
+ },
2385
+ "deviceId": {
2386
+ "type": "string",
2387
+ "maxLength": 255
2388
+ },
2389
+ "attribute": {
2390
+ "type": "string",
2391
+ "maxLength": 255
1906
2392
  }
1907
2393
  },
1908
2394
  "additionalProperties": false
@@ -1970,7 +2456,7 @@
1970
2456
  },
1971
2457
  "segments": {
1972
2458
  "type": "array",
1973
- "maxItems": 100,
2459
+ "maxItems": 300,
1974
2460
  "items": {
1975
2461
  "oneOf": [
1976
2462
  {
@@ -1991,18 +2477,107 @@
1991
2477
  "maxLength": 255
1992
2478
  },
1993
2479
  "aggregation": {
1994
- "type": "string",
1995
- "enum": [
1996
- "FIRST",
1997
- "LAST",
1998
- "COUNT",
1999
- "MAX",
2000
- "MIN",
2001
- "MEDIAN",
2002
- "MEAN",
2003
- "SUM",
2004
- "STD_DEV",
2005
- "NONE"
2480
+ "oneOf": [
2481
+ {
2482
+ "oneOf": [
2483
+ {
2484
+ "type": "string",
2485
+ "enum": [
2486
+ "FIRST",
2487
+ "LAST",
2488
+ "COUNT",
2489
+ "MAX",
2490
+ "MIN",
2491
+ "MEDIAN",
2492
+ "MEAN",
2493
+ "SUM",
2494
+ "STD_DEV"
2495
+ ]
2496
+ },
2497
+ {
2498
+ "type": "string",
2499
+ "enum": [
2500
+ "NONE"
2501
+ ]
2502
+ }
2503
+ ]
2504
+ },
2505
+ {
2506
+ "type": "object",
2507
+ "properties": {
2508
+ "type": {
2509
+ "oneOf": [
2510
+ {
2511
+ "type": "string",
2512
+ "enum": [
2513
+ "FIRST",
2514
+ "LAST",
2515
+ "COUNT",
2516
+ "MAX",
2517
+ "MIN",
2518
+ "MEDIAN",
2519
+ "MEAN",
2520
+ "SUM",
2521
+ "STD_DEV"
2522
+ ]
2523
+ },
2524
+ {
2525
+ "type": "string",
2526
+ "enum": [
2527
+ "NONE"
2528
+ ]
2529
+ }
2530
+ ]
2531
+ },
2532
+ "options": {
2533
+ "type": "object",
2534
+ "additionalProperties": false
2535
+ }
2536
+ },
2537
+ "additionalProperties": false,
2538
+ "required": [
2539
+ "type"
2540
+ ]
2541
+ },
2542
+ {
2543
+ "type": "object",
2544
+ "properties": {
2545
+ "type": {
2546
+ "type": "string",
2547
+ "enum": [
2548
+ "TIMEATVALUE"
2549
+ ]
2550
+ },
2551
+ "options": {
2552
+ "type": "object",
2553
+ "properties": {
2554
+ "value": {
2555
+ "oneOf": [
2556
+ {
2557
+ "type": "string",
2558
+ "maxLength": 255
2559
+ },
2560
+ {
2561
+ "type": "number"
2562
+ },
2563
+ {
2564
+ "type": "boolean"
2565
+ }
2566
+ ]
2567
+ }
2568
+ },
2569
+ "additionalProperties": false,
2570
+ "required": [
2571
+ "value"
2572
+ ]
2573
+ }
2574
+ },
2575
+ "additionalProperties": false,
2576
+ "required": [
2577
+ "type",
2578
+ "options"
2579
+ ]
2580
+ }
2006
2581
  ]
2007
2582
  },
2008
2583
  "deviceIds": {
@@ -2506,18 +3081,107 @@
2506
3081
  "maxLength": 255
2507
3082
  },
2508
3083
  "aggregation": {
2509
- "type": "string",
2510
- "enum": [
2511
- "FIRST",
2512
- "LAST",
2513
- "COUNT",
2514
- "MAX",
2515
- "MIN",
2516
- "MEDIAN",
2517
- "MEAN",
2518
- "SUM",
2519
- "STD_DEV",
2520
- "NONE"
3084
+ "oneOf": [
3085
+ {
3086
+ "oneOf": [
3087
+ {
3088
+ "type": "string",
3089
+ "enum": [
3090
+ "FIRST",
3091
+ "LAST",
3092
+ "COUNT",
3093
+ "MAX",
3094
+ "MIN",
3095
+ "MEDIAN",
3096
+ "MEAN",
3097
+ "SUM",
3098
+ "STD_DEV"
3099
+ ]
3100
+ },
3101
+ {
3102
+ "type": "string",
3103
+ "enum": [
3104
+ "NONE"
3105
+ ]
3106
+ }
3107
+ ]
3108
+ },
3109
+ {
3110
+ "type": "object",
3111
+ "properties": {
3112
+ "type": {
3113
+ "oneOf": [
3114
+ {
3115
+ "type": "string",
3116
+ "enum": [
3117
+ "FIRST",
3118
+ "LAST",
3119
+ "COUNT",
3120
+ "MAX",
3121
+ "MIN",
3122
+ "MEDIAN",
3123
+ "MEAN",
3124
+ "SUM",
3125
+ "STD_DEV"
3126
+ ]
3127
+ },
3128
+ {
3129
+ "type": "string",
3130
+ "enum": [
3131
+ "NONE"
3132
+ ]
3133
+ }
3134
+ ]
3135
+ },
3136
+ "options": {
3137
+ "type": "object",
3138
+ "additionalProperties": false
3139
+ }
3140
+ },
3141
+ "additionalProperties": false,
3142
+ "required": [
3143
+ "type"
3144
+ ]
3145
+ },
3146
+ {
3147
+ "type": "object",
3148
+ "properties": {
3149
+ "type": {
3150
+ "type": "string",
3151
+ "enum": [
3152
+ "TIMEATVALUE"
3153
+ ]
3154
+ },
3155
+ "options": {
3156
+ "type": "object",
3157
+ "properties": {
3158
+ "value": {
3159
+ "oneOf": [
3160
+ {
3161
+ "type": "string",
3162
+ "maxLength": 255
3163
+ },
3164
+ {
3165
+ "type": "number"
3166
+ },
3167
+ {
3168
+ "type": "boolean"
3169
+ }
3170
+ ]
3171
+ }
3172
+ },
3173
+ "additionalProperties": false,
3174
+ "required": [
3175
+ "value"
3176
+ ]
3177
+ }
3178
+ },
3179
+ "additionalProperties": false,
3180
+ "required": [
3181
+ "type",
3182
+ "options"
3183
+ ]
3184
+ }
2521
3185
  ]
2522
3186
  },
2523
3187
  "color": {
@@ -2558,6 +3222,10 @@
2558
3222
  "type": "string",
2559
3223
  "maxLength": 255
2560
3224
  },
3225
+ "expression": {
3226
+ "type": "string",
3227
+ "maxLength": 255
3228
+ },
2561
3229
  "yAxisLabel": {
2562
3230
  "type": "string",
2563
3231
  "maxLength": 255
@@ -2770,18 +3438,107 @@
2770
3438
  "maxLength": 255
2771
3439
  },
2772
3440
  "aggregation": {
2773
- "type": "string",
2774
- "enum": [
2775
- "FIRST",
2776
- "LAST",
2777
- "COUNT",
2778
- "MAX",
2779
- "MIN",
2780
- "MEDIAN",
2781
- "MEAN",
2782
- "SUM",
2783
- "STD_DEV",
2784
- "NONE"
3441
+ "oneOf": [
3442
+ {
3443
+ "oneOf": [
3444
+ {
3445
+ "type": "string",
3446
+ "enum": [
3447
+ "FIRST",
3448
+ "LAST",
3449
+ "COUNT",
3450
+ "MAX",
3451
+ "MIN",
3452
+ "MEDIAN",
3453
+ "MEAN",
3454
+ "SUM",
3455
+ "STD_DEV"
3456
+ ]
3457
+ },
3458
+ {
3459
+ "type": "string",
3460
+ "enum": [
3461
+ "NONE"
3462
+ ]
3463
+ }
3464
+ ]
3465
+ },
3466
+ {
3467
+ "type": "object",
3468
+ "properties": {
3469
+ "type": {
3470
+ "oneOf": [
3471
+ {
3472
+ "type": "string",
3473
+ "enum": [
3474
+ "FIRST",
3475
+ "LAST",
3476
+ "COUNT",
3477
+ "MAX",
3478
+ "MIN",
3479
+ "MEDIAN",
3480
+ "MEAN",
3481
+ "SUM",
3482
+ "STD_DEV"
3483
+ ]
3484
+ },
3485
+ {
3486
+ "type": "string",
3487
+ "enum": [
3488
+ "NONE"
3489
+ ]
3490
+ }
3491
+ ]
3492
+ },
3493
+ "options": {
3494
+ "type": "object",
3495
+ "additionalProperties": false
3496
+ }
3497
+ },
3498
+ "additionalProperties": false,
3499
+ "required": [
3500
+ "type"
3501
+ ]
3502
+ },
3503
+ {
3504
+ "type": "object",
3505
+ "properties": {
3506
+ "type": {
3507
+ "type": "string",
3508
+ "enum": [
3509
+ "TIMEATVALUE"
3510
+ ]
3511
+ },
3512
+ "options": {
3513
+ "type": "object",
3514
+ "properties": {
3515
+ "value": {
3516
+ "oneOf": [
3517
+ {
3518
+ "type": "string",
3519
+ "maxLength": 255
3520
+ },
3521
+ {
3522
+ "type": "number"
3523
+ },
3524
+ {
3525
+ "type": "boolean"
3526
+ }
3527
+ ]
3528
+ }
3529
+ },
3530
+ "additionalProperties": false,
3531
+ "required": [
3532
+ "value"
3533
+ ]
3534
+ }
3535
+ },
3536
+ "additionalProperties": false,
3537
+ "required": [
3538
+ "type",
3539
+ "options"
3540
+ ]
3541
+ }
2785
3542
  ]
2786
3543
  },
2787
3544
  "deviceIds": {
@@ -2915,18 +3672,107 @@
2915
3672
  "maxLength": 255
2916
3673
  },
2917
3674
  "aggregation": {
2918
- "type": "string",
2919
- "enum": [
2920
- "FIRST",
2921
- "LAST",
2922
- "COUNT",
2923
- "MAX",
2924
- "MIN",
2925
- "MEDIAN",
2926
- "MEAN",
2927
- "SUM",
2928
- "STD_DEV",
2929
- "NONE"
3675
+ "oneOf": [
3676
+ {
3677
+ "oneOf": [
3678
+ {
3679
+ "type": "string",
3680
+ "enum": [
3681
+ "FIRST",
3682
+ "LAST",
3683
+ "COUNT",
3684
+ "MAX",
3685
+ "MIN",
3686
+ "MEDIAN",
3687
+ "MEAN",
3688
+ "SUM",
3689
+ "STD_DEV"
3690
+ ]
3691
+ },
3692
+ {
3693
+ "type": "string",
3694
+ "enum": [
3695
+ "NONE"
3696
+ ]
3697
+ }
3698
+ ]
3699
+ },
3700
+ {
3701
+ "type": "object",
3702
+ "properties": {
3703
+ "type": {
3704
+ "oneOf": [
3705
+ {
3706
+ "type": "string",
3707
+ "enum": [
3708
+ "FIRST",
3709
+ "LAST",
3710
+ "COUNT",
3711
+ "MAX",
3712
+ "MIN",
3713
+ "MEDIAN",
3714
+ "MEAN",
3715
+ "SUM",
3716
+ "STD_DEV"
3717
+ ]
3718
+ },
3719
+ {
3720
+ "type": "string",
3721
+ "enum": [
3722
+ "NONE"
3723
+ ]
3724
+ }
3725
+ ]
3726
+ },
3727
+ "options": {
3728
+ "type": "object",
3729
+ "additionalProperties": false
3730
+ }
3731
+ },
3732
+ "additionalProperties": false,
3733
+ "required": [
3734
+ "type"
3735
+ ]
3736
+ },
3737
+ {
3738
+ "type": "object",
3739
+ "properties": {
3740
+ "type": {
3741
+ "type": "string",
3742
+ "enum": [
3743
+ "TIMEATVALUE"
3744
+ ]
3745
+ },
3746
+ "options": {
3747
+ "type": "object",
3748
+ "properties": {
3749
+ "value": {
3750
+ "oneOf": [
3751
+ {
3752
+ "type": "string",
3753
+ "maxLength": 255
3754
+ },
3755
+ {
3756
+ "type": "number"
3757
+ },
3758
+ {
3759
+ "type": "boolean"
3760
+ }
3761
+ ]
3762
+ }
3763
+ },
3764
+ "additionalProperties": false,
3765
+ "required": [
3766
+ "value"
3767
+ ]
3768
+ }
3769
+ },
3770
+ "additionalProperties": false,
3771
+ "required": [
3772
+ "type",
3773
+ "options"
3774
+ ]
3775
+ }
2930
3776
  ]
2931
3777
  },
2932
3778
  "deviceIds": {
@@ -3015,18 +3861,107 @@
3015
3861
  "maxLength": 255
3016
3862
  },
3017
3863
  "aggregation": {
3018
- "type": "string",
3019
- "enum": [
3020
- "FIRST",
3021
- "LAST",
3022
- "COUNT",
3023
- "MAX",
3024
- "MIN",
3025
- "MEDIAN",
3026
- "MEAN",
3027
- "SUM",
3028
- "STD_DEV",
3029
- "NONE"
3864
+ "oneOf": [
3865
+ {
3866
+ "oneOf": [
3867
+ {
3868
+ "type": "string",
3869
+ "enum": [
3870
+ "FIRST",
3871
+ "LAST",
3872
+ "COUNT",
3873
+ "MAX",
3874
+ "MIN",
3875
+ "MEDIAN",
3876
+ "MEAN",
3877
+ "SUM",
3878
+ "STD_DEV"
3879
+ ]
3880
+ },
3881
+ {
3882
+ "type": "string",
3883
+ "enum": [
3884
+ "NONE"
3885
+ ]
3886
+ }
3887
+ ]
3888
+ },
3889
+ {
3890
+ "type": "object",
3891
+ "properties": {
3892
+ "type": {
3893
+ "oneOf": [
3894
+ {
3895
+ "type": "string",
3896
+ "enum": [
3897
+ "FIRST",
3898
+ "LAST",
3899
+ "COUNT",
3900
+ "MAX",
3901
+ "MIN",
3902
+ "MEDIAN",
3903
+ "MEAN",
3904
+ "SUM",
3905
+ "STD_DEV"
3906
+ ]
3907
+ },
3908
+ {
3909
+ "type": "string",
3910
+ "enum": [
3911
+ "NONE"
3912
+ ]
3913
+ }
3914
+ ]
3915
+ },
3916
+ "options": {
3917
+ "type": "object",
3918
+ "additionalProperties": false
3919
+ }
3920
+ },
3921
+ "additionalProperties": false,
3922
+ "required": [
3923
+ "type"
3924
+ ]
3925
+ },
3926
+ {
3927
+ "type": "object",
3928
+ "properties": {
3929
+ "type": {
3930
+ "type": "string",
3931
+ "enum": [
3932
+ "TIMEATVALUE"
3933
+ ]
3934
+ },
3935
+ "options": {
3936
+ "type": "object",
3937
+ "properties": {
3938
+ "value": {
3939
+ "oneOf": [
3940
+ {
3941
+ "type": "string",
3942
+ "maxLength": 255
3943
+ },
3944
+ {
3945
+ "type": "number"
3946
+ },
3947
+ {
3948
+ "type": "boolean"
3949
+ }
3950
+ ]
3951
+ }
3952
+ },
3953
+ "additionalProperties": false,
3954
+ "required": [
3955
+ "value"
3956
+ ]
3957
+ }
3958
+ },
3959
+ "additionalProperties": false,
3960
+ "required": [
3961
+ "type",
3962
+ "options"
3963
+ ]
3964
+ }
3030
3965
  ]
3031
3966
  },
3032
3967
  "deviceIds": {
@@ -3116,18 +4051,107 @@
3116
4051
  "maxLength": 255
3117
4052
  },
3118
4053
  "aggregation": {
3119
- "type": "string",
3120
- "enum": [
3121
- "FIRST",
3122
- "LAST",
3123
- "COUNT",
3124
- "MAX",
3125
- "MIN",
3126
- "MEDIAN",
3127
- "MEAN",
3128
- "SUM",
3129
- "STD_DEV",
3130
- "NONE"
4054
+ "oneOf": [
4055
+ {
4056
+ "oneOf": [
4057
+ {
4058
+ "type": "string",
4059
+ "enum": [
4060
+ "FIRST",
4061
+ "LAST",
4062
+ "COUNT",
4063
+ "MAX",
4064
+ "MIN",
4065
+ "MEDIAN",
4066
+ "MEAN",
4067
+ "SUM",
4068
+ "STD_DEV"
4069
+ ]
4070
+ },
4071
+ {
4072
+ "type": "string",
4073
+ "enum": [
4074
+ "NONE"
4075
+ ]
4076
+ }
4077
+ ]
4078
+ },
4079
+ {
4080
+ "type": "object",
4081
+ "properties": {
4082
+ "type": {
4083
+ "oneOf": [
4084
+ {
4085
+ "type": "string",
4086
+ "enum": [
4087
+ "FIRST",
4088
+ "LAST",
4089
+ "COUNT",
4090
+ "MAX",
4091
+ "MIN",
4092
+ "MEDIAN",
4093
+ "MEAN",
4094
+ "SUM",
4095
+ "STD_DEV"
4096
+ ]
4097
+ },
4098
+ {
4099
+ "type": "string",
4100
+ "enum": [
4101
+ "NONE"
4102
+ ]
4103
+ }
4104
+ ]
4105
+ },
4106
+ "options": {
4107
+ "type": "object",
4108
+ "additionalProperties": false
4109
+ }
4110
+ },
4111
+ "additionalProperties": false,
4112
+ "required": [
4113
+ "type"
4114
+ ]
4115
+ },
4116
+ {
4117
+ "type": "object",
4118
+ "properties": {
4119
+ "type": {
4120
+ "type": "string",
4121
+ "enum": [
4122
+ "TIMEATVALUE"
4123
+ ]
4124
+ },
4125
+ "options": {
4126
+ "type": "object",
4127
+ "properties": {
4128
+ "value": {
4129
+ "oneOf": [
4130
+ {
4131
+ "type": "string",
4132
+ "maxLength": 255
4133
+ },
4134
+ {
4135
+ "type": "number"
4136
+ },
4137
+ {
4138
+ "type": "boolean"
4139
+ }
4140
+ ]
4141
+ }
4142
+ },
4143
+ "additionalProperties": false,
4144
+ "required": [
4145
+ "value"
4146
+ ]
4147
+ }
4148
+ },
4149
+ "additionalProperties": false,
4150
+ "required": [
4151
+ "type",
4152
+ "options"
4153
+ ]
4154
+ }
3131
4155
  ]
3132
4156
  },
3133
4157
  "deviceIds": {
@@ -3486,6 +4510,20 @@
3486
4510
  "includeLines": {
3487
4511
  "type": "boolean"
3488
4512
  },
4513
+ "locationTagKey": {
4514
+ "oneOf": [
4515
+ {
4516
+ "type": "string",
4517
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
4518
+ },
4519
+ {
4520
+ "type": "string",
4521
+ "minLength": 4,
4522
+ "maxLength": 255,
4523
+ "pattern": ".*{{.+}}.*"
4524
+ }
4525
+ ]
4526
+ },
3489
4527
  "mapStyle": {
3490
4528
  "type": "string",
3491
4529
  "enum": [
@@ -3504,6 +4542,10 @@
3504
4542
  "type": "string",
3505
4543
  "maxLength": 32767
3506
4544
  },
4545
+ "query": {
4546
+ "type": "string",
4547
+ "maxLength": 32767
4548
+ },
3507
4549
  "resizedPins": {
3508
4550
  "type": "boolean"
3509
4551
  },
@@ -3669,18 +4711,107 @@
3669
4711
  "maxLength": 255
3670
4712
  },
3671
4713
  "aggregation": {
3672
- "type": "string",
3673
- "enum": [
3674
- "FIRST",
3675
- "LAST",
3676
- "COUNT",
3677
- "MAX",
3678
- "MIN",
3679
- "MEDIAN",
3680
- "MEAN",
3681
- "SUM",
3682
- "STD_DEV",
3683
- "NONE"
4714
+ "oneOf": [
4715
+ {
4716
+ "oneOf": [
4717
+ {
4718
+ "type": "string",
4719
+ "enum": [
4720
+ "FIRST",
4721
+ "LAST",
4722
+ "COUNT",
4723
+ "MAX",
4724
+ "MIN",
4725
+ "MEDIAN",
4726
+ "MEAN",
4727
+ "SUM",
4728
+ "STD_DEV"
4729
+ ]
4730
+ },
4731
+ {
4732
+ "type": "string",
4733
+ "enum": [
4734
+ "NONE"
4735
+ ]
4736
+ }
4737
+ ]
4738
+ },
4739
+ {
4740
+ "type": "object",
4741
+ "properties": {
4742
+ "type": {
4743
+ "oneOf": [
4744
+ {
4745
+ "type": "string",
4746
+ "enum": [
4747
+ "FIRST",
4748
+ "LAST",
4749
+ "COUNT",
4750
+ "MAX",
4751
+ "MIN",
4752
+ "MEDIAN",
4753
+ "MEAN",
4754
+ "SUM",
4755
+ "STD_DEV"
4756
+ ]
4757
+ },
4758
+ {
4759
+ "type": "string",
4760
+ "enum": [
4761
+ "NONE"
4762
+ ]
4763
+ }
4764
+ ]
4765
+ },
4766
+ "options": {
4767
+ "type": "object",
4768
+ "additionalProperties": false
4769
+ }
4770
+ },
4771
+ "additionalProperties": false,
4772
+ "required": [
4773
+ "type"
4774
+ ]
4775
+ },
4776
+ {
4777
+ "type": "object",
4778
+ "properties": {
4779
+ "type": {
4780
+ "type": "string",
4781
+ "enum": [
4782
+ "TIMEATVALUE"
4783
+ ]
4784
+ },
4785
+ "options": {
4786
+ "type": "object",
4787
+ "properties": {
4788
+ "value": {
4789
+ "oneOf": [
4790
+ {
4791
+ "type": "string",
4792
+ "maxLength": 255
4793
+ },
4794
+ {
4795
+ "type": "number"
4796
+ },
4797
+ {
4798
+ "type": "boolean"
4799
+ }
4800
+ ]
4801
+ }
4802
+ },
4803
+ "additionalProperties": false,
4804
+ "required": [
4805
+ "value"
4806
+ ]
4807
+ }
4808
+ },
4809
+ "additionalProperties": false,
4810
+ "required": [
4811
+ "type",
4812
+ "options"
4813
+ ]
4814
+ }
3684
4815
  ]
3685
4816
  },
3686
4817
  "color": {
@@ -3721,6 +4852,10 @@
3721
4852
  "type": "string",
3722
4853
  "maxLength": 255
3723
4854
  },
4855
+ "expression": {
4856
+ "type": "string",
4857
+ "maxLength": 255
4858
+ },
3724
4859
  "yAxisLabel": {
3725
4860
  "type": "string",
3726
4861
  "maxLength": 255
@@ -4067,6 +5202,11 @@
4067
5202
  },
4068
5203
  "includeExperience": {
4069
5204
  "type": "boolean"
5205
+ },
5206
+ "experienceVersion": {
5207
+ "type": "string",
5208
+ "minLength": 1,
5209
+ "maxLength": 255
4070
5210
  }
4071
5211
  },
4072
5212
  "additionalProperties": false