losant_rest 1.10.0 → 1.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +8112 -2160
  3. data/docs/application.md +43 -0
  4. data/docs/device.md +1 -0
  5. data/lib/losant_rest/client.rb +2 -2
  6. data/lib/losant_rest/device.rb +2 -0
  7. data/lib/losant_rest/version.rb +1 -1
  8. data/schemas/application.json +5 -0
  9. data/schemas/applicationApiTokenPost.json +1 -0
  10. data/schemas/applicationCreationByTemplateResult.json +5 -0
  11. data/schemas/applicationPatch.json +5 -0
  12. data/schemas/applicationPost.json +5 -0
  13. data/schemas/applications.json +5 -0
  14. data/schemas/dashboard.json +1140 -144
  15. data/schemas/dashboardPatch.json +1140 -144
  16. data/schemas/dashboardPost.json +1140 -144
  17. data/schemas/dashboards.json +1140 -144
  18. data/schemas/device.json +16 -3
  19. data/schemas/devicePatch.json +16 -3
  20. data/schemas/devicePost.json +16 -3
  21. data/schemas/deviceRecipe.json +16 -3
  22. data/schemas/deviceRecipePatch.json +16 -3
  23. data/schemas/deviceRecipePost.json +16 -3
  24. data/schemas/deviceRecipes.json +16 -3
  25. data/schemas/devices.json +16 -3
  26. data/schemas/devicesPatch.json +16 -3
  27. data/schemas/experienceLinkedResources.json +309 -3
  28. data/schemas/flow.json +103 -1
  29. data/schemas/flowPatch.json +103 -1
  30. data/schemas/flowPost.json +103 -1
  31. data/schemas/flowVersion.json +206 -2
  32. data/schemas/flowVersionPost.json +103 -1
  33. data/schemas/flowVersions.json +206 -2
  34. data/schemas/flows.json +103 -1
  35. data/schemas/flowsImportPost.json +206 -2
  36. data/schemas/flowsImportResult.json +309 -3
  37. data/schemas/githubLogin.json +1 -0
  38. data/schemas/timeSeriesData.json +91 -12
  39. data/schemas/timeSeriesQuery.json +21 -12
  40. data/schemas/userCredentials.json +1 -0
  41. data/schemas/userPost.json +1 -0
  42. metadata +2 -2
@@ -281,18 +281,97 @@
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
+ "type": "string",
360
+ "maxLength": 255
361
+ }
362
+ },
363
+ "additionalProperties": false,
364
+ "required": [
365
+ "value"
366
+ ]
367
+ }
368
+ },
369
+ "additionalProperties": false,
370
+ "required": [
371
+ "type",
372
+ "options"
373
+ ]
374
+ }
296
375
  ]
297
376
  },
298
377
  "color": {
@@ -452,18 +531,97 @@
452
531
  "maxLength": 255
453
532
  },
454
533
  "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"
534
+ "oneOf": [
535
+ {
536
+ "oneOf": [
537
+ {
538
+ "type": "string",
539
+ "enum": [
540
+ "FIRST",
541
+ "LAST",
542
+ "COUNT",
543
+ "MAX",
544
+ "MIN",
545
+ "MEDIAN",
546
+ "MEAN",
547
+ "SUM",
548
+ "STD_DEV"
549
+ ]
550
+ },
551
+ {
552
+ "type": "string",
553
+ "enum": [
554
+ "NONE"
555
+ ]
556
+ }
557
+ ]
558
+ },
559
+ {
560
+ "type": "object",
561
+ "properties": {
562
+ "type": {
563
+ "oneOf": [
564
+ {
565
+ "type": "string",
566
+ "enum": [
567
+ "FIRST",
568
+ "LAST",
569
+ "COUNT",
570
+ "MAX",
571
+ "MIN",
572
+ "MEDIAN",
573
+ "MEAN",
574
+ "SUM",
575
+ "STD_DEV"
576
+ ]
577
+ },
578
+ {
579
+ "type": "string",
580
+ "enum": [
581
+ "NONE"
582
+ ]
583
+ }
584
+ ]
585
+ },
586
+ "options": {
587
+ "type": "object",
588
+ "additionalProperties": false
589
+ }
590
+ },
591
+ "additionalProperties": false,
592
+ "required": [
593
+ "type"
594
+ ]
595
+ },
596
+ {
597
+ "type": "object",
598
+ "properties": {
599
+ "type": {
600
+ "type": "string",
601
+ "enum": [
602
+ "TIMEATVALUE"
603
+ ]
604
+ },
605
+ "options": {
606
+ "type": "object",
607
+ "properties": {
608
+ "value": {
609
+ "type": "string",
610
+ "maxLength": 255
611
+ }
612
+ },
613
+ "additionalProperties": false,
614
+ "required": [
615
+ "value"
616
+ ]
617
+ }
618
+ },
619
+ "additionalProperties": false,
620
+ "required": [
621
+ "type",
622
+ "options"
623
+ ]
624
+ }
467
625
  ]
