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
@@ -164,18 +164,107 @@
164
164
  "maxLength": 255
165
165
  },
166
166
  "aggregation": {
167
- "type": "string",
168
- "enum": [
169
- "FIRST",
170
- "LAST",
171
- "COUNT",
172
- "MAX",
173
- "MIN",
174
- "MEDIAN",
175
- "MEAN",
176
- "SUM",
177
- "STD_DEV",
178
- "NONE"
167
+ "oneOf": [
168
+ {
169
+ "oneOf": [
170
+ {
171
+ "type": "string",
172
+ "enum": [
173
+ "FIRST",
174
+ "LAST",
175
+ "COUNT",
176
+ "MAX",
177
+ "MIN",
178
+ "MEDIAN",
179
+ "MEAN",
180
+ "SUM",
181
+ "STD_DEV"
182
+ ]
183
+ },
184
+ {
185
+ "type": "string",
186
+ "enum": [
187
+ "NONE"
188
+ ]
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "type": "object",
194
+ "properties": {
195
+ "type": {
196
+ "oneOf": [
197
+ {
198
+ "type": "string",
199
+ "enum": [
200
+ "FIRST",
201
+ "LAST",
202
+ "COUNT",
203
+ "MAX",
204
+ "MIN",
205
+ "MEDIAN",
206
+ "MEAN",
207
+ "SUM",
208
+ "STD_DEV"
209
+ ]
210
+ },
211
+ {
212
+ "type": "string",
213
+ "enum": [
214
+ "NONE"
215
+ ]
216
+ }
217
+ ]
218
+ },
219
+ "options": {
220
+ "type": "object",
221
+ "additionalProperties": false
222
+ }
223
+ },
224
+ "additionalProperties": false,
225
+ "required": [
226
+ "type"
227
+ ]
228
+ },
229
+ {
230
+ "type": "object",
231
+ "properties": {
232
+ "type": {
233
+ "type": "string",
234
+ "enum": [
235
+ "TIMEATVALUE"
236
+ ]
237
+ },
238
+ "options": {
239
+ "type": "object",
240
+ "properties": {
241
+ "value": {
242
+ "oneOf": [
243
+ {
244
+ "type": "string",
245
+ "maxLength": 255
246
+ },
247
+ {
248
+ "type": "number"
249
+ },
250
+ {
251
+ "type": "boolean"
252
+ }
253
+ ]
254
+ }
255
+ },
256
+ "additionalProperties": false,
257
+ "required": [
258
+ "value"
259
+ ]
260
+ }
261
+ },
262
+ "additionalProperties": false,
263
+ "required": [
264
+ "type",
265
+ "options"
266
+ ]
267
+ }
179
268
  ]
180
269
  },
181
270
  "color": {
@@ -216,6 +305,10 @@
216
305
  "type": "string",
217
306
  "maxLength": 255
218
307
  },
308
+ "expression": {
309
+ "type": "string",
310
+ "maxLength": 255
311
+ },
219
312
  "yAxisLabel": {
220
313
  "type": "string",
221
314
  "maxLength": 255
@@ -335,18 +428,107 @@
335
428
  "maxLength": 255
336
429
  },
337
430
  "aggregation": {
338
- "type": "string",
339
- "enum": [
340
- "FIRST",
341
- "LAST",
342
- "COUNT",
343
- "MAX",
344
- "MIN",
345
- "MEDIAN",
346
- "MEAN",
347
- "SUM",
348
- "STD_DEV",
349
- "NONE"
431
+ "oneOf": [
432
+ {
433
+ "oneOf": [
434
+ {
435
+ "type": "string",
436
+ "enum": [
437
+ "FIRST",
438
+ "LAST",
439
+ "COUNT",
440
+ "MAX",
441
+ "MIN",
442
+ "MEDIAN",
443
+ "MEAN",
444
+ "SUM",
445
+ "STD_DEV"
446
+ ]
447
+ },
448
+ {
449
+ "type": "string",
450
+ "enum": [
451
+ "NONE"
452
+ ]
453
+ }
454
+ ]
455
+ },
456
+ {
457
+ "type": "object",
458
+ "properties": {
459
+ "type": {
460
+ "oneOf": [
461
+ {
462
+ "type": "string",
463
+ "enum": [
464
+ "FIRST",
465
+ "LAST",
466
+ "COUNT",
467
+ "MAX",
468
+ "MIN",
469
+ "MEDIAN",
470
+ "MEAN",
471
+ "SUM",
472
+ "STD_DEV"
473
+ ]
474
+ },
475
+ {
476
+ "type": "string",
477
+ "enum": [
478
+ "NONE"
479
+ ]
480
+ }
481
+ ]
482
+ },
483
+ "options": {
484
+ "type": "object",
485
+ "additionalProperties": false
486
+ }
487
+ },
488
+ "additionalProperties": false,
489
+ "required": [
490
+ "type"
491
+ ]
492
+ },
493
+ {
494
+ "type": "object",
495
+ "properties": {
496
+ "type": {
497
+ "type": "string",
498
+ "enum": [
499
+ "TIMEATVALUE"
500
+ ]
501
+ },
502
+ "options": {
503
+ "type": "object",
504
+ "properties": {
505
+ "value": {
506
+ "oneOf": [
507
+ {
508
+ "type": "string",
509
+ "maxLength": 255
510
+ },
511
+ {
512
+ "type": "number"
513
+ },
514
+ {
515
+ "type": "boolean"
516
+ }
517
+ ]
518
+ }
519
+ },
520
+ "additionalProperties": false,
521
+ "required": [
522
+ "value"
523
+ ]
524
+ }
525
+ },
526
+ "additionalProperties": false,
527
+ "required": [
528
+ "type",
529
+ "options"
530
+ ]
531
+ }
350
532
  ]
351
533
  },
352
534
  "deviceIds": {
@@ -419,18 +601,107 @@
419
601
  "maxLength": 255
420
602
  },
421
603
  "aggregation": {
422
- "type": "string",
423
- "enum": [
424
- "FIRST",
425
- "LAST",
426
- "COUNT",
427
- "MAX",
428
- "MIN",
429
- "MEDIAN",
430
- "MEAN",
431
- "SUM",
432
- "STD_DEV",
433
- "NONE"
604
+ "oneOf": [
605
+ {
606
+ "oneOf": [
607
+ {
608
+ "type": "string",
609
+ "enum": [
610
+ "FIRST",
611
+ "LAST",
612
+ "COUNT",
613
+ "MAX",
614
+ "MIN",
615
+ "MEDIAN",
616
+ "MEAN",
617
+ "SUM",
618
+ "STD_DEV"
619
+ ]
620
+ },
621
+ {
622
+ "type": "string",
623
+ "enum": [
624
+ "NONE"
625
+ ]
626
+ }
627
+ ]
628
+ },
629
+ {
630
+ "type": "object",
631
+ "properties": {
632
+ "type": {
633
+ "oneOf": [
634
+ {
635
+ "type": "string",
636
+ "enum": [
637
+ "FIRST",
638
+ "LAST",
639
+ "COUNT",
640
+ "MAX",
641
+ "MIN",
642
+ "MEDIAN",
643
+ "MEAN",
644
+ "SUM",
645
+ "STD_DEV"
646
+ ]
647
+ },
648
+ {
649
+ "type": "string",
650
+ "enum": [
651
+ "NONE"
652
+ ]
653
+ }
654
+ ]
655
+ },
656
+ "options": {
657
+ "type": "object",
658
+ "additionalProperties": false
659
+ }
660
+ },
661
+ "additionalProperties": false,
662
+ "required": [
663
+ "type"
664
+ ]
665
+ },
666
+ {
667
+ "type": "object",
668
+ "properties": {
669
+ "type": {
670
+ "type": "string",
671
+ "enum": [
672
+ "TIMEATVALUE"
673
+ ]
674
+ },
675
+ "options": {
676
+ "type": "object",
677
+ "properties": {
678
+ "value": {
679
+ "oneOf": [
680
+ {
681
+ "type": "string",
682
+ "maxLength": 255
683
+ },
684
+ {
685
+ "type": "number"
686
+ },
687
+ {
688
+ "type": "boolean"
689
+ }
690
+ ]
691
+ }
692
+ },
693
+ "additionalProperties": false,
694
+ "required": [
695
+ "value"
696
+ ]
697
+ }
698
+ },
699
+ "additionalProperties": false,
700
+ "required": [
701
+ "type",
702
+ "options"
703
+ ]
704
+ }
434
705
  ]
435
706
  },
436
707
  "deviceIds": {
@@ -1322,18 +1593,107 @@
1322
1593
  "maxLength": 255
1323
1594
  },
1324
1595
  "aggregation": {
1325
- "type": "string",
1326
- "enum": [
1327
- "FIRST",
1328
- "LAST",
1329
- "COUNT",
1330
- "MAX",
1331
- "MIN",
1332
- "MEDIAN",
1333
- "MEAN",
1334
- "SUM",
1335
- "STD_DEV",
1336
- "NONE"
1596
+ "oneOf": [
1597
+ {
1598
+ "oneOf": [
1599
+ {
1600
+ "type": "string",
1601
+ "enum": [
1602
+ "FIRST",
1603
+ "LAST",
1604
+ "COUNT",
1605
+ "MAX",
1606
+ "MIN",
1607
+ "MEDIAN",
1608
+ "MEAN",
1609
+ "SUM",
1610
+ "STD_DEV"
1611
+ ]
1612
+ },
1613
+ {
1614
+ "type": "string",
1615
+ "enum": [
1616
+ "NONE"
1617
+ ]
1618
+ }
1619
+ ]
1620
+ },
1621
+ {
1622
+ "type": "object",
1623
+ "properties": {
1624
+ "type": {
1625
+ "oneOf": [
1626
+ {
1627
+ "type": "string",
1628
+ "enum": [
1629
+ "FIRST",
1630
+ "LAST",
1631
+ "COUNT",
1632
+ "MAX",
1633
+ "MIN",
1634
+ "MEDIAN",
1635
+ "MEAN",
1636
+ "SUM",
1637
+ "STD_DEV"
1638
+ ]
1639
+ },
1640
+ {
1641
+ "type": "string",
1642
+ "enum": [
1643
+ "NONE"
1644
+ ]
1645
+ }
1646
+ ]
1647
+ },
1648
+ "options": {
1649
+ "type": "object",
1650
+ "additionalProperties": false
1651
+ }
1652
+ },
1653
+ "additionalProperties": false,
1654
+ "required": [
1655
+ "type"
1656
+ ]
1657
+ },
1658
+ {
1659
+ "type": "object",
1660
+ "properties": {
1661
+ "type": {
1662
+ "type": "string",
1663
+ "enum": [
1664
+ "TIMEATVALUE"
1665
+ ]
1666
+ },
1667
+ "options": {
1668
+ "type": "object",
1669
+ "properties": {
1670
+ "value": {
1671
+ "oneOf": [
1672
+ {
1673
+ "type": "string",
1674
+ "maxLength": 255
1675
+ },
1676
+ {
1677
+ "type": "number"
1678
+ },
1679
+ {
1680
+ "type": "boolean"
1681
+ }
1682
+ ]
1683
+ }
1684
+ },
1685
+ "additionalProperties": false,
1686
+ "required": [
1687
+ "value"
1688
+ ]
1689
+ }
1690
+ },
1691
+ "additionalProperties": false,
1692
+ "required": [
1693
+ "type",
1694
+ "options"
1695
+ ]
1696
+ }
1337
1697
  ]
1338
1698
  },
1339
1699
  "color": {
@@ -1374,6 +1734,10 @@
1374
1734
  "type": "string",
1375
1735
  "maxLength": 255
1376
1736
  },
1737
+ "expression": {
1738
+ "type": "string",
1739
+ "maxLength": 255
1740
+ },
1377
1741
  "yAxisLabel": {
1378
1742
  "type": "string",
1379
1743
  "maxLength": 255
@@ -1529,18 +1893,107 @@
1529
1893
  "maxLength": 255
1530
1894
  },
1531
1895
  "aggregation": {
1532
- "type": "string",
1533
- "enum": [
1534
- "FIRST",
1535
- "LAST",
1536
- "COUNT",
1537
- "MAX",
1538
- "MIN",
1539
- "MEDIAN",
1540
- "MEAN",
1541
- "SUM",
1542
- "STD_DEV",
1543
- "NONE"
1896
+ "oneOf": [
1897
+ {
1898
+ "oneOf": [
1899
+ {
1900
+ "type": "string",
1901
+ "enum": [
1902
+ "FIRST",
1903
+ "LAST",
1904
+ "COUNT",
1905
+ "MAX",
1906
+ "MIN",
1907
+ "MEDIAN",
1908
+ "MEAN",
1909
+ "SUM",
1910
+ "STD_DEV"
1911
+ ]
1912
+ },
1913
+ {
1914
+ "type": "string",
1915
+ "enum": [
1916
+ "NONE"
1917
+ ]
1918
+ }
1919
+ ]
1920
+ },
1921
+ {
1922
+ "type": "object",
1923
+ "properties": {
1924
+ "type": {
1925
+ "oneOf": [
1926
+ {
1927
+ "type": "string",
1928
+ "enum": [
1929
+ "FIRST",
1930
+ "LAST",
1931
+ "COUNT",
1932
+ "MAX",
1933
+ "MIN",
1934
+ "MEDIAN",
1935
+ "MEAN",
1936
+ "SUM",
1937
+ "STD_DEV"
1938
+ ]
1939
+ },
1940
+ {
1941
+ "type": "string",
1942
+ "enum": [
1943
+ "NONE"
1944
+ ]
1945
+ }
1946
+ ]
1947
+ },
1948
+ "options": {
1949
+ "type": "object",
1950
+ "additionalProperties": false
1951
+ }
1952
+ },
1953
+ "additionalProperties": false,
1954
+ "required": [
1955
+ "type"
1956
+ ]
1957
+ },
1958
+ {
1959
+ "type": "object",
1960
+ "properties": {
1961
+ "type": {
1962
+ "type": "string",
1963
+ "enum": [
1964
+ "TIMEATVALUE"
1965
+ ]
1966
+ },
1967
+ "options": {
1968
+ "type": "object",
1969
+ "properties": {
1970
+ "value": {
1971
+ "oneOf": [
1972
+ {
1973
+ "type": "string",
1974
+ "maxLength": 255
1975
+ },
1976
+ {
1977
+ "type": "number"
1978
+ },
1979
+ {
1980
+ "type": "boolean"
1981
+ }
1982
+ ]
1983
+ }
1984
+ },
1985
+ "additionalProperties": false,
1986
+ "required": [
1987
+ "value"
1988
+ ]
1989
+ }
1990
+ },
1991
+ "additionalProperties": false,
1992
+ "required": [
1993
+ "type",
1994
+ "options"
1995
+ ]
1996
+ }
1544
1997
  ]
1545
1998
  },
1546
1999
  "color": {
@@ -1780,12 +2233,30 @@
1780
2233
  "type": "integer",
1781
2234
  "minimum": 0
1782
2235
  },
2236
+ "locationTagKey": {
2237
+ "oneOf": [
2238
+ {
2239
+ "type": "string",
2240
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
2241
+ },
2242
+ {
2243
+ "type": "string",
2244
+ "minLength": 4,
2245
+ "maxLength": 255,
2246
+ "pattern": ".*{{.+}}.*"
2247
+ }
2248
+ ]
2249
+ },
1783
2250
  "mapStyle": {
1784
2251
  "type": "string",
1785
2252
  "enum": [
1786
2253
  "normal",
1787
2254
  "satellite"
1788
2255
  ]
2256
+ },
2257
+ "query": {
2258
+ "type": "string",
2259
+ "maxLength": 32767
1789
2260
  }
1790
2261
  },
1791
2262
  "additionalProperties": false
@@ -1911,6 +2382,21 @@
1911
2382
  "imageUrl": {
1912
2383
  "type": "string",
1913
2384
  "maxLength": 32767
2385
+ },
2386
+ "imageSource": {
2387
+ "type": "string",
2388
+ "enum": [
2389
+ "static",
2390
+ "attribute"
2391
+ ]
2392
+ },
2393
+ "deviceId": {
2394
+ "type": "string",
2395
+ "maxLength": 255
2396
+ },
2397
+ "attribute": {
2398
+ "type": "string",
2399
+ "maxLength": 255
1914
2400
  }
1915
2401
  },
1916
2402
  "additionalProperties": false
@@ -1978,7 +2464,7 @@
1978
2464
  },
1979
2465
  "segments": {
1980
2466
  "type": "array",
1981
- "maxItems": 100,
2467
+ "maxItems": 300,
1982
2468
  "items": {
1983
2469
  "oneOf": [
1984
2470
  {
@@ -1999,18 +2485,107 @@
1999
2485
  "maxLength": 255
2000
2486
  },
2001
2487
  "aggregation": {
2002
- "type": "string",
2003
- "enum": [
2004
- "FIRST",
2005
- "LAST",
2006
- "COUNT",
2007
- "MAX",
2008
- "MIN",
2009
- "MEDIAN",
2010
- "MEAN",
2011
- "SUM",
2012
- "STD_DEV",
2013
- "NONE"
2488
+ "oneOf": [
2489
+ {
2490
+ "oneOf": [
2491
+ {
2492
+ "type": "string",
2493
+ "enum": [
2494
+ "FIRST",
2495
+ "LAST",
2496
+ "COUNT",
2497
+ "MAX",
2498
+ "MIN",
2499
+ "MEDIAN",
2500
+ "MEAN",
2501
+ "SUM",
2502
+ "STD_DEV"
2503
+ ]
2504
+ },
2505
+ {
2506
+ "type": "string",
2507
+ "enum": [
2508
+ "NONE"
2509
+ ]
2510
+ }
2511
+ ]
2512
+ },
2513
+ {
2514
+ "type": "object",
2515
+ "properties": {
2516
+ "type": {
2517
+ "oneOf": [
2518
+ {
2519
+ "type": "string",
2520
+ "enum": [
2521
+ "FIRST",
2522
+ "LAST",
2523
+ "COUNT",
2524
+ "MAX",
2525
+ "MIN",
2526
+ "MEDIAN",
2527
+ "MEAN",
2528
+ "SUM",
2529
+ "STD_DEV"
2530
+ ]
2531
+ },
2532
+ {
2533
+ "type": "string",
2534
+ "enum": [
2535
+ "NONE"
2536
+ ]
2537
+ }
2538
+ ]
2539
+ },
2540
+ "options": {
2541
+ "type": "object",
2542
+ "additionalProperties": false
2543
+ }
2544
+ },
2545
+ "additionalProperties": false,
2546
+ "required": [
2547
+ "type"
2548
+ ]
2549
+ },
2550
+ {
2551
+ "type": "object",
2552
+ "properties": {
2553
+ "type": {
2554
+ "type": "string",
2555
+ "enum": [
2556
+ "TIMEATVALUE"
2557
+ ]
2558
+ },
2559
+ "options": {
2560
+ "type": "object",
2561
+ "properties": {
2562
+ "value": {
2563
+ "oneOf": [
2564
+ {
2565
+ "type": "string",
2566
+ "maxLength": 255
2567
+ },
2568
+ {
2569
+ "type": "number"
2570
+ },
2571
+ {
2572
+ "type": "boolean"
2573
+ }
2574
+ ]
2575
+ }
2576
+ },
2577
+ "additionalProperties": false,
2578
+ "required": [
2579
+ "value"
2580
+ ]
2581
+ }
2582
+ },
2583
+ "additionalProperties": false,
2584
+ "required": [
2585
+ "type",
2586
+ "options"
2587
+ ]
2588
+ }
2014
2589
  ]
2015
2590
  },
2016
2591
  "deviceIds": {
@@ -2514,18 +3089,107 @@
2514
3089
  "maxLength": 255
2515
3090
  },
2516
3091
  "aggregation": {
2517
- "type": "string",
2518
- "enum": [
2519
- "FIRST",
2520
- "LAST",
2521
- "COUNT",
2522
- "MAX",
2523
- "MIN",
2524
- "MEDIAN",
2525
- "MEAN",
2526
- "SUM",
2527
- "STD_DEV",
2528
- "NONE"
3092
+ "oneOf": [
3093
+ {
3094
+ "oneOf": [
3095
+ {
3096
+ "type": "string",
3097
+ "enum": [
3098
+ "FIRST",
3099
+ "LAST",
3100
+ "COUNT",
3101
+ "MAX",
3102
+ "MIN",
3103
+ "MEDIAN",
3104
+ "MEAN",
3105
+ "SUM",
3106
+ "STD_DEV"
3107
+ ]
3108
+ },
3109
+ {
3110
+ "type": "string",
3111
+ "enum": [
3112
+ "NONE"
3113
+ ]
3114
+ }
3115
+ ]
3116
+ },
3117
+ {
3118
+ "type": "object",
3119
+ "properties": {
3120
+ "type": {
3121
+ "oneOf": [
3122
+ {
3123
+ "type": "string",
3124
+ "enum": [
3125
+ "FIRST",
3126
+ "LAST",
3127
+ "COUNT",
3128
+ "MAX",
3129
+ "MIN",
3130
+ "MEDIAN",
3131
+ "MEAN",
3132
+ "SUM",
3133
+ "STD_DEV"
3134
+ ]
3135
+ },
3136
+ {
3137
+ "type": "string",
3138
+ "enum": [
3139
+ "NONE"
3140
+ ]
3141
+ }
3142
+ ]
3143
+ },
3144
+ "options": {
3145
+ "type": "object",
3146
+ "additionalProperties": false
3147
+ }
3148
+ },
3149
+ "additionalProperties": false,
3150
+ "required": [
3151
+ "type"
3152
+ ]
3153
+ },
3154
+ {
3155
+ "type": "object",
3156
+ "properties": {
3157
+ "type": {
3158
+ "type": "string",
3159
+ "enum": [
3160
+ "TIMEATVALUE"
3161
+ ]
3162
+ },
3163
+ "options": {
3164
+ "type": "object",
3165
+ "properties": {
3166
+ "value": {
3167
+ "oneOf": [
3168
+ {
3169
+ "type": "string",
3170
+ "maxLength": 255
3171
+ },
3172
+ {
3173
+ "type": "number"
3174
+ },
3175
+ {
3176
+ "type": "boolean"
3177
+ }
3178
+ ]
3179
+ }
3180
+ },
3181
+ "additionalProperties": false,
3182
+ "required": [
3183
+ "value"
3184
+ ]
3185
+ }
3186
+ },
3187
+ "additionalProperties": false,
3188
+ "required": [
3189
+ "type",
3190
+ "options"
3191
+ ]
3192
+ }
2529
3193
  ]
2530
3194
  },
2531
3195
  "color": {
@@ -2566,6 +3230,10 @@
2566
3230
  "type": "string",
2567
3231
  "maxLength": 255
2568
3232
  },
3233
+ "expression": {
3234
+ "type": "string",
3235
+ "maxLength": 255
3236
+ },
2569
3237
  "yAxisLabel": {
2570
3238
  "type": "string",
2571
3239
  "maxLength": 255
@@ -2778,18 +3446,107 @@
2778
3446
  "maxLength": 255
2779
3447
  },
2780
3448
  "aggregation": {
2781
- "type": "string",
2782
- "enum": [
2783
- "FIRST",
2784
- "LAST",
2785
- "COUNT",
2786
- "MAX",
2787
- "MIN",
2788
- "MEDIAN",
2789
- "MEAN",
2790
- "SUM",
2791
- "STD_DEV",
2792
- "NONE"
3449
+ "oneOf": [
3450
+ {
3451
+ "oneOf": [
3452
+ {
3453
+ "type": "string",
3454
+ "enum": [
3455
+ "FIRST",
3456
+ "LAST",
3457
+ "COUNT",
3458
+ "MAX",
3459
+ "MIN",
3460
+ "MEDIAN",
3461
+ "MEAN",
3462
+ "SUM",
3463
+ "STD_DEV"
3464
+ ]
3465
+ },
3466
+ {
3467
+ "type": "string",
3468
+ "enum": [
3469
+ "NONE"
3470
+ ]
3471
+ }
3472
+ ]
3473
+ },
3474
+ {
3475
+ "type": "object",
3476
+ "properties": {
3477
+ "type": {
3478
+ "oneOf": [
3479
+ {
3480
+ "type": "string",
3481
+ "enum": [
3482
+ "FIRST",
3483
+ "LAST",
3484
+ "COUNT",
3485
+ "MAX",
3486
+ "MIN",
3487
+ "MEDIAN",
3488
+ "MEAN",
3489
+ "SUM",
3490
+ "STD_DEV"
3491
+ ]
3492
+ },
3493
+ {
3494
+ "type": "string",
3495
+ "enum": [
3496
+ "NONE"
3497
+ ]
3498
+ }
3499
+ ]
3500
+ },
3501
+ "options": {
3502
+ "type": "object",
3503
+ "additionalProperties": false
3504
+ }
3505
+ },
3506
+ "additionalProperties": false,
3507
+ "required": [
3508
+ "type"
3509
+ ]
3510
+ },
3511
+ {
3512
+ "type": "object",
3513
+ "properties": {
3514
+ "type": {
3515
+ "type": "string",
3516
+ "enum": [
3517
+ "TIMEATVALUE"
3518
+ ]
3519
+ },
3520
+ "options": {
3521
+ "type": "object",
3522
+ "properties": {
3523
+ "value": {
3524
+ "oneOf": [
3525
+ {
3526
+ "type": "string",
3527
+ "maxLength": 255
3528
+ },
3529
+ {
3530
+ "type": "number"
3531
+ },
3532
+ {
3533
+ "type": "boolean"
3534
+ }
3535
+ ]
3536
+ }
3537
+ },
3538
+ "additionalProperties": false,
3539
+ "required": [
3540
+ "value"
3541
+ ]
3542
+ }
3543
+ },
3544
+ "additionalProperties": false,
3545
+ "required": [
3546
+ "type",
3547
+ "options"
3548
+ ]
3549
+ }
2793
3550
  ]
2794
3551
  },
2795
3552
  "deviceIds": {
@@ -2923,18 +3680,107 @@
2923
3680
  "maxLength": 255
2924
3681
  },
2925
3682
  "aggregation": {
2926
- "type": "string",
2927
- "enum": [
2928
- "FIRST",
2929
- "LAST",
2930
- "COUNT",
2931
- "MAX",
2932
- "MIN",
2933
- "MEDIAN",
2934
- "MEAN",
2935
- "SUM",
2936
- "STD_DEV",
2937
- "NONE"
3683
+ "oneOf": [
3684
+ {
3685
+ "oneOf": [
3686
+ {
3687
+ "type": "string",
3688
+ "enum": [
3689
+ "FIRST",
3690
+ "LAST",
3691
+ "COUNT",
3692
+ "MAX",
3693
+ "MIN",
3694
+ "MEDIAN",
3695
+ "MEAN",
3696
+ "SUM",
3697
+ "STD_DEV"
3698
+ ]
3699
+ },
3700
+ {
3701
+ "type": "string",
3702
+ "enum": [
3703
+ "NONE"
3704
+ ]
3705
+ }
3706
+ ]
3707
+ },
3708
+ {
3709
+ "type": "object",
3710
+ "properties": {
3711
+ "type": {
3712
+ "oneOf": [
3713
+ {
3714
+ "type": "string",
3715
+ "enum": [
3716
+ "FIRST",
3717
+ "LAST",
3718
+ "COUNT",
3719
+ "MAX",
3720
+ "MIN",
3721
+ "MEDIAN",
3722
+ "MEAN",
3723
+ "SUM",
3724
+ "STD_DEV"
3725
+ ]
3726
+ },
3727
+ {
3728
+ "type": "string",
3729
+ "enum": [
3730
+ "NONE"
3731
+ ]
3732
+ }
3733
+ ]
3734
+ },
3735
+ "options": {
3736
+ "type": "object",
3737
+ "additionalProperties": false
3738
+ }
3739
+ },
3740
+ "additionalProperties": false,
3741
+ "required": [
3742
+ "type"
3743
+ ]
3744
+ },
3745
+ {
3746
+ "type": "object",
3747
+ "properties": {
3748
+ "type": {
3749
+ "type": "string",
3750
+ "enum": [
3751
+ "TIMEATVALUE"
3752
+ ]
3753
+ },
3754
+ "options": {
3755
+ "type": "object",
3756
+ "properties": {
3757
+ "value": {
3758
+ "oneOf": [
3759
+ {
3760
+ "type": "string",
3761
+ "maxLength": 255
3762
+ },
3763
+ {
3764
+ "type": "number"
3765
+ },
3766
+ {
3767
+ "type": "boolean"
3768
+ }
3769
+ ]
3770
+ }
3771
+ },
3772
+ "additionalProperties": false,
3773
+ "required": [
3774
+ "value"
3775
+ ]
3776
+ }
3777
+ },
3778
+ "additionalProperties": false,
3779
+ "required": [
3780
+ "type",
3781
+ "options"
3782
+ ]
3783
+ }
2938
3784
  ]
2939
3785
  },
2940
3786
  "deviceIds": {
@@ -3023,18 +3869,107 @@
3023
3869
  "maxLength": 255
3024
3870
  },
3025
3871
  "aggregation": {
3026
- "type": "string",
3027
- "enum": [
3028
- "FIRST",
3029
- "LAST",
3030
- "COUNT",
3031
- "MAX",
3032
- "MIN",
3033
- "MEDIAN",
3034
- "MEAN",
3035
- "SUM",
3036
- "STD_DEV",
3037
- "NONE"
3872
+ "oneOf": [
3873
+ {
3874
+ "oneOf": [
3875
+ {
3876
+ "type": "string",
3877
+ "enum": [
3878
+ "FIRST",
3879
+ "LAST",
3880
+ "COUNT",
3881
+ "MAX",
3882
+ "MIN",
3883
+ "MEDIAN",
3884
+ "MEAN",
3885
+ "SUM",
3886
+ "STD_DEV"
3887
+ ]
3888
+ },
3889
+ {
3890
+ "type": "string",
3891
+ "enum": [
3892
+ "NONE"
3893
+ ]
3894
+ }
3895
+ ]
3896
+ },
3897
+ {
3898
+ "type": "object",
3899
+ "properties": {
3900
+ "type": {
3901
+ "oneOf": [
3902
+ {
3903
+ "type": "string",
3904
+ "enum": [
3905
+ "FIRST",
3906
+ "LAST",
3907
+ "COUNT",
3908
+ "MAX",
3909
+ "MIN",
3910
+ "MEDIAN",
3911
+ "MEAN",
3912
+ "SUM",
3913
+ "STD_DEV"
3914
+ ]
3915
+ },
3916
+ {
3917
+ "type": "string",
3918
+ "enum": [
3919
+ "NONE"
3920
+ ]
3921
+ }
3922
+ ]
3923
+ },
3924
+ "options": {
3925
+ "type": "object",
3926
+ "additionalProperties": false
3927
+ }
3928
+ },
3929
+ "additionalProperties": false,
3930
+ "required": [
3931
+ "type"
3932
+ ]
3933
+ },
3934
+ {
3935
+ "type": "object",
3936
+ "properties": {
3937
+ "type": {
3938
+ "type": "string",
3939
+ "enum": [
3940
+ "TIMEATVALUE"
3941
+ ]
3942
+ },
3943
+ "options": {
3944
+ "type": "object",
3945
+ "properties": {
3946
+ "value": {
3947
+ "oneOf": [
3948
+ {
3949
+ "type": "string",
3950
+ "maxLength": 255
3951
+ },
3952
+ {
3953
+ "type": "number"
3954
+ },
3955
+ {
3956
+ "type": "boolean"
3957
+ }
3958
+ ]
3959
+ }
3960
+ },
3961
+ "additionalProperties": false,
3962
+ "required": [
3963
+ "value"
3964
+ ]
3965
+ }
3966
+ },
3967
+ "additionalProperties": false,
3968
+ "required": [
3969
+ "type",
3970
+ "options"
3971
+ ]
3972
+ }
3038
3973
  ]
3039
3974
  },
3040
3975
  "deviceIds": {
@@ -3124,18 +4059,107 @@
3124
4059
  "maxLength": 255
3125
4060
  },
3126
4061
  "aggregation": {
3127
- "type": "string",
3128
- "enum": [
3129
- "FIRST",
3130
- "LAST",
3131
- "COUNT",
3132
- "MAX",
3133
- "MIN",
3134
- "MEDIAN",
3135
- "MEAN",
3136
- "SUM",
3137
- "STD_DEV",
3138
- "NONE"
4062
+ "oneOf": [
4063
+ {
4064
+ "oneOf": [
4065
+ {
4066
+ "type": "string",
4067
+ "enum": [
4068
+ "FIRST",
4069
+ "LAST",
4070
+ "COUNT",
4071
+ "MAX",
4072
+ "MIN",
4073
+ "MEDIAN",
4074
+ "MEAN",
4075
+ "SUM",
4076
+ "STD_DEV"
4077
+ ]
4078
+ },
4079
+ {
4080
+ "type": "string",
4081
+ "enum": [
4082
+ "NONE"
4083
+ ]
4084
+ }
4085
+ ]
4086
+ },
4087
+ {
4088
+ "type": "object",
4089
+ "properties": {
4090
+ "type": {
4091
+ "oneOf": [
4092
+ {
4093
+ "type": "string",
4094
+ "enum": [
4095
+ "FIRST",
4096
+ "LAST",
4097
+ "COUNT",
4098
+ "MAX",
4099
+ "MIN",
4100
+ "MEDIAN",
4101
+ "MEAN",
4102
+ "SUM",
4103
+ "STD_DEV"
4104
+ ]
4105
+ },
4106
+ {
4107
+ "type": "string",
4108
+ "enum": [
4109
+ "NONE"
4110
+ ]
4111
+ }
4112
+ ]
4113
+ },
4114
+ "options": {
4115
+ "type": "object",
4116
+ "additionalProperties": false
4117
+ }
4118
+ },
4119
+ "additionalProperties": false,
4120
+ "required": [
4121
+ "type"
4122
+ ]
4123
+ },
4124
+ {
4125
+ "type": "object",
4126
+ "properties": {
4127
+ "type": {
4128
+ "type": "string",
4129
+ "enum": [
4130
+ "TIMEATVALUE"
4131
+ ]
4132
+ },
4133
+ "options": {
4134
+ "type": "object",
4135
+ "properties": {
4136
+ "value": {
4137
+ "oneOf": [
4138
+ {
4139
+ "type": "string",
4140
+ "maxLength": 255
4141
+ },
4142
+ {
4143
+ "type": "number"
4144
+ },
4145
+ {
4146
+ "type": "boolean"
4147
+ }
4148
+ ]
4149
+ }
4150
+ },
4151
+ "additionalProperties": false,
4152
+ "required": [
4153
+ "value"
4154
+ ]
4155
+ }
4156
+ },
4157
+ "additionalProperties": false,
4158
+ "required": [
4159
+ "type",
4160
+ "options"
4161
+ ]
4162
+ }
3139
4163
  ]
3140
4164
  },
3141
4165
  "deviceIds": {
@@ -3494,6 +4518,20 @@
3494
4518
  "includeLines": {
3495
4519
  "type": "boolean"
3496
4520
  },
4521
+ "locationTagKey": {
4522
+ "oneOf": [
4523
+ {
4524
+ "type": "string",
4525
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
4526
+ },
4527
+ {
4528
+ "type": "string",
4529
+ "minLength": 4,
4530
+ "maxLength": 255,
4531
+ "pattern": ".*{{.+}}.*"
4532
+ }
4533
+ ]
4534
+ },
3497
4535
  "mapStyle": {
3498
4536
  "type": "string",
3499
4537
  "enum": [
@@ -3512,6 +4550,10 @@
3512
4550
  "type": "string",
3513
4551
  "maxLength": 32767
3514
4552
  },
4553
+ "query": {
4554
+ "type": "string",
4555
+ "maxLength": 32767
4556
+ },
3515
4557
  "resizedPins": {
3516
4558
  "type": "boolean"
3517
4559
  },
@@ -3677,18 +4719,107 @@
3677
4719
  "maxLength": 255
3678
4720
  },
3679
4721
  "aggregation": {
3680
- "type": "string",
3681
- "enum": [
3682
- "FIRST",
3683
- "LAST",
3684
- "COUNT",
3685
- "MAX",
3686
- "MIN",
3687
- "MEDIAN",
3688
- "MEAN",
3689
- "SUM",
3690
- "STD_DEV",
3691
- "NONE"
4722
+ "oneOf": [
4723
+ {
4724
+ "oneOf": [
4725
+ {
4726
+ "type": "string",
4727
+ "enum": [
4728
+ "FIRST",
4729
+ "LAST",
4730
+ "COUNT",
4731
+ "MAX",
4732
+ "MIN",
4733
+ "MEDIAN",
4734
+ "MEAN",
4735
+ "SUM",
4736
+ "STD_DEV"
4737
+ ]
4738
+ },
4739
+ {
4740
+ "type": "string",
4741
+ "enum": [
4742
+ "NONE"
4743
+ ]
4744
+ }
4745
+ ]
4746
+ },
4747
+ {
4748
+ "type": "object",
4749
+ "properties": {
4750
+ "type": {
4751
+ "oneOf": [
4752
+ {
4753
+ "type": "string",
4754
+ "enum": [
4755
+ "FIRST",
4756
+ "LAST",
4757
+ "COUNT",
4758
+ "MAX",
4759
+ "MIN",
4760
+ "MEDIAN",
4761
+ "MEAN",
4762
+ "SUM",
4763
+ "STD_DEV"
4764
+ ]
4765
+ },
4766
+ {
4767
+ "type": "string",
4768
+ "enum": [
4769
+ "NONE"
4770
+ ]
4771
+ }
4772
+ ]
4773
+ },
4774
+ "options": {
4775
+ "type": "object",
4776
+ "additionalProperties": false
4777
+ }
4778
+ },
4779
+ "additionalProperties": false,
4780
+ "required": [
4781
+ "type"
4782
+ ]
4783
+ },
4784
+ {
4785
+ "type": "object",
4786
+ "properties": {
4787
+ "type": {
4788
+ "type": "string",
4789
+ "enum": [
4790
+ "TIMEATVALUE"
4791
+ ]
4792
+ },
4793
+ "options": {
4794
+ "type": "object",
4795
+ "properties": {
4796
+ "value": {
4797
+ "oneOf": [
4798
+ {
4799
+ "type": "string",
4800
+ "maxLength": 255
4801
+ },
4802
+ {
4803
+ "type": "number"
4804
+ },
4805
+ {
4806
+ "type": "boolean"
4807
+ }
4808
+ ]
4809
+ }
4810
+ },
4811
+ "additionalProperties": false,
4812
+ "required": [
4813
+ "value"
4814
+ ]
4815
+ }
4816
+ },
4817
+ "additionalProperties": false,
4818
+ "required": [
4819
+ "type",
4820
+ "options"
4821
+ ]
4822
+ }
3692
4823
  ]
3693
4824
  },
3694
4825
  "color": {
@@ -3729,6 +4860,10 @@
3729
4860
  "type": "string",
3730
4861
  "maxLength": 255
3731
4862
  },
4863
+ "expression": {
4864
+ "type": "string",
4865
+ "maxLength": 255
4866
+ },
3732
4867
  "yAxisLabel": {
3733
4868
  "type": "string",
3734
4869
  "maxLength": 255
@@ -4075,6 +5210,11 @@
4075
5210
  },
4076
5211
  "includeExperience": {
4077
5212
  "type": "boolean"
5213
+ },
5214
+ "experienceVersion": {
5215
+ "type": "string",
5216
+ "minLength": 1,
5217
+ "maxLength": 255
4078
5218
  }
4079
5219
  },
4080
5220
  "additionalProperties": false