losant_rest 1.16.3 → 1.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/_schemas.md +1131 -127
- data/docs/dashboard.md +2 -0
- data/docs/device.md +4 -0
- data/docs/devices.md +4 -0
- data/docs/me.md +36 -0
- data/lib/losant_rest/client.rb +2 -2
- data/lib/losant_rest/dashboard.rb +4 -0
- data/lib/losant_rest/device.rb +8 -0
- data/lib/losant_rest/devices.rb +8 -0
- data/lib/losant_rest/me.rb +41 -0
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/apiTokenPost.json +1 -0
- data/schemas/applicationDashboardPost.json +152 -24
- data/schemas/dashboard.json +152 -24
- data/schemas/dashboardPatch.json +152 -24
- data/schemas/dashboardPost.json +152 -24
- data/schemas/dashboards.json +152 -24
- data/schemas/enableTwoFactorAuth.json +5 -1
- data/schemas/experienceLinkedResources.json +3 -0
- data/schemas/experienceVersion.json +27 -0
- data/schemas/experienceVersionPatch.json +27 -0
- data/schemas/experienceVersionPost.json +39 -0
- data/schemas/experienceVersions.json +27 -0
- data/schemas/flow.json +1 -0
- data/schemas/flowPatch.json +1 -0
- data/schemas/flowPost.json +1 -0
- data/schemas/flowVersion.json +2 -0
- data/schemas/flowVersionPost.json +1 -0
- data/schemas/flowVersions.json +2 -0
- data/schemas/flows.json +1 -0
- data/schemas/flowsImportPost.json +2 -0
- data/schemas/flowsImportResult.json +3 -0
- data/schemas/githubLogin.json +1 -0
- data/schemas/importIntoApplicationOptions.json +7 -1
- data/schemas/importNewApplicationOptions.json +1 -0
- data/schemas/instanceCustomNodePatch.json +1 -0
- data/schemas/instanceCustomNodePost.json +1 -0
- data/schemas/integration.json +34 -1
- data/schemas/integrationPatch.json +34 -1
- data/schemas/integrationPost.json +34 -1
- data/schemas/integrations.json +34 -1
- data/schemas/samlResponse.json +1 -0
- data/schemas/twoFactorAuthInfo.json +15 -0
- data/schemas/userCredentials.json +1 -0
- data/schemas/userPost.json +1 -0
- data/schemas/validateContextError.json +3 -0
- data/schemas/validateContextSuccess.json +27 -0
- metadata +3 -2
data/schemas/dashboard.json
CHANGED
@@ -61,6 +61,14 @@
|
|
61
61
|
"minimum": 5,
|
62
62
|
"maximum": 600
|
63
63
|
},
|
64
|
+
"duration": {
|
65
|
+
"type": "integer",
|
66
|
+
"minimum": 1
|
67
|
+
},
|
68
|
+
"resolution": {
|
69
|
+
"type": "integer",
|
70
|
+
"minimum": 1
|
71
|
+
},
|
64
72
|
"defaultTheme": {
|
65
73
|
"type": "string",
|
66
74
|
"enum": [
|
@@ -255,8 +263,18 @@
|
|
255
263
|
"type": "boolean"
|
256
264
|
},
|
257
265
|
"duration": {
|
258
|
-
"
|
259
|
-
|
266
|
+
"oneOf": [
|
267
|
+
{
|
268
|
+
"type": "integer",
|
269
|
+
"minimum": 0
|
270
|
+
},
|
271
|
+
{
|
272
|
+
"type": "string",
|
273
|
+
"enum": [
|
274
|
+
"{{dashboard.duration}}"
|
275
|
+
]
|
276
|
+
}
|
277
|
+
]
|
260
278
|
},
|
261
279
|
"xAxisFormat": {
|
262
280
|
"type": "string",
|
@@ -697,8 +715,18 @@
|
|
697
715
|
}
|
698
716
|
},
|
699
717
|
"duration": {
|
700
|
-
"
|
701
|
-
|
718
|
+
"oneOf": [
|
719
|
+
{
|
720
|
+
"type": "integer",
|
721
|
+
"minimum": 0
|
722
|
+
},
|
723
|
+
{
|
724
|
+
"type": "string",
|
725
|
+
"enum": [
|
726
|
+
"{{dashboard.duration}}"
|
727
|
+
]
|
728
|
+
}
|
729
|
+
]
|
702
730
|
},
|
703
731
|
"resolution": {
|
704
732
|
"oneOf": [
|
@@ -870,8 +898,18 @@
|
|
870
898
|
}
|
871
899
|
},
|
872
900
|
"duration": {
|
873
|
-
"
|
874
|
-
|
901
|
+
"oneOf": [
|
902
|
+
{
|
903
|
+
"type": "integer",
|
904
|
+
"minimum": 0
|
905
|
+
},
|
906
|
+
{
|
907
|
+
"type": "string",
|
908
|
+
"enum": [
|
909
|
+
"{{dashboard.duration}}"
|
910
|
+
]
|
911
|
+
}
|
912
|
+
]
|
875
913
|
}
|
876
914
|
},
|
877
915
|
"additionalProperties": false
|
@@ -1606,8 +1644,18 @@
|
|
1606
1644
|
}
|
1607
1645
|
},
|
1608
1646
|
"duration": {
|
1609
|
-
"
|
1610
|
-
|
1647
|
+
"oneOf": [
|
1648
|
+
{
|
1649
|
+
"type": "integer",
|
1650
|
+
"minimum": 0
|
1651
|
+
},
|
1652
|
+
{
|
1653
|
+
"type": "string",
|
1654
|
+
"enum": [
|
1655
|
+
"{{dashboard.duration}}"
|
1656
|
+
]
|
1657
|
+
}
|
1658
|
+
]
|
1611
1659
|
},
|
1612
1660
|
"sortDirection": {
|
1613
1661
|
"type": "integer",
|
@@ -1856,8 +1904,18 @@
|
|
1856
1904
|
"type": "boolean"
|
1857
1905
|
},
|
1858
1906
|
"duration": {
|
1859
|
-
"
|
1860
|
-
|
1907
|
+
"oneOf": [
|
1908
|
+
{
|
1909
|
+
"type": "integer",
|
1910
|
+
"minimum": 0
|
1911
|
+
},
|
1912
|
+
{
|
1913
|
+
"type": "string",
|
1914
|
+
"enum": [
|
1915
|
+
"{{dashboard.duration}}"
|
1916
|
+
]
|
1917
|
+
}
|
1918
|
+
]
|
1861
1919
|
},
|
1862
1920
|
"gaugeMax": {
|
1863
1921
|
"oneOf": [
|
@@ -2178,8 +2236,18 @@
|
|
2178
2236
|
"type": "boolean"
|
2179
2237
|
},
|
2180
2238
|
"duration": {
|
2181
|
-
"
|
2182
|
-
|
2239
|
+
"oneOf": [
|
2240
|
+
{
|
2241
|
+
"type": "integer",
|
2242
|
+
"minimum": 0
|
2243
|
+
},
|
2244
|
+
{
|
2245
|
+
"type": "string",
|
2246
|
+
"enum": [
|
2247
|
+
"{{dashboard.duration}}"
|
2248
|
+
]
|
2249
|
+
}
|
2250
|
+
]
|
2183
2251
|
},
|
2184
2252
|
"resolution": {
|
2185
2253
|
"oneOf": [
|
@@ -2554,8 +2622,18 @@
|
|
2554
2622
|
}
|
2555
2623
|
},
|
2556
2624
|
"duration": {
|
2557
|
-
"
|
2558
|
-
|
2625
|
+
"oneOf": [
|
2626
|
+
{
|
2627
|
+
"type": "integer",
|
2628
|
+
"minimum": 0
|
2629
|
+
},
|
2630
|
+
{
|
2631
|
+
"type": "string",
|
2632
|
+
"enum": [
|
2633
|
+
"{{dashboard.duration}}"
|
2634
|
+
]
|
2635
|
+
}
|
2636
|
+
]
|
2559
2637
|
},
|
2560
2638
|
"locationTagKey": {
|
2561
2639
|
"oneOf": [
|
@@ -2943,8 +3021,18 @@
|
|
2943
3021
|
}
|
2944
3022
|
},
|
2945
3023
|
"duration": {
|
2946
|
-
"
|
2947
|
-
|
3024
|
+
"oneOf": [
|
3025
|
+
{
|
3026
|
+
"type": "integer",
|
3027
|
+
"minimum": 0
|
3028
|
+
},
|
3029
|
+
{
|
3030
|
+
"type": "string",
|
3031
|
+
"enum": [
|
3032
|
+
"{{dashboard.duration}}"
|
3033
|
+
]
|
3034
|
+
}
|
3035
|
+
]
|
2948
3036
|
}
|
2949
3037
|
},
|
2950
3038
|
"additionalProperties": false
|
@@ -3399,8 +3487,18 @@
|
|
3399
3487
|
"type": "boolean"
|
3400
3488
|
},
|
3401
3489
|
"duration": {
|
3402
|
-
"
|
3403
|
-
|
3490
|
+
"oneOf": [
|
3491
|
+
{
|
3492
|
+
"type": "integer",
|
3493
|
+
"minimum": 0
|
3494
|
+
},
|
3495
|
+
{
|
3496
|
+
"type": "string",
|
3497
|
+
"enum": [
|
3498
|
+
"{{dashboard.duration}}"
|
3499
|
+
]
|
3500
|
+
}
|
3501
|
+
]
|
3404
3502
|
},
|
3405
3503
|
"segments": {
|
3406
3504
|
"type": "array",
|
@@ -4828,8 +4926,18 @@
|
|
4828
4926
|
}
|
4829
4927
|
},
|
4830
4928
|
"duration": {
|
4831
|
-
"
|
4832
|
-
|
4929
|
+
"oneOf": [
|
4930
|
+
{
|
4931
|
+
"type": "integer",
|
4932
|
+
"minimum": 0
|
4933
|
+
},
|
4934
|
+
{
|
4935
|
+
"type": "string",
|
4936
|
+
"enum": [
|
4937
|
+
"{{dashboard.duration}}"
|
4938
|
+
]
|
4939
|
+
}
|
4940
|
+
]
|
4833
4941
|
},
|
4834
4942
|
"endColor": {
|
4835
4943
|
"type": "string",
|
@@ -5024,8 +5132,18 @@
|
|
5024
5132
|
"type": "boolean"
|
5025
5133
|
},
|
5026
5134
|
"duration": {
|
5027
|
-
"
|
5028
|
-
|
5135
|
+
"oneOf": [
|
5136
|
+
{
|
5137
|
+
"type": "integer",
|
5138
|
+
"minimum": 0
|
5139
|
+
},
|
5140
|
+
{
|
5141
|
+
"type": "string",
|
5142
|
+
"enum": [
|
5143
|
+
"{{dashboard.duration}}"
|
5144
|
+
]
|
5145
|
+
}
|
5146
|
+
]
|
5029
5147
|
},
|
5030
5148
|
"percentFormat": {
|
5031
5149
|
"type": "string",
|
@@ -5339,8 +5457,18 @@
|
|
5339
5457
|
}
|
5340
5458
|
},
|
5341
5459
|
"duration": {
|
5342
|
-
"
|
5343
|
-
|
5460
|
+
"oneOf": [
|
5461
|
+
{
|
5462
|
+
"type": "integer",
|
5463
|
+
"minimum": 0
|
5464
|
+
},
|
5465
|
+
{
|
5466
|
+
"type": "string",
|
5467
|
+
"enum": [
|
5468
|
+
"{{dashboard.duration}}"
|
5469
|
+
]
|
5470
|
+
}
|
5471
|
+
]
|
5344
5472
|
},
|
5345
5473
|
"endColor": {
|
5346
5474
|
"type": "string",
|
data/schemas/dashboardPatch.json
CHANGED
@@ -112,8 +112,18 @@
|
|
112
112
|
"type": "boolean"
|
113
113
|
},
|
114
114
|
"duration": {
|
115
|
-
"
|
116
|
-
|
115
|
+
"oneOf": [
|
116
|
+
{
|
117
|
+
"type": "integer",
|
118
|
+
"minimum": 0
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"type": "string",
|
122
|
+
"enum": [
|
123
|
+
"{{dashboard.duration}}"
|
124
|
+
]
|
125
|
+
}
|
126
|
+
]
|
117
127
|
},
|
118
128
|
"xAxisFormat": {
|
119
129
|
"type": "string",
|
@@ -554,8 +564,18 @@
|
|
554
564
|
}
|
555
565
|
},
|
556
566
|
"duration": {
|
557
|
-
"
|
558
|
-
|
567
|
+
"oneOf": [
|
568
|
+
{
|
569
|
+
"type": "integer",
|
570
|
+
"minimum": 0
|
571
|
+
},
|
572
|
+
{
|
573
|
+
"type": "string",
|
574
|
+
"enum": [
|
575
|
+
"{{dashboard.duration}}"
|
576
|
+
]
|
577
|
+
}
|
578
|
+
]
|
559
579
|
},
|
560
580
|
"resolution": {
|
561
581
|
"oneOf": [
|
@@ -727,8 +747,18 @@
|
|
727
747
|
}
|
728
748
|
},
|
729
749
|
"duration": {
|
730
|
-
"
|
731
|
-
|
750
|
+
"oneOf": [
|
751
|
+
{
|
752
|
+
"type": "integer",
|
753
|
+
"minimum": 0
|
754
|
+
},
|
755
|
+
{
|
756
|
+
"type": "string",
|
757
|
+
"enum": [
|
758
|
+
"{{dashboard.duration}}"
|
759
|
+
]
|
760
|
+
}
|
761
|
+
]
|
732
762
|
}
|
733
763
|
},
|
734
764
|
"additionalProperties": false
|
@@ -1463,8 +1493,18 @@
|
|
1463
1493
|
}
|
1464
1494
|
},
|
1465
1495
|
"duration": {
|
1466
|
-
"
|
1467
|
-
|
1496
|
+
"oneOf": [
|
1497
|
+
{
|
1498
|
+
"type": "integer",
|
1499
|
+
"minimum": 0
|
1500
|
+
},
|
1501
|
+
{
|
1502
|
+
"type": "string",
|
1503
|
+
"enum": [
|
1504
|
+
"{{dashboard.duration}}"
|
1505
|
+
]
|
1506
|
+
}
|
1507
|
+
]
|
1468
1508
|
},
|
1469
1509
|
"sortDirection": {
|
1470
1510
|
"type": "integer",
|
@@ -1713,8 +1753,18 @@
|
|
1713
1753
|
"type": "boolean"
|
1714
1754
|
},
|
1715
1755
|
"duration": {
|
1716
|
-
"
|
1717
|
-
|
1756
|
+
"oneOf": [
|
1757
|
+
{
|
1758
|
+
"type": "integer",
|
1759
|
+
"minimum": 0
|
1760
|
+
},
|
1761
|
+
{
|
1762
|
+
"type": "string",
|
1763
|
+
"enum": [
|
1764
|
+
"{{dashboard.duration}}"
|
1765
|
+
]
|
1766
|
+
}
|
1767
|
+
]
|
1718
1768
|
},
|
1719
1769
|
"gaugeMax": {
|
1720
1770
|
"oneOf": [
|
@@ -2035,8 +2085,18 @@
|
|
2035
2085
|
"type": "boolean"
|
2036
2086
|
},
|
2037
2087
|
"duration": {
|
2038
|
-
"
|
2039
|
-
|
2088
|
+
"oneOf": [
|
2089
|
+
{
|
2090
|
+
"type": "integer",
|
2091
|
+
"minimum": 0
|
2092
|
+
},
|
2093
|
+
{
|
2094
|
+
"type": "string",
|
2095
|
+
"enum": [
|
2096
|
+
"{{dashboard.duration}}"
|
2097
|
+
]
|
2098
|
+
}
|
2099
|
+
]
|
2040
2100
|
},
|
2041
2101
|
"resolution": {
|
2042
2102
|
"oneOf": [
|
@@ -2411,8 +2471,18 @@
|
|
2411
2471
|
}
|
2412
2472
|
},
|
2413
2473
|
"duration": {
|
2414
|
-
"
|
2415
|
-
|
2474
|
+
"oneOf": [
|
2475
|
+
{
|
2476
|
+
"type": "integer",
|
2477
|
+
"minimum": 0
|
2478
|
+
},
|
2479
|
+
{
|
2480
|
+
"type": "string",
|
2481
|
+
"enum": [
|
2482
|
+
"{{dashboard.duration}}"
|
2483
|
+
]
|
2484
|
+
}
|
2485
|
+
]
|
2416
2486
|
},
|
2417
2487
|
"locationTagKey": {
|
2418
2488
|
"oneOf": [
|
@@ -2800,8 +2870,18 @@
|
|
2800
2870
|
}
|
2801
2871
|
},
|
2802
2872
|
"duration": {
|
2803
|
-
"
|
2804
|
-
|
2873
|
+
"oneOf": [
|
2874
|
+
{
|
2875
|
+
"type": "integer",
|
2876
|
+
"minimum": 0
|
2877
|
+
},
|
2878
|
+
{
|
2879
|
+
"type": "string",
|
2880
|
+
"enum": [
|
2881
|
+
"{{dashboard.duration}}"
|
2882
|
+
]
|
2883
|
+
}
|
2884
|
+
]
|
2805
2885
|
}
|
2806
2886
|
},
|
2807
2887
|
"additionalProperties": false
|
@@ -3256,8 +3336,18 @@
|
|
3256
3336
|
"type": "boolean"
|
3257
3337
|
},
|
3258
3338
|
"duration": {
|
3259
|
-
"
|
3260
|
-
|
3339
|
+
"oneOf": [
|
3340
|
+
{
|
3341
|
+
"type": "integer",
|
3342
|
+
"minimum": 0
|
3343
|
+
},
|
3344
|
+
{
|
3345
|
+
"type": "string",
|
3346
|
+
"enum": [
|
3347
|
+
"{{dashboard.duration}}"
|
3348
|
+
]
|
3349
|
+
}
|
3350
|
+
]
|
3261
3351
|
},
|
3262
3352
|
"segments": {
|
3263
3353
|
"type": "array",
|
@@ -4685,8 +4775,18 @@
|
|
4685
4775
|
}
|
4686
4776
|
},
|
4687
4777
|
"duration": {
|
4688
|
-
"
|
4689
|
-
|
4778
|
+
"oneOf": [
|
4779
|
+
{
|
4780
|
+
"type": "integer",
|
4781
|
+
"minimum": 0
|
4782
|
+
},
|
4783
|
+
{
|
4784
|
+
"type": "string",
|
4785
|
+
"enum": [
|
4786
|
+
"{{dashboard.duration}}"
|
4787
|
+
]
|
4788
|
+
}
|
4789
|
+
]
|
4690
4790
|
},
|
4691
4791
|
"endColor": {
|
4692
4792
|
"type": "string",
|
@@ -4881,8 +4981,18 @@
|
|
4881
4981
|
"type": "boolean"
|
4882
4982
|
},
|
4883
4983
|
"duration": {
|
4884
|
-
"
|
4885
|
-
|
4984
|
+
"oneOf": [
|
4985
|
+
{
|
4986
|
+
"type": "integer",
|
4987
|
+
"minimum": 0
|
4988
|
+
},
|
4989
|
+
{
|
4990
|
+
"type": "string",
|
4991
|
+
"enum": [
|
4992
|
+
"{{dashboard.duration}}"
|
4993
|
+
]
|
4994
|
+
}
|
4995
|
+
]
|
4886
4996
|
},
|
4887
4997
|
"percentFormat": {
|
4888
4998
|
"type": "string",
|
@@ -5196,8 +5306,18 @@
|
|
5196
5306
|
}
|
5197
5307
|
},
|
5198
5308
|
"duration": {
|
5199
|
-
"
|
5200
|
-
|
5309
|
+
"oneOf": [
|
5310
|
+
{
|
5311
|
+
"type": "integer",
|
5312
|
+
"minimum": 0
|
5313
|
+
},
|
5314
|
+
{
|
5315
|
+
"type": "string",
|
5316
|
+
"enum": [
|
5317
|
+
"{{dashboard.duration}}"
|
5318
|
+
]
|
5319
|
+
}
|
5320
|
+
]
|
5201
5321
|
},
|
5202
5322
|
"endColor": {
|
5203
5323
|
"type": "string",
|
@@ -5504,6 +5624,14 @@
|
|
5504
5624
|
"minimum": 5,
|
5505
5625
|
"maximum": 600
|
5506
5626
|
},
|
5627
|
+
"duration": {
|
5628
|
+
"type": "integer",
|
5629
|
+
"minimum": 1
|
5630
|
+
},
|
5631
|
+
"resolution": {
|
5632
|
+
"type": "integer",
|
5633
|
+
"minimum": 1
|
5634
|
+
},
|
5507
5635
|
"defaultTheme": {
|
5508
5636
|
"type": "string",
|
5509
5637
|
"enum": [
|