468
626
  },
469
627
  "deviceIds": {
@@ -536,18 +694,97 @@
536
694
  "maxLength": 255
537
695
  },
538
696
  "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"
697
+ "oneOf": [
698
+ {
699
+ "oneOf": [
700
+ {
701
+ "type": "string",
702
+ "enum": [
703
+ "FIRST",
704
+ "LAST",
705
+ "COUNT",
706
+ "MAX",
707
+ "MIN",
708
+ "MEDIAN",
709
+ "MEAN",
710
+ "SUM",
711
+ "STD_DEV"
712
+ ]
713
+ },
714
+ {
715
+ "type": "string",
716
+ "enum": [
717
+ "NONE"
718
+ ]
719
+ }
720
+ ]
721
+ },
722
+ {
723
+ "type": "object",
724
+ "properties": {
725
+ "type": {
726
+ "oneOf": [
727
+ {
728
+ "type": "string",
729
+ "enum": [
730
+ "FIRST",
731
+ "LAST",
732
+ "COUNT",
733
+ "MAX",
734
+ "MIN",
735
+ "MEDIAN",
736
+ "MEAN",
737
+ "SUM",
738
+ "STD_DEV"
739
+ ]
740
+ },
741
+ {
742
+ "type": "string",
743
+ "enum": [
744
+ "NONE"
745
+ ]
746
+ }
747
+ ]
748
+ },
749
+ "options": {
750
+ "type": "object",
751
+ "additionalProperties": false
752
+ }
753
+ },
754
+ "additionalProperties": false,
755
+ "required": [
756
+ "type"
757
+ ]
758
+ },
759
+ {
760
+ "type": "object",
761
+ "properties": {
762
+ "type": {
763
+ "type": "string",
764
+ "enum": [
765
+ "TIMEATVALUE"
766
+ ]
767
+ },
768
+ "options": {
769
+ "type": "object",
770
+ "properties": {
771
+ "value": {
772
+ "type": "string",
773
+ "maxLength": 255
774
+ }
775
+ },
776
+ "additionalProperties": false,
777
+ "required": [
778
+ "value"
779
+ ]
780
+ }
781
+ },
782
+ "additionalProperties": false,
783
+ "required": [
784
+ "type",
785
+ "options"
786
+ ]
787
+ }
551
788
  ]
552
789
  },
553
790
  "deviceIds": {
@@ -1439,18 +1676,97 @@
1439
1676
  "maxLength": 255
1440
1677
  },
1441
1678
  "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"
