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
@@ -281,18 +281,107 @@
281
281
  "maxLength": 255
282
282
  },
283
283
  "aggregation": {
284
- "type": "string",
285
- "enum": [
286
- "FIRST",
287
- "LAST",
288
- "COUNT",
289
- "MAX",
290
- "MIN",
291
- "MEDIAN",
292
- "MEAN",
293
- "SUM",
294
- "STD_DEV",
295
- "NONE"
284
+ "oneOf": [
285
+ {
286
+ "oneOf": [
287
+ {
288
+ "type": "string",
289
+ "enum": [
290
+ "FIRST",
291
+ "LAST",
292
+ "COUNT",
293
+ "MAX",
294
+ "MIN",
295
+ "MEDIAN",
296
+ "MEAN",
297
+ "SUM",
298
+ "STD_DEV"
299
+ ]
300
+ },
301
+ {
302
+ "type": "string",
303
+ "enum": [
304
+ "NONE"
305
+ ]
306
+ }
307
+ ]
308
+ },
309
+ {
310
+ "type": "object",
311
+ "properties": {
312
+ "type": {
313
+ "oneOf": [
314
+ {
315
+ "type": "string",
316
+ "enum": [
317
+ "FIRST",
318
+ "LAST",
319
+ "COUNT",
320
+ "MAX",
321
+ "MIN",
322
+ "MEDIAN",
323
+ "MEAN",
324
+ "SUM",
325
+ "STD_DEV"
326
+ ]
327
+ },
328
+ {
329
+ "type": "string",
330
+ "enum": [
331
+ "NONE"
332
+ ]
333
+ }
334
+ ]
335
+ },
336
+ "options": {
337
+ "type": "object",
338
+ "additionalProperties": false
339
+ }
340
+ },
341
+ "additionalProperties": false,
342
+ "required": [
343
+ "type"
344
+ ]
345
+ },
346
+ {
347
+ "type": "object",
348
+ "properties": {
349
+ "type": {
350
+ "type": "string",
351
+ "enum": [
352
+ "TIMEATVALUE"
353
+ ]
354
+ },
355
+ "options": {
356
+ "type": "object",
357
+ "properties": {
358
+ "value": {
359
+ "oneOf": [
360
+ {
361
+ "type": "string",
362
+ "maxLength": 255
363
+ },
364
+ {
365
+ "type": "number"
366
+ },
367
+ {
368
+ "type": "boolean"
369
+ }
370
+ ]
371
+ }
372
+ },
373
+ "additionalProperties": false,
374
+ "required": [
375
+ "value"
376
+ ]
377
+ }
378
+ },
379
+ "additionalProperties": false,
380
+ "required": [
381
+ "type",
382
+ "options"
383
+ ]
384
+ }
296
385
  ]
297
386
  },
298
387
  "color": {
@@ -333,6 +422,10 @@
333
422
  "type": "string",
334
423
  "maxLength": 255
335
424
  },
425
+ "expression": {
426
+ "type": "string",
427
+ "maxLength": 255
428
+ },
336
429
  "yAxisLabel": {
337
430
  "type": "string",
338
431
  "maxLength": 255
@@ -452,18 +545,107 @@
452
545
  "maxLength": 255
453
546
  },
454
547
  "aggregation": {
455
- "type": "string",
456
- "enum": [
457
- "FIRST",
458
- "LAST",
459
- "COUNT",
460
- "MAX",
461
- "MIN",
462
- "MEDIAN",
463
- "MEAN",
464
- "SUM",
465
- "STD_DEV",
466
- "NONE"
548
+ "oneOf": [
549
+ {
550
+ "oneOf": [
551
+ {
552
+ "type": "string",
553
+ "enum": [
554
+ "FIRST",
555
+ "LAST",
556
+ "COUNT",
557
+ "MAX",
558
+ "MIN",
559
+ "MEDIAN",
560
+ "MEAN",
561
+ "SUM",
562
+ "STD_DEV"
563
+ ]
564
+ },
565
+ {
566
+ "type": "string",
567
+ "enum": [
568
+ "NONE"
569
+ ]
570
+ }
571
+ ]
572
+ },
573
+ {
574
+ "type": "object",
575
+ "properties": {
576
+ "type": {
577
+ "oneOf": [
578
+ {
579
+ "type": "string",
580
+ "enum": [
581
+ "FIRST",
582
+ "LAST",
583
+ "COUNT",
584
+ "MAX",
585
+ "MIN",
586
+ "MEDIAN",
587
+ "MEAN",
588
+ "SUM",
589
+ "STD_DEV"
590
+ ]
591
+ },
592
+ {
593
+ "type": "string",
594
+ "enum": [
595
+ "NONE"
596
+ ]
597
+ }
598
+ ]
599
+ },
600
+ "options": {
601
+ "type": "object",
602
+ "additionalProperties": false
603
+ }
604
+ },
605
+ "additionalProperties": false,
606
+ "required": [
607
+ "type"
608
+ ]
609
+ },
610
+ {
611
+ "type": "object",
612
+ "properties": {
613
+ "type": {
614
+ "type": "string",
615
+ "enum": [
616
+ "TIMEATVALUE"
617
+ ]
618
+ },
619
+ "options": {
620
+ "type": "object",
621
+ "properties": {
622
+ "value": {
623
+ "oneOf": [
624
+ {
625
+ "type": "string",
626
+ "maxLength": 255
627
+ },
628
+ {
629
+ "type": "number"
630
+ },
631
+ {
632
+ "type": "boolean"
633
+ }
634
+ ]
635
+ }
636
+ },
637
+ "additionalProperties": false,
638
+ "required": [
639
+ "value"
640
+ ]
641
+ }
642
+ },
643
+ "additionalProperties": false,
644
+ "required": [
645
+ "type",
646
+ "options"
647
+ ]
648
+ }
467
649
  ]
468
650
  },
469
651
  "deviceIds": {
@@ -536,18 +718,107 @@
536
718
  "maxLength": 255
537
719
  },
538
720
  "aggregation": {
539
- "type": "string",
540
- "enum": [
541
- "FIRST",
542
- "LAST",
543
- "COUNT",
544
- "MAX",
545
- "MIN",
546
- "MEDIAN",
547
- "MEAN",
548
- "SUM",
549
- "STD_DEV",
550
- "NONE"
721
+ "oneOf": [
722
+ {
723
+ "oneOf": [
724
+ {
725
+ "type": "string",
726
+ "enum": [
727
+ "FIRST",
728
+ "LAST",
729
+ "COUNT",
730
+ "MAX",
731
+ "MIN",
732
+ "MEDIAN",
733
+ "MEAN",
734
+ "SUM",
735
+ "STD_DEV"
736
+ ]
737
+ },
738
+ {
739
+ "type": "string",
740
+ "enum": [
741
+ "NONE"
742
+ ]
743
+ }
744
+ ]
745
+ },
746
+ {
747
+ "type": "object",
748
+ "properties": {
749
+ "type": {
750
+ "oneOf": [
751
+ {
752
+ "type": "string",
753
+ "enum": [
754
+ "FIRST",
755
+ "LAST",
756
+ "COUNT",
757
+ "MAX",
758
+ "MIN",
759
+ "MEDIAN",
760
+ "MEAN",
761
+ "SUM",
762
+ "STD_DEV"
763
+ ]
764
+ },
765
+ {
766
+ "type": "string",
767
+ "enum": [
768
+ "NONE"
769
+ ]
770
+ }
771
+ ]
772
+ },
773
+ "options": {
774
+ "type": "object",
775
+ "additionalProperties": false
776
+ }
777
+ },
778
+ "additionalProperties": false,
779
+ "required": [
780
+ "type"
781
+ ]
782
+ },
783
+ {
784
+ "type": "object",
785
+ "properties": {
786
+ "type": {
787
+ "type": "string",
788
+ "enum": [
789
+ "TIMEATVALUE"
790
+ ]
791
+ },
792
+ "options": {
793
+ "type": "object",
794
+ "properties": {
795
+ "value": {
796
+ "oneOf": [
797
+ {
798
+ "type": "string",
799
+ "maxLength": 255
800
+ },
801
+ {
802
+ "type": "number"
803
+ },
804
+ {
805
+ "type": "boolean"
806
+ }
807
+ ]
808
+ }
809
+ },
810
+ "additionalProperties": false,
811
+ "required": [
812
+ "value"
813
+ ]
814
+ }
815
+ },
816
+ "additionalProperties": false,
817
+ "required": [
818
+ "type",
819
+ "options"
820
+ ]
821
+ }
551
822
  ]
552
823
  },
553
824
  "deviceIds": {
@@ -1439,18 +1710,107 @@
1439
1710
  "maxLength": 255
1440
1711
  },
1441
1712
  "aggregation": {
1442
- "type": "string",
1443
- "enum": [
1444
- "FIRST",
1445
- "LAST",
1446
- "COUNT",
1447
- "MAX",
1448
- "MIN",
1449
- "MEDIAN",
1450
- "MEAN",
1451
- "SUM",
1452
- "STD_DEV",
1453
- "NONE"
1713
+ "oneOf": [
1714
+ {
1715
+ "oneOf": [
1716
+ {
1717
+ "type": "string",
1718
+ "enum": [
1719
+ "FIRST",
1720
+ "LAST",
1721
+ "COUNT",
1722
+ "MAX",
1723
+ "MIN",
1724
+ "MEDIAN",
1725
+ "MEAN",
1726
+ "SUM",
1727
+ "STD_DEV"
1728
+ ]
1729
+ },
1730
+ {
1731
+ "type": "string",
1732
+ "enum": [
1733
+ "NONE"
1734
+ ]
1735
+ }
1736
+ ]
1737
+ },
1738
+ {
1739
+ "type": "object",
1740
+ "properties": {
1741
+ "type": {
1742
+ "oneOf": [
1743
+ {
1744
+ "type": "string",
1745
+ "enum": [
1746
+ "FIRST",
1747
+ "LAST",
1748
+ "COUNT",
1749
+ "MAX",
1750
+ "MIN",
1751
+ "MEDIAN",
1752
+ "MEAN",
1753
+ "SUM",
1754
+ "STD_DEV"
1755
+ ]
1756
+ },
1757
+ {
1758
+ "type": "string",
1759
+ "enum": [
1760
+ "NONE"
1761
+ ]
1762
+ }
1763
+ ]
1764
+ },
1765
+ "options": {
1766
+ "type": "object",
1767
+ "additionalProperties": false
1768
+ }
1769
+ },
1770
+ "additionalProperties": false,
1771
+ "required": [
1772
+ "type"
1773
+ ]
1774
+ },
1775
+ {
1776
+ "type": "object",
1777
+ "properties": {
1778
+ "type": {
1779
+ "type": "string",
1780
+ "enum": [
1781
+ "TIMEATVALUE"
1782
+ ]
1783
+ },
1784
+ "options": {
1785
+ "type": "object",
1786
+ "properties": {
1787
+ "value": {
1788
+ "oneOf": [
1789
+ {
1790
+ "type": "string",
1791
+ "maxLength": 255
1792
+ },
1793
+ {
1794
+ "type": "number"
1795
+ },
1796
+ {
1797
+ "type": "boolean"
1798
+ }
1799
+ ]
1800
+ }
1801
+ },
1802
+ "additionalProperties": false,
1803
+ "required": [
1804
+ "value"
1805
+ ]
1806
+ }
1807
+ },
1808
+ "additionalProperties": false,
1809
+ "required": [
1810
+ "type",
1811
+ "options"
1812
+ ]
1813
+ }
1454
1814
  ]
1455
1815
  },
1456
1816
  "color": {
@@ -1491,6 +1851,10 @@
1491
1851
  "type": "string",
1492
1852
  "maxLength": 255
1493
1853
  },
1854
+ "expression": {
1855
+ "type": "string",
1856
+ "maxLength": 255
1857
+ },
1494
1858
  "yAxisLabel": {
1495
1859
  "type": "string",
1496
1860
  "maxLength": 255
@@ -1646,18 +2010,107 @@
1646
2010
  "maxLength": 255
1647
2011
  },
1648
2012
  "aggregation": {
1649
- "type": "string",
1650
- "enum": [
1651
- "FIRST",
1652
- "LAST",
1653
- "COUNT",
1654
- "MAX",
1655
- "MIN",
1656
- "MEDIAN",
1657
- "MEAN",
1658
- "SUM",
1659
- "STD_DEV",
1660
- "NONE"
2013
+ "oneOf": [
2014
+ {
2015
+ "oneOf": [
2016
+ {
2017
+ "type": "string",
2018
+ "enum": [
2019
+ "FIRST",
2020
+ "LAST",
2021
+ "COUNT",
2022
+ "MAX",
2023
+ "MIN",
2024
+ "MEDIAN",
2025
+ "MEAN",
2026
+ "SUM",
2027
+ "STD_DEV"
2028
+ ]
2029
+ },
2030
+ {
2031
+ "type": "string",
2032
+ "enum": [
2033
+ "NONE"
2034
+ ]
2035
+ }
2036
+ ]
2037
+ },
2038
+ {
2039
+ "type": "object",
2040
+ "properties": {
2041
+ "type": {
2042
+ "oneOf": [
2043
+ {
2044
+ "type": "string",
2045
+ "enum": [
2046
+ "FIRST",
2047
+ "LAST",
2048
+ "COUNT",
2049
+ "MAX",
2050
+ "MIN",
2051
+ "MEDIAN",
2052
+ "MEAN",
2053
+ "SUM",
2054
+ "STD_DEV"
2055
+ ]
2056
+ },
2057
+ {
2058
+ "type": "string",
2059
+ "enum": [
2060
+ "NONE"
2061
+ ]
2062
+ }
2063
+ ]
2064
+ },
2065
+ "options": {
2066
+ "type": "object",
2067
+ "additionalProperties": false
2068
+ }
2069
+ },
2070
+ "additionalProperties": false,
2071
+ "required": [
2072
+ "type"
2073
+ ]
2074
+ },
2075
+ {
2076
+ "type": "object",
2077
+ "properties": {
2078
+ "type": {
2079
+ "type": "string",
2080
+ "enum": [
2081
+ "TIMEATVALUE"
2082
+ ]
2083
+ },
2084
+ "options": {
2085
+ "type": "object",
2086
+ "properties": {
2087
+ "value": {
2088
+ "oneOf": [
2089
+ {
2090
+ "type": "string",
2091
+ "maxLength": 255
2092
+ },
2093
+ {
2094
+ "type": "number"
2095
+ },
2096
+ {
2097
+ "type": "boolean"
2098
+ }
2099
+ ]
2100
+ }
2101
+ },
2102
+ "additionalProperties": false,
2103
+ "required": [
2104
+ "value"
2105
+ ]
2106
+ }
2107
+ },
2108
+ "additionalProperties": false,
2109
+ "required": [
2110
+ "type",
2111
+ "options"
2112
+ ]
2113
+ }
1661
2114
  ]
1662
2115
  },
1663
2116
  "color": {
@@ -1897,12 +2350,30 @@
1897
2350
  "type": "integer",
1898
2351
  "minimum": 0
1899
2352
  },
2353
+ "locationTagKey": {
2354
+ "oneOf": [
2355
+ {
2356
+ "type": "string",
2357
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
2358
+ },
2359
+ {
2360
+ "type": "string",
2361
+ "minLength": 4,
2362
+ "maxLength": 255,
2363
+ "pattern": ".*{{.+}}.*"
2364
+ }
2365
+ ]
2366
+ },
1900
2367
  "mapStyle": {
1901
2368
  "type": "string",
1902
2369
  "enum": [
1903
2370
  "normal",
1904
2371
  "satellite"
1905
2372
  ]
2373
+ },
2374
+ "query": {
2375
+ "type": "string",
2376
+ "maxLength": 32767
1906
2377
  }
1907
2378
  },
1908
2379
  "additionalProperties": false
@@ -2028,6 +2499,21 @@
2028
2499
  "imageUrl": {
2029
2500
  "type": "string",
2030
2501
  "maxLength": 32767
2502
+ },
2503
+ "imageSource": {
2504
+ "type": "string",
2505
+ "enum": [
2506
+ "static",
2507
+ "attribute"
2508
+ ]
2509
+ },
2510
+ "deviceId": {
2511
+ "type": "string",
2512
+ "maxLength": 255
2513
+ },
2514
+ "attribute": {
2515
+ "type": "string",
2516
+ "maxLength": 255
2031
2517
  }
2032
2518
  },
2033
2519
  "additionalProperties": false
@@ -2095,7 +2581,7 @@
2095
2581
  },
2096
2582
  "segments": {
2097
2583
  "type": "array",
2098
- "maxItems": 100,
2584
+ "maxItems": 300,
2099
2585
  "items": {
2100
2586
  "oneOf": [
2101
2587
  {
@@ -2116,18 +2602,107 @@
2116
2602
  "maxLength": 255
2117
2603
  },
2118
2604
  "aggregation": {
2119
- "type": "string",
2120
- "enum": [
2121
- "FIRST",
2122
- "LAST",
2123
- "COUNT",
2124
- "MAX",
2125
- "MIN",
2126
- "MEDIAN",
2127
- "MEAN",
2128
- "SUM",
2129
- "STD_DEV",
2130
- "NONE"
2605
+ "oneOf": [
2606
+ {
2607
+ "oneOf": [
2608
+ {
2609
+ "type": "string",
2610
+ "enum": [
2611
+ "FIRST",
2612
+ "LAST",
2613
+ "COUNT",
2614
+ "MAX",
2615
+ "MIN",
2616
+ "MEDIAN",
2617
+ "MEAN",
2618
+ "SUM",
2619
+ "STD_DEV"
2620
+ ]
2621
+ },
2622
+ {
2623
+ "type": "string",
2624
+ "enum": [
2625
+ "NONE"
2626
+ ]
2627
+ }
2628
+ ]
2629
+ },
2630
+ {
2631
+ "type": "object",
2632
+ "properties": {
2633
+ "type": {
2634
+ "oneOf": [
2635
+ {
2636
+ "type": "string",
2637
+ "enum": [
2638
+ "FIRST",
2639
+ "LAST",
2640
+ "COUNT",
2641
+ "MAX",
2642
+ "MIN",
2643
+ "MEDIAN",
2644
+ "MEAN",
2645
+ "SUM",
2646
+ "STD_DEV"
2647
+ ]
2648
+ },
2649
+ {
2650
+ "type": "string",
2651
+ "enum": [
2652
+ "NONE"
2653
+ ]
2654
+ }
2655
+ ]
2656
+ },
2657
+ "options": {
2658
+ "type": "object",
2659
+ "additionalProperties": false
2660
+ }
2661
+ },
2662
+ "additionalProperties": false,
2663
+ "required": [
2664
+ "type"
2665
+ ]
2666
+ },
2667
+ {
2668
+ "type": "object",
2669
+ "properties": {
2670
+ "type": {
2671
+ "type": "string",
2672
+ "enum": [
2673
+ "TIMEATVALUE"
2674
+ ]
2675
+ },
2676
+ "options": {
2677
+ "type": "object",
2678
+ "properties": {
2679
+ "value": {
2680
+ "oneOf": [
2681
+ {
2682
+ "type": "string",
2683
+ "maxLength": 255
2684
+ },
2685
+ {
2686
+ "type": "number"
2687
+ },
2688
+ {
2689
+ "type": "boolean"
2690
+ }
2691
+ ]
2692
+ }
2693
+ },
2694
+ "additionalProperties": false,
2695
+ "required": [
2696
+ "value"
2697
+ ]
2698
+ }
2699
+ },
2700
+ "additionalProperties": false,
2701
+ "required": [
2702
+ "type",
2703
+ "options"
2704
+ ]
2705
+ }
2131
2706
  ]
2132
2707
  },
2133
2708
  "deviceIds": {
@@ -2631,18 +3206,107 @@
2631
3206
  "maxLength": 255
2632
3207
  },
2633
3208
  "aggregation": {
2634
- "type": "string",
2635
- "enum": [
2636
- "FIRST",
2637
- "LAST",
2638
- "COUNT",
2639
- "MAX",
2640
- "MIN",
2641
- "MEDIAN",
2642
- "MEAN",
2643
- "SUM",
2644
- "STD_DEV",
2645
- "NONE"
3209
+ "oneOf": [
3210
+ {
3211
+ "oneOf": [
3212
+ {
3213
+ "type": "string",
3214
+ "enum": [
3215
+ "FIRST",
3216
+ "LAST",
3217
+ "COUNT",
3218
+ "MAX",
3219
+ "MIN",
3220
+ "MEDIAN",
3221
+ "MEAN",
3222
+ "SUM",
3223
+ "STD_DEV"
3224
+ ]
3225
+ },
3226
+ {
3227
+ "type": "string",
3228
+ "enum": [
3229
+ "NONE"
3230
+ ]
3231
+ }
3232
+ ]
3233
+ },
3234
+ {
3235
+ "type": "object",
3236
+ "properties": {
3237
+ "type": {
3238
+ "oneOf": [
3239
+ {
3240
+ "type": "string",
3241
+ "enum": [
3242
+ "FIRST",
3243
+ "LAST",
3244
+ "COUNT",
3245
+ "MAX",
3246
+ "MIN",
3247
+ "MEDIAN",
3248
+ "MEAN",
3249
+ "SUM",
3250
+ "STD_DEV"
3251
+ ]
3252
+ },
3253
+ {
3254
+ "type": "string",
3255
+ "enum": [
3256
+ "NONE"
3257
+ ]
3258
+ }
3259
+ ]
3260
+ },
3261
+ "options": {
3262
+ "type": "object",
3263
+ "additionalProperties": false
3264
+ }
3265
+ },
3266
+ "additionalProperties": false,
3267
+ "required": [
3268
+ "type"
3269
+ ]
3270
+ },
3271
+ {
3272
+ "type": "object",
3273
+ "properties": {
3274
+ "type": {
3275
+ "type": "string",
3276
+ "enum": [
3277
+ "TIMEATVALUE"
3278
+ ]
3279
+ },
3280
+ "options": {
3281
+ "type": "object",
3282
+ "properties": {
3283
+ "value": {
3284
+ "oneOf": [
3285
+ {
3286
+ "type": "string",
3287
+ "maxLength": 255
3288
+ },
3289
+ {
3290
+ "type": "number"
3291
+ },
3292
+ {
3293
+ "type": "boolean"
3294
+ }
3295
+ ]
3296
+ }
3297
+ },
3298
+ "additionalProperties": false,
3299
+ "required": [
3300
+ "value"
3301
+ ]
3302
+ }
3303
+ },
3304
+ "additionalProperties": false,
3305
+ "required": [
3306
+ "type",
3307
+ "options"
3308
+ ]
3309
+ }
2646
3310
  ]
2647
3311
  },
2648
3312
  "color": {
@@ -2683,6 +3347,10 @@
2683
3347
  "type": "string",
2684
3348
  "maxLength": 255
2685
3349
  },
3350
+ "expression": {
3351
+ "type": "string",
3352
+ "maxLength": 255
3353
+ },
2686
3354
  "yAxisLabel": {
2687
3355
  "type": "string",
2688
3356
  "maxLength": 255
@@ -2895,18 +3563,107 @@
2895
3563
  "maxLength": 255
2896
3564
  },
2897
3565
  "aggregation": {
2898
- "type": "string",
2899
- "enum": [
2900
- "FIRST",
2901
- "LAST",
2902
- "COUNT",
2903
- "MAX",
2904
- "MIN",
2905
- "MEDIAN",
2906
- "MEAN",
2907
- "SUM",
2908
- "STD_DEV",
2909
- "NONE"
3566
+ "oneOf": [
3567
+ {
3568
+ "oneOf": [
3569
+ {
3570
+ "type": "string",
3571
+ "enum": [
3572
+ "FIRST",
3573
+ "LAST",
3574
+ "COUNT",
3575
+ "MAX",
3576
+ "MIN",
3577
+ "MEDIAN",
3578
+ "MEAN",
3579
+ "SUM",
3580
+ "STD_DEV"
3581
+ ]
3582
+ },
3583
+ {
3584
+ "type": "string",
3585
+ "enum": [
3586
+ "NONE"
3587
+ ]
3588
+ }
3589
+ ]
3590
+ },
3591
+ {
3592
+ "type": "object",
3593
+ "properties": {
3594
+ "type": {
3595
+ "oneOf": [
3596
+ {
3597
+ "type": "string",
3598
+ "enum": [
3599
+ "FIRST",
3600
+ "LAST",
3601
+ "COUNT",
3602
+ "MAX",
3603
+ "MIN",
3604
+ "MEDIAN",
3605
+ "MEAN",
3606
+ "SUM",
3607
+ "STD_DEV"
3608
+ ]
3609
+ },
3610
+ {
3611
+ "type": "string",
3612
+ "enum": [
3613
+ "NONE"
3614
+ ]
3615
+ }
3616
+ ]
3617
+ },
3618
+ "options": {
3619
+ "type": "object",
3620
+ "additionalProperties": false
3621
+ }
3622
+ },
3623
+ "additionalProperties": false,
3624
+ "required": [
3625
+ "type"
3626
+ ]
3627
+ },
3628
+ {
3629
+ "type": "object",
3630
+ "properties": {
3631
+ "type": {
3632
+ "type": "string",
3633
+ "enum": [
3634
+ "TIMEATVALUE"
3635
+ ]
3636
+ },
3637
+ "options": {
3638
+ "type": "object",
3639
+ "properties": {
3640
+ "value": {
3641
+ "oneOf": [
3642
+ {
3643
+ "type": "string",
3644
+ "maxLength": 255
3645
+ },
3646
+ {
3647
+ "type": "number"
3648
+ },
3649
+ {
3650
+ "type": "boolean"
3651
+ }
3652
+ ]
3653
+ }
3654
+ },
3655
+ "additionalProperties": false,
3656
+ "required": [
3657
+ "value"
3658
+ ]
3659
+ }
3660
+ },
3661
+ "additionalProperties": false,
3662
+ "required": [
3663
+ "type",
3664
+ "options"
3665
+ ]
3666
+ }
2910
3667
  ]
2911
3668
  },
2912
3669
  "deviceIds": {
@@ -3040,18 +3797,107 @@
3040
3797
  "maxLength": 255
3041
3798
  },
3042
3799
  "aggregation": {
3043
- "type": "string",
3044
- "enum": [
3045
- "FIRST",
3046
- "LAST",
3047
- "COUNT",
3048
- "MAX",
3049
- "MIN",
3050
- "MEDIAN",
3051
- "MEAN",
3052
- "SUM",
3053
- "STD_DEV",
3054
- "NONE"
3800
+ "oneOf": [
3801
+ {
3802
+ "oneOf": [
3803
+ {
3804
+ "type": "string",
3805
+ "enum": [
3806
+ "FIRST",
3807
+ "LAST",
3808
+ "COUNT",
3809
+ "MAX",
3810
+ "MIN",
3811
+ "MEDIAN",
3812
+ "MEAN",
3813
+ "SUM",
3814
+ "STD_DEV"
3815
+ ]
3816
+ },
3817
+ {
3818
+ "type": "string",
3819
+ "enum": [
3820
+ "NONE"
3821
+ ]
3822
+ }
3823
+ ]
3824
+ },
3825
+ {
3826
+ "type": "object",
3827
+ "properties": {
3828
+ "type": {
3829
+ "oneOf": [
3830
+ {
3831
+ "type": "string",
3832
+ "enum": [
3833
+ "FIRST",
3834
+ "LAST",
3835
+ "COUNT",
3836
+ "MAX",
3837
+ "MIN",
3838
+ "MEDIAN",
3839
+ "MEAN",
3840
+ "SUM",
3841
+ "STD_DEV"
3842
+ ]
3843
+ },
3844
+ {
3845
+ "type": "string",
3846
+ "enum": [
3847
+ "NONE"
3848
+ ]
3849
+ }
3850
+ ]
3851
+ },
3852
+ "options": {
3853
+ "type": "object",
3854
+ "additionalProperties": false
3855
+ }
3856
+ },
3857
+ "additionalProperties": false,
3858
+ "required": [
3859
+ "type"
3860
+ ]
3861
+ },
3862
+ {
3863
+ "type": "object",
3864
+ "properties": {
3865
+ "type": {
3866
+ "type": "string",
3867
+ "enum": [
3868
+ "TIMEATVALUE"
3869
+ ]
3870
+ },
3871
+ "options": {
3872
+ "type": "object",
3873
+ "properties": {
3874
+ "value": {
3875
+ "oneOf": [
3876
+ {
3877
+ "type": "string",
3878
+ "maxLength": 255
3879
+ },
3880
+ {
3881
+ "type": "number"
3882
+ },
3883
+ {
3884
+ "type": "boolean"
3885
+ }
3886
+ ]
3887
+ }
3888
+ },
3889
+ "additionalProperties": false,
3890
+ "required": [
3891
+ "value"
3892
+ ]
3893
+ }
3894
+ },
3895
+ "additionalProperties": false,
3896
+ "required": [
3897
+ "type",
3898
+ "options"
3899
+ ]
3900
+ }
3055
3901
  ]
3056
3902
  },
3057
3903
  "deviceIds": {
@@ -3140,18 +3986,107 @@
3140
3986
  "maxLength": 255
3141
3987
  },
3142
3988
  "aggregation": {
3143
- "type": "string",
3144
- "enum": [
3145
- "FIRST",
3146
- "LAST",
3147
- "COUNT",
3148
- "MAX",
3149
- "MIN",
3150
- "MEDIAN",
3151
- "MEAN",
3152
- "SUM",
3153
- "STD_DEV",
3154
- "NONE"
3989
+ "oneOf": [
3990
+ {
3991
+ "oneOf": [
3992
+ {
3993
+ "type": "string",
3994
+ "enum": [
3995
+ "FIRST",
3996
+ "LAST",
3997
+ "COUNT",
3998
+ "MAX",
3999
+ "MIN",
4000
+ "MEDIAN",
4001
+ "MEAN",
4002
+ "SUM",
4003
+ "STD_DEV"
4004
+ ]
4005
+ },
4006
+ {
4007
+ "type": "string",
4008
+ "enum": [
4009
+ "NONE"
4010
+ ]
4011
+ }
4012
+ ]
4013
+ },
4014
+ {
4015
+ "type": "object",
4016
+ "properties": {
4017
+ "type": {
4018
+ "oneOf": [
4019
+ {
4020
+ "type": "string",
4021
+ "enum": [
4022
+ "FIRST",
4023
+ "LAST",
4024
+ "COUNT",
4025
+ "MAX",
4026
+ "MIN",
4027
+ "MEDIAN",
4028
+ "MEAN",
4029
+ "SUM",
4030
+ "STD_DEV"
4031
+ ]
4032
+ },
4033
+ {
4034
+ "type": "string",
4035
+ "enum": [
4036
+ "NONE"
4037
+ ]
4038
+ }
4039
+ ]
4040
+ },
4041
+ "options": {
4042
+ "type": "object",
4043
+ "additionalProperties": false
4044
+ }
4045
+ },
4046
+ "additionalProperties": false,
4047
+ "required": [
4048
+ "type"
4049
+ ]
4050
+ },
4051
+ {
4052
+ "type": "object",
4053
+ "properties": {
4054
+ "type": {
4055
+ "type": "string",
4056
+ "enum": [
4057
+ "TIMEATVALUE"
4058
+ ]
4059
+ },
4060
+ "options": {
4061
+ "type": "object",
4062
+ "properties": {
4063
+ "value": {
4064
+ "oneOf": [
4065
+ {
4066
+ "type": "string",
4067
+ "maxLength": 255
4068
+ },
4069
+ {
4070
+ "type": "number"
4071
+ },
4072
+ {
4073
+ "type": "boolean"
4074
+ }
4075
+ ]
4076
+ }
4077
+ },
4078
+ "additionalProperties": false,
4079
+ "required": [
4080
+ "value"
4081
+ ]
4082
+ }
4083
+ },
4084
+ "additionalProperties": false,
4085
+ "required": [
4086
+ "type",
4087
+ "options"
4088
+ ]
4089
+ }
3155
4090
  ]
3156
4091
  },
3157
4092
  "deviceIds": {
@@ -3241,18 +4176,107 @@
3241
4176
  "maxLength": 255
3242
4177
  },
3243
4178
  "aggregation": {
3244
- "type": "string",
3245
- "enum": [
3246
- "FIRST",
3247
- "LAST",
3248
- "COUNT",
3249
- "MAX",
3250
- "MIN",
3251
- "MEDIAN",
3252
- "MEAN",
3253
- "SUM",
3254
- "STD_DEV",
3255
- "NONE"
4179
+ "oneOf": [
4180
+ {
4181
+ "oneOf": [
4182
+ {
4183
+ "type": "string",
4184
+ "enum": [
4185
+ "FIRST",
4186
+ "LAST",
4187
+ "COUNT",
4188
+ "MAX",
4189
+ "MIN",
4190
+ "MEDIAN",
4191
+ "MEAN",
4192
+ "SUM",
4193
+ "STD_DEV"
4194
+ ]
4195
+ },
4196
+ {
4197
+ "type": "string",
4198
+ "enum": [
4199
+ "NONE"
4200
+ ]
4201
+ }
4202
+ ]
4203
+ },
4204
+ {
4205
+ "type": "object",
4206
+ "properties": {
4207
+ "type": {
4208
+ "oneOf": [
4209
+ {
4210
+ "type": "string",
4211
+ "enum": [
4212
+ "FIRST",
4213
+ "LAST",
4214
+ "COUNT",
4215
+ "MAX",
4216
+ "MIN",
4217
+ "MEDIAN",
4218
+ "MEAN",
4219
+ "SUM",
4220
+ "STD_DEV"
4221
+ ]
4222
+ },
4223
+ {
4224
+ "type": "string",
4225
+ "enum": [
4226
+ "NONE"
4227
+ ]
4228
+ }
4229
+ ]
4230
+ },
4231
+ "options": {
4232
+ "type": "object",
4233
+ "additionalProperties": false
4234
+ }
4235
+ },
4236
+ "additionalProperties": false,
4237
+ "required": [
4238
+ "type"
4239
+ ]
4240
+ },
4241
+ {
4242
+ "type": "object",
4243
+ "properties": {
4244
+ "type": {
4245
+ "type": "string",
4246
+ "enum": [
4247
+ "TIMEATVALUE"
4248
+ ]
4249
+ },
4250
+ "options": {
4251
+ "type": "object",
4252
+ "properties": {
4253
+ "value": {
4254
+ "oneOf": [
4255
+ {
4256
+ "type": "string",
4257
+ "maxLength": 255
4258
+ },
4259
+ {
4260
+ "type": "number"
4261
+ },
4262
+ {
4263
+ "type": "boolean"
4264
+ }
4265
+ ]
4266
+ }
4267
+ },
4268
+ "additionalProperties": false,
4269
+ "required": [
4270
+ "value"
4271
+ ]
4272
+ }
4273
+ },
4274
+ "additionalProperties": false,
4275
+ "required": [
4276
+ "type",
4277
+ "options"
4278
+ ]
4279
+ }
3256
4280
  ]
3257
4281
  },
3258
4282
  "deviceIds": {
@@ -3611,6 +4635,20 @@
3611
4635
  "includeLines": {
3612
4636
  "type": "boolean"
3613
4637
  },
4638
+ "locationTagKey": {
4639
+ "oneOf": [
4640
+ {
4641
+ "type": "string",
4642
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
4643
+ },
4644
+ {
4645
+ "type": "string",
4646
+ "minLength": 4,
4647
+ "maxLength": 255,
4648
+ "pattern": ".*{{.+}}.*"
4649
+ }
4650
+ ]
4651
+ },
3614
4652
  "mapStyle": {
3615
4653
  "type": "string",
3616
4654
  "enum": [
@@ -3629,6 +4667,10 @@
3629
4667
  "type": "string",
3630
4668
  "maxLength": 32767
3631
4669
  },
4670
+ "query": {
4671
+ "type": "string",
4672
+ "maxLength": 32767
4673
+ },
3632
4674
  "resizedPins": {
3633
4675
  "type": "boolean"
3634
4676
  },
@@ -3794,18 +4836,107 @@
3794
4836
  "maxLength": 255
3795
4837
  },
3796
4838
  "aggregation": {
3797
- "type": "string",
3798
- "enum": [
3799
- "FIRST",
3800
- "LAST",
3801
- "COUNT",
3802
- "MAX",
3803
- "MIN",
3804
- "MEDIAN",
3805
- "MEAN",
3806
- "SUM",
3807
- "STD_DEV",
3808
- "NONE"
4839
+ "oneOf": [
4840
+ {
4841
+ "oneOf": [
4842
+ {
4843
+ "type": "string",
4844
+ "enum": [
4845
+ "FIRST",
4846
+ "LAST",
4847
+ "COUNT",
4848
+ "MAX",
4849
+ "MIN",
4850
+ "MEDIAN",
4851
+ "MEAN",
4852
+ "SUM",
4853
+ "STD_DEV"
4854
+ ]
4855
+ },
4856
+ {
4857
+ "type": "string",
4858
+ "enum": [
4859
+ "NONE"
4860
+ ]
4861
+ }
4862
+ ]
4863
+ },
4864
+ {
4865
+ "type": "object",
4866
+ "properties": {
4867
+ "type": {
4868
+ "oneOf": [
4869
+ {
4870
+ "type": "string",
4871
+ "enum": [
4872
+ "FIRST",
4873
+ "LAST",
4874
+ "COUNT",
4875
+ "MAX",
4876
+ "MIN",
4877
+ "MEDIAN",
4878
+ "MEAN",
4879
+ "SUM",
4880
+ "STD_DEV"
4881
+ ]
4882
+ },
4883
+ {
4884
+ "type": "string",
4885
+ "enum": [
4886
+ "NONE"
4887
+ ]
4888
+ }
4889
+ ]
4890
+ },
4891
+ "options": {
4892
+ "type": "object",
4893
+ "additionalProperties": false
4894
+ }
4895
+ },
4896
+ "additionalProperties": false,
4897
+ "required": [
4898
+ "type"
4899
+ ]
4900
+ },
4901
+ {
4902
+ "type": "object",
4903
+ "properties": {
4904
+ "type": {
4905
+ "type": "string",
4906
+ "enum": [
4907
+ "TIMEATVALUE"
4908
+ ]
4909
+ },
4910
+ "options": {
4911
+ "type": "object",
4912
+ "properties": {
4913
+ "value": {
4914
+ "oneOf": [
4915
+ {
4916
+ "type": "string",
4917
+ "maxLength": 255
4918
+ },
4919
+ {
4920
+ "type": "number"
4921
+ },
4922
+ {
4923
+ "type": "boolean"
4924
+ }
4925
+ ]
4926
+ }
4927
+ },
4928
+ "additionalProperties": false,
4929
+ "required": [
4930
+ "value"
4931
+ ]
4932
+ }
4933
+ },
4934
+ "additionalProperties": false,
4935
+ "required": [
4936
+ "type",
4937
+ "options"
4938
+ ]
4939
+ }
3809
4940
  ]
3810
4941
  },
3811
4942
  "color": {
@@ -3846,6 +4977,10 @@
3846
4977
  "type": "string",
3847
4978
  "maxLength": 255
3848
4979
  },
4980
+ "expression": {
4981
+ "type": "string",
4982
+ "maxLength": 255
4983
+ },
3849
4984
  "yAxisLabel": {
3850
4985
  "type": "string",
3851
4986
  "maxLength": 255
@@ -4192,6 +5327,11 @@
4192
5327
  },
4193
5328
  "includeExperience": {
4194
5329
  "type": "boolean"
5330
+ },
5331
+ "experienceVersion": {
5332
+ "type": "string",
5333
+ "minLength": 1,
5334
+ "maxLength": 255
4195
5335
  }
4196
5336
  },
4197
5337
  "additionalProperties": false