1679
+ "oneOf": [
1680
+ {
1681
+ "oneOf": [
1682
+ {
1683
+ "type": "string",
1684
+ "enum": [
1685
+ "FIRST",
1686
+ "LAST",
1687
+ "COUNT",
1688
+ "MAX",
1689
+ "MIN",
1690
+ "MEDIAN",
1691
+ "MEAN",
1692
+ "SUM",
1693
+ "STD_DEV"
1694
+ ]
1695
+ },
1696
+ {
1697
+ "type": "string",
1698
+ "enum": [
1699
+ "NONE"
1700
+ ]
1701
+ }
1702
+ ]
1703
+ },
1704
+ {
1705
+ "type": "object",
1706
+ "properties": {
1707
+ "type": {
1708
+ "oneOf": [
1709
+ {
1710
+ "type": "string",
1711
+ "enum": [
1712
+ "FIRST",
1713
+ "LAST",
1714
+ "COUNT",
1715
+ "MAX",
1716
+ "MIN",
1717
+ "MEDIAN",
1718
+ "MEAN",
1719
+ "SUM",
1720
+ "STD_DEV"
1721
+ ]
1722
+ },
1723
+ {
1724
+ "type": "string",
1725
+ "enum": [
1726
+ "NONE"
1727
+ ]
1728
+ }
1729
+ ]
1730
+ },
1731
+ "options": {
1732
+ "type": "object",
1733
+ "additionalProperties": false
1734
+ }
1735
+ },
1736
+ "additionalProperties": false,
1737
+ "required": [
1738
+ "type"
1739
+ ]
1740
+ },
1741
+ {
1742
+ "type": "object",
1743
+ "properties": {
1744
+ "type": {
1745
+ "type": "string",
1746
+ "enum": [
1747
+ "TIMEATVALUE"
1748
+ ]
1749
+ },
1750
+ "options": {
1751
+ "type": "object",
1752
+ "properties": {
1753
+ "value": {
1754
+ "type": "string",
1755
+ "maxLength": 255
1756
+ }
1757
+ },
1758
+ "additionalProperties": false,
1759
+ "required": [
1760
+ "value"
1761
+ ]
1762
+ }
1763
+ },
1764
+ "additionalProperties": false,
1765
+ "required": [
1766
+ "type",
1767
+ "options"
1768
+ ]
1769
+ }
1454
1770
  ]
1455
1771
  },
1456
1772
  "color": {
@@ -1646,18 +1962,97 @@
1646
1962
  "maxLength": 255
1647
1963
  },
1648
1964
  "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"
1965
+ "oneOf": [
1966
+ {
1967
+ "oneOf": [
1968
+ {
1969
+ "type": "string",
1970
+ "enum": [
1971
+ "FIRST",
1972
+ "LAST",
1973
+ "COUNT",
1974
+ "MAX",
1975
+ "MIN",
1976
+ "MEDIAN",
1977
+ "MEAN",
1978
+ "SUM",
1979
+ "STD_DEV"
1980
+ ]
1981
+ },
1982
+ {
1983
+ "type": "string",
1984
+ "enum": [
1985
+ "NONE"
1986
+ ]
1987
+ }
1988
+ ]
1989
+ },
1990
+ {
1991
+ "type": "object",
1992
+ "properties": {
1993
+ "type": {
1994
+ "oneOf": [
1995
+ {
1996
+ "type": "string",
1997
+ "enum": [
1998
+ "FIRST",
1999
+ "LAST",
2000
+ "COUNT",
2001
+ "MAX",
2002
+ "MIN",
2003
+ "MEDIAN",
2004
+ "MEAN",
2005
+ "SUM",
2006
+ "STD_DEV"
2007
+ ]
2008
+ },
2009
+ {
2010
+ "type": "string",
2011
+ "enum": [
2012
+ "NONE"
2013
+ ]
2014
+ }
2015
+ ]
2016
+ },
2017
+ "options": {
2018
+ "type": "object",
2019
+ "additionalProperties": false
2020
+ }
2021
+ },
2022
+ "additionalProperties": false,
2023
+ "required": [
2024
+ "type"
2025
+ ]
2026
+ },
2027
+ {
2028
+ "type": "object",
2029
+ "properties": {
2030
+ "type": {
2031
+ "type": "string",
2032
+ "enum": [
2033
+ "TIMEATVALUE"
2034
+ ]
2035
+ },
2036
+ "options": {
2037
+ "type": "object",
2038
+ "properties": {
2039
+ "value": {
2040
+ "type": "string",
2041
+ "maxLength": 255
2042
+ }
2043
+ },
2044
+ "additionalProperties": false,
2045
+ "required": [
2046
+ "value"
2047
+ ]
2048
+ }
2049
+ },
2050
+ "additionalProperties": false,
2051
+ "required": [
2052
+ "type",
2053
+ "options"
2054
+ ]
2055
+ }
1661
2056
  ]
1662
2057
  },
1663
2058
  "color": {
@@ -1897,6 +2292,20 @@
1897
2292
  "type": "integer",
1898
2293
  "minimum": 0
1899
2294
  },
2295
+ "locationTagKey": {
2296
+ "oneOf": [
2297
+ {
2298
+ "type": "string",
2299
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
2300
+ },
2301
+ {
2302
+ "type": "string",
2303
+ "minLength": 4,
2304
+ "maxLength": 255,
2305
+ "pattern": ".*{{.+}}.*"
2306
+ }
2307
+ ]
2308
+ },
1900
2309
  "mapStyle": {
1901
2310
  "type": "string",
1902
2311
  "enum": [
@@ -2028,6 +2437,21 @@
2028
2437
  "imageUrl": {
2029
2438
  "type": "string",
2030
2439
  "maxLength": 32767
2440
+ },
2441
+ "imageSource": {
2442
+ "type": "string",
2443
+ "enum": [
2444
+ "static",
2445
+ "attribute"
2446
+ ]
2447
+ },
2448
+ "deviceId": {
2449
+ "type": "string",
2450
+ "maxLength": 255
2451
+ },
2452
+ "attribute": {
2453
+ "type": "string",
2454
+ "maxLength": 255
2031
2455
  }
2032
2456
  },
2033
2457
  "additionalProperties": false
@@ -2116,18 +2540,97 @@
2116
2540
  "maxLength": 255
2117
2541
  },
2118
2542
  "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"
2543
+ "oneOf": [
2544
+ {
2545
+ "oneOf": [
2546
+ {
2547
+ "type": "string",
2548
+ "enum": [
2549
+ "FIRST",
2550
+ "LAST",
2551
+ "COUNT",
2552
+ "MAX",
2553
+ "MIN",
2554
+ "MEDIAN",
2555
+ "MEAN",
2556
+ "SUM",
2557
+ "STD_DEV"
2558
+ ]
2559
+ },
2560
+ {
2561
+ "type": "string",
2562
+ "enum": [
2563
+ "NONE"
2564
+ ]
2565
+ }
2566
+ ]
2567
+ },
2568
+ {
2569
+ "type": "object",
2570
+ "properties": {
2571
+ "type": {
2572
+ "oneOf": [
2573
+ {
2574
+ "type": "string",
2575
+ "enum": [
2576
+ "FIRST",
2577
+ "LAST",
2578
+ "COUNT",
2579
+ "MAX",
2580
+ "MIN",
2581
+ "MEDIAN",
2582
+ "MEAN",
2583
+ "SUM",
2584
+ "STD_DEV"
2585
+ ]
2586
+ },
2587
+ {
2588
+ "type": "string",
2589
+ "enum": [
2590
+ "NONE"
2591
+ ]
2592
+ }
2593
+ ]
2594
+ },
2595
+ "options": {
2596
+ "type": "object",
2597
+ "additionalProperties": false
2598
+ }
2599
+ },
2600
+ "additionalProperties": false,
2601
+ "required": [
2602
+ "type"
2603
+ ]
2604
+ },
2605
+ {
2606
+ "type": "object",
2607
+ "properties": {
2608
+ "type": {
2609
+ "type": "string",
2610
+ "enum": [
2611
+ "TIMEATVALUE"
2612
+ ]
2613
+ },
2614
+ "options": {
2615
+ "type": "object",
2616
+ "properties": {
2617
+ "value": {
2618
+ "type": "string",
2619
+ "maxLength": 255
2620
+ }
2621
+ },
2622
+ "additionalProperties": false,
2623
+ "required": [
2624
+ "value"
2625
+ ]
2626
+ }
2627
+ },
2628
+ "additionalProperties": false,
2629
+ "required": [
2630
+ "type",
2631
+ "options"
2632
+ ]
2633
+ }
2131
2634
  ]
2132
2635
  },
2133
2636
  "deviceIds": {
@@ -2631,18 +3134,97 @@
2631
3134
  "maxLength": 255
2632
3135
  },
2633
3136
  "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"
3137
+ "oneOf": [
3138
+ {
3139
+ "oneOf": [
3140
+ {
3141
+ "type": "string",
3142
+ "enum": [
3143
+ "FIRST",
3144
+ "LAST",
3145
+ "COUNT",
3146
+ "MAX",
3147
+ "MIN",
3148
+ "MEDIAN",
3149
+ "MEAN",
3150
+ "SUM",
3151
+ "STD_DEV"
3152
+ ]
3153
+ },
3154
+ {
3155
+ "type": "string",
3156
+ "enum": [
3157
+ "NONE"
3158
+ ]
3159
+ }
3160
+ ]
3161
+ },
3162
+ {
3163
+ "type": "object",
3164
+ "properties": {
3165
+ "type": {
3166
+ "oneOf": [
3167
+ {
3168
+ "type": "string",
3169
+ "enum": [
3170
+ "FIRST",
3171
+ "LAST",
3172
+ "COUNT",
3173
+ "MAX",
3174
+ "MIN",
3175
+ "MEDIAN",
3176
+ "MEAN",
3177
+ "SUM",
3178
+ "STD_DEV"
3179
+ ]
3180
+ },
3181
+ {
3182
+ "type": "string",
3183
+ "enum": [
3184
+ "NONE"
3185
+ ]
3186
+ }
3187
+ ]
3188
+ },
3189
+ "options": {
3190
+ "type": "object",
3191
+ "additionalProperties": false
3192
+ }
3193
+ },
3194
+ "additionalProperties": false,
3195
+ "required": [
3196
+ "type"
3197
+ ]
3198
+ },
3199
+ {
3200
+ "type": "object",
3201
+ "properties": {
3202
+ "type": {
3203
+ "type": "string",
3204
+ "enum": [
3205
+ "TIMEATVALUE"
3206
+ ]
3207
+ },
3208
+ "options": {
3209
+ "type": "object",
3210
+ "properties": {
3211
+ "value": {
3212
+ "type": "string",
3213
+ "maxLength": 255
3214
+ }
3215
+ },
3216
+ "additionalProperties": false,
3217
+ "required": [
3218
+ "value"
3219
+ ]
3220
+ }
3221
+ },
3222
+ "additionalProperties": false,
3223
+ "required": [
3224
+ "type",
3225
+ "options"
3226
+ ]
3227
+ }
2646
3228
  ]
2647
3229
  },
2648
3230
  "color": {
@@ -2895,18 +3477,97 @@
2895
3477
  "maxLength": 255
2896
3478
  },
2897
3479
  "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"
3480
+ "oneOf": [
3481
+ {
3482
+ "oneOf": [
3483
+ {
3484
+ "type": "string",
3485
+ "enum": [
3486
+ "FIRST",
3487
+ "LAST",
3488
+ "COUNT",
3489
+ "MAX",
3490
+ "MIN",
3491
+ "MEDIAN",
3492
+ "MEAN",
3493
+ "SUM",
3494
+ "STD_DEV"
3495
+ ]
3496
+ },
3497
+ {
3498
+ "type": "string",
3499
+ "enum": [
3500
+ "NONE"
3501
+ ]
3502
+ }
3503
+ ]
3504
+ },
3505
+ {
3506
+ "type": "object",
3507
+ "properties": {
3508
+ "type": {
3509
+ "oneOf": [
3510
+ {
3511
+ "type": "string",
3512
+ "enum": [
3513
+ "FIRST",
3514
+ "LAST",
3515
+ "COUNT",
3516
+ "MAX",
3517
+ "MIN",
3518
+ "MEDIAN",
3519
+ "MEAN",
3520
+ "SUM",
3521
+ "STD_DEV"
3522
+ ]
3523
+ },
3524
+ {
3525
+ "type": "string",
3526
+ "enum": [
3527
+ "NONE"
3528
+ ]
3529
+ }
3530
+ ]
3531
+ },
3532
+ "options": {
3533
+ "type": "object",
3534
+ "additionalProperties": false
3535
+ }
3536
+ },
3537
+ "additionalProperties": false,
3538
+ "required": [
3539
+ "type"
3540
+ ]
3541
+ },
3542
+ {
3543
+ "type": "object",
3544
+ "properties": {
3545
+ "type": {
3546
+ "type": "string",
3547
+ "enum": [
3548
+ "TIMEATVALUE"
3549
+ ]
3550
+ },
3551
+ "options": {
3552
+ "type": "object",
3553
+ "properties": {
3554
+ "value": {
3555
+ "type": "string",
3556
+ "maxLength": 255
3557
+ }
3558
+ },
3559
+ "additionalProperties": false,
3560
+ "required": [
3561
+ "value"
3562
+ ]
3563
+ }
3564
+ },
3565
+ "additionalProperties": false,
3566
+ "required": [
3567
+ "type",
3568
+ "options"
3569
+ ]
3570
+ }
2910
3571
  ]
2911
3572
  },
2912
3573
  "deviceIds": {
@@ -3040,18 +3701,97 @@
3040
3701
  "maxLength": 255
3041
3702
  },
3042
3703
  "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"
3704
+ "oneOf": [
3705
+ {
3706
+ "oneOf": [
3707
+ {
3708
+ "type": "string",
3709
+ "enum": [
3710
+ "FIRST",
3711
+ "LAST",
3712
+ "COUNT",
3713
+ "MAX",
3714
+ "MIN",
3715
+ "MEDIAN",
3716
+ "MEAN",
3717
+ "SUM",
3718
+ "STD_DEV"
3719
+ ]
3720
+ },
3721
+ {
3722
+ "type": "string",
3723
+ "enum": [
3724
+ "NONE"
3725
+ ]
3726
+ }
3727
+ ]
3728
+ },
3729
+ {
3730
+ "type": "object",
3731
+ "properties": {
3732
+ "type": {
3733
+ "oneOf": [
3734
+ {
3735
+ "type": "string",
3736
+ "enum": [
3737
+ "FIRST",
3738
+ "LAST",
3739
+ "COUNT",
3740
+ "MAX",
3741
+ "MIN",
3742
+ "MEDIAN",
3743
+ "MEAN",
3744
+ "SUM",
3745
+ "STD_DEV"
3746
+ ]
3747
+ },
3748
+ {
3749
+ "type": "string",
3750
+ "enum": [
3751
+ "NONE"
3752
+ ]
3753
+ }
3754
+ ]
3755
+ },
3756
+ "options": {
3757
+ "type": "object",
3758
+ "additionalProperties": false
3759
+ }
3760
+ },
3761
+ "additionalProperties": false,
3762
+ "required": [
3763
+ "type"
3764
+ ]
3765
+ },
3766
+ {
3767
+ "type": "object",
3768
+ "properties": {
3769
+ "type": {
3770
+ "type": "string",
3771
+ "enum": [
3772
+ "TIMEATVALUE"
3773
+ ]
3774
+ },
3775
+ "options": {
3776
+ "type": "object",
3777
+ "properties": {
3778
+ "value": {
3779
+ "type": "string",
3780
+ "maxLength": 255
3781
+ }
3782
+ },
3783
+ "additionalProperties": false,
3784
+ "required": [
3785
+ "value"
3786
+ ]
3787
+ }
3788
+ },
3789
+ "additionalProperties": false,
3790
+ "required": [
3791
+ "type",
3792
+ "options"
3793
+ ]
3794
+ }
3055
3795
  ]
3056
3796
  },
3057
3797
  "deviceIds": {
@@ -3140,18 +3880,97 @@
3140
3880
  "maxLength": 255
3141
3881
  },
3142
3882
  "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"
3883
+ "oneOf": [
3884
+ {
3885
+ "oneOf": [
3886
+ {
3887
+ "type": "string",
3888
+ "enum": [
3889
+ "FIRST",
3890
+ "LAST",
3891
+ "COUNT",
3892
+ "MAX",
3893
+ "MIN",
3894
+ "MEDIAN",
3895
+ "MEAN",
3896
+ "SUM",
3897
+ "STD_DEV"
3898
+ ]
3899
+ },
3900
+ {
3901
+ "type": "string",
3902
+ "enum": [
3903
+ "NONE"
3904
+ ]
3905
+ }
3906
+ ]
3907
+ },
3908
+ {
3909
+ "type": "object",
3910
+ "properties": {
3911
+ "type": {
3912
+ "oneOf": [
3913
+ {
3914
+ "type": "string",
3915
+ "enum": [
3916
+ "FIRST",
3917
+ "LAST",
3918
+ "COUNT",
3919
+ "MAX",
3920
+ "MIN",
3921
+ "MEDIAN",
3922
+ "MEAN",
3923
+ "SUM",
3924
+ "STD_DEV"
3925
+ ]
3926
+ },
3927
+ {
3928
+ "type": "string",
3929
+ "enum": [
3930
+ "NONE"
3931
+ ]
3932
+ }
3933
+ ]
3934
+ },
3935
+ "options": {
3936
+ "type": "object",
3937
+ "additionalProperties": false
3938
+ }
3939
+ },
3940
+ "additionalProperties": false,
3941
+ "required": [
3942
+ "type"
3943
+ ]
3944
+ },
3945
+ {
3946
+ "type": "object",
3947
+ "properties": {
3948
+ "type": {
3949
+ "type": "string",
3950
+ "enum": [
3951
+ "TIMEATVALUE"
3952
+ ]
3953
+ },
3954
+ "options": {
3955
+ "type": "object",
3956
+ "properties": {
3957
+ "value": {
3958
+ "type": "string",
3959
+ "maxLength": 255
3960
+ }
3961
+ },
3962
+ "additionalProperties": false,
3963
+ "required": [
3964
+ "value"
3965
+ ]
3966
+ }
3967
+ },
3968
+ "additionalProperties": false,
3969
+ "required": [
3970
+ "type",
3971
+ "options"
3972
+ ]
3973
+ }
3155
3974
  ]
3156
3975
  },
3157
3976
  "deviceIds": {
@@ -3241,18 +4060,97 @@
3241
4060
  "maxLength": 255
3242
4061
  },
3243
4062
  "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"
4063
+ "oneOf": [
4064
+ {
4065
+ "oneOf": [
4066
+ {
4067
+ "type": "string",
4068
+ "enum": [
4069
+ "FIRST",
4070
+ "LAST",
4071
+ "COUNT",
4072
+ "MAX",
4073
+ "MIN",
4074
+ "MEDIAN",
4075
+ "MEAN",
4076
+ "SUM",
4077
+ "STD_DEV"
4078
+ ]
4079
+ },
4080
+ {
4081
+ "type": "string",
4082
+ "enum": [
4083
+ "NONE"
4084
+ ]
4085
+ }
4086
+ ]
4087
+ },
4088
+ {
4089
+ "type": "object",
4090
+ "properties": {
4091
+ "type": {
4092
+ "oneOf": [
4093
+ {
4094
+ "type": "string",
4095
+ "enum": [
4096
+ "FIRST",
4097
+ "LAST",
4098
+ "COUNT",
4099
+ "MAX",
4100
+ "MIN",
4101
+ "MEDIAN",
4102
+ "MEAN",
4103
+ "SUM",
4104
+ "STD_DEV"
4105
+ ]
4106
+ },
4107
+ {
4108
+ "type": "string",
4109
+ "enum": [
4110
+ "NONE"
4111
+ ]
4112
+ }
4113
+ ]
4114
+ },
4115
+ "options": {
4116
+ "type": "object",
4117
+ "additionalProperties": false
4118
+ }
4119
+ },
4120
+ "additionalProperties": false,
4121
+ "required": [
4122
+ "type"
4123
+ ]
4124
+ },
4125
+ {
4126
+ "type": "object",
4127
+ "properties": {
4128
+ "type": {
4129
+ "type": "string",
4130
+ "enum": [
4131
+ "TIMEATVALUE"
4132
+ ]
4133
+ },
4134
+ "options": {
4135
+ "type": "object",
4136
+ "properties": {
4137
+ "value": {
4138
+ "type": "string",
4139
+ "maxLength": 255
4140
+ }
4141
+ },
4142
+ "additionalProperties": false,
4143
+ "required": [
4144
+ "value"
4145
+ ]
4146
+ }
4147
+ },
4148
+ "additionalProperties": false,
4149
+ "required": [
4150
+ "type",
4151
+ "options"
4152
+ ]
4153
+ }
3256
4154
  ]
3257
4155
  },
3258
4156
  "deviceIds": {
@@ -3611,6 +4509,20 @@
3611
4509
  "includeLines": {
3612
4510
  "type": "boolean"
3613
4511
  },
4512
+ "locationTagKey": {
4513
+ "oneOf": [
4514
+ {
4515
+ "type": "string",
4516
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
4517
+ },
4518
+ {
4519
+ "type": "string",
4520
+ "minLength": 4,
4521
+ "maxLength": 255,
4522
+ "pattern": ".*{{.+}}.*"
4523
+ }
4524
+ ]
4525
+ },
3614
4526
  "mapStyle": {
3615
4527
  "type": "string",
3616
4528
  "enum": [
@@ -3794,18 +4706,97 @@
3794
4706
  "maxLength": 255
3795
4707
  },
3796
4708
  "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"
4709
+ "oneOf": [
4710
+ {
4711
+ "oneOf": [
4712
+ {
4713
+ "type": "string",
4714
+ "enum": [
4715
+ "FIRST",
4716
+ "LAST",
4717
+ "COUNT",
4718
+ "MAX",
4719
+ "MIN",
4720
+ "MEDIAN",
4721
+ "MEAN",
4722
+ "SUM",
4723
+ "STD_DEV"
4724
+ ]
4725
+ },
4726
+ {
4727
+ "type": "string",
4728
+ "enum": [
4729
+ "NONE"
4730
+ ]
4731
+ }
4732
+ ]
4733
+ },
4734
+ {
4735
+ "type": "object",
4736
+ "properties": {
4737
+ "type": {
4738
+ "oneOf": [
4739
+ {
4740
+ "type": "string",
4741
+ "enum": [
4742
+ "FIRST",
4743
+ "LAST",
4744
+ "COUNT",
4745
+ "MAX",
4746
+ "MIN",
4747
+ "MEDIAN",
4748
+ "MEAN",
4749
+ "SUM",
4750
+ "STD_DEV"
4751
+ ]
4752
+ },
4753
+ {
4754
+ "type": "string",
4755
+ "enum": [
4756
+ "NONE"
4757
+ ]
4758
+ }
4759
+ ]
4760
+ },
4761
+ "options": {
4762
+ "type": "object",
4763
+ "additionalProperties": false
4764
+ }
4765
+ },
4766
+ "additionalProperties": false,
4767
+ "required": [
4768
+ "type"
4769
+ ]
4770
+ },
4771
+ {
4772
+ "type": "object",
4773
+ "properties": {
4774
+ "type": {
4775
+ "type": "string",
4776
+ "enum": [
4777
+ "TIMEATVALUE"
4778
+ ]
4779
+ },
4780
+ "options": {
4781
+ "type": "object",
4782
+ "properties": {
4783
+ "value": {
4784
+ "type": "string",
4785
+ "maxLength": 255
4786
+ }
4787
+ },
4788
+ "additionalProperties": false,
4789
+ "required": [
4790
+ "value"
4791
+ ]
4792
+ }
4793
+ },
4794
+ "additionalProperties": false,
4795
+ "required": [
4796
+ "type",
4797
+ "options"
4798
+ ]
4799
+ }
3809
4800
  ]
3810
4801
  },
3811
4802
  "color": {
@@ -4192,6 +5183,11 @@
4192
5183
  },
4193
5184
  "includeExperience": {
4194
5185
  "type": "boolean"
5186
+ },
5187
+ "experienceVersion": {
5188
+ "type": "string",
5189
+ "minLength": 1,
5190
+ "maxLength": 255
4195
5191
  }
4196
5192
  },
4197
5193
  "additionalProperties": false