losant_rest 1.23.0 → 1.23.2
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 +377 -25
- data/lib/platform_rest/client.rb +2 -2
- data/lib/platform_rest/version.rb +1 -1
- data/schemas/dashboardUpdateEvents.json +25 -0
- data/schemas/debugExcludeIds.json +14 -7
- data/schemas/debugLevels.json +20 -13
- data/schemas/event.json +81 -0
- data/schemas/eventPatch.json +25 -0
- data/schemas/eventPlusNewCount.json +81 -0
- data/schemas/events.json +81 -0
- data/schemas/eventsExport.json +8 -0
- data/schemas/notebook.json +10 -1
- data/schemas/notebookExecutionLogs.json +2 -1
- data/schemas/notebookPatch.json +10 -1
- data/schemas/notebookPost.json +10 -1
- data/schemas/notebooks.json +10 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0980c1fc311550c06e5af630bcd94718d45d3359d2ebee95fc0d6362a5b9116
|
|
4
|
+
data.tar.gz: d79f1c25fe6108a72b748cca7f4ffc4b48d178406eb39b04f3f9aca3bd77221f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e78a1533162dc93dd0f7be4a7325edb33dfc9d80150d780754497b6b876e8975701b4071f58091126201124c58a8e5ee52b7a0b5a231f54d2165d472746152c
|
|
7
|
+
data.tar.gz: 4888748a85ee869f331d437af9be1c37a547c4c1f558bc16e982cd95bcb9c938646c48b4b4c6132440362c48a49cbfd5f6e510359d66a074865a9a718c745d36
|
data/docs/_schemas.md
CHANGED
|
@@ -59934,6 +59934,31 @@ Schema for the body of an update events request
|
|
|
59934
59934
|
"resolved"
|
|
59935
59935
|
]
|
|
59936
59936
|
},
|
|
59937
|
+
"level": {
|
|
59938
|
+
"type": "string",
|
|
59939
|
+
"enum": [
|
|
59940
|
+
"info",
|
|
59941
|
+
"warning",
|
|
59942
|
+
"error",
|
|
59943
|
+
"critical"
|
|
59944
|
+
]
|
|
59945
|
+
},
|
|
59946
|
+
"subject": {
|
|
59947
|
+
"type": "string",
|
|
59948
|
+
"minLength": 1,
|
|
59949
|
+
"maxLength": 255
|
|
59950
|
+
},
|
|
59951
|
+
"deviceId": {
|
|
59952
|
+
"oneOf": [
|
|
59953
|
+
{
|
|
59954
|
+
"type": "string",
|
|
59955
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
59956
|
+
},
|
|
59957
|
+
{
|
|
59958
|
+
"type": "null"
|
|
59959
|
+
}
|
|
59960
|
+
]
|
|
59961
|
+
},
|
|
59937
59962
|
"comment": {
|
|
59938
59963
|
"type": "string",
|
|
59939
59964
|
"maxLength": 32767
|
|
@@ -67711,13 +67736,20 @@ Schema for an array of node IDs to exclude from debug output
|
|
|
67711
67736
|
```json
|
|
67712
67737
|
{
|
|
67713
67738
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
67714
|
-
"
|
|
67715
|
-
|
|
67716
|
-
|
|
67717
|
-
|
|
67718
|
-
|
|
67719
|
-
|
|
67720
|
-
|
|
67739
|
+
"oneOf": [
|
|
67740
|
+
{
|
|
67741
|
+
"type": "array",
|
|
67742
|
+
"maxItems": 50,
|
|
67743
|
+
"items": {
|
|
67744
|
+
"type": "string",
|
|
67745
|
+
"maxLength": 48,
|
|
67746
|
+
"minLength": 1
|
|
67747
|
+
}
|
|
67748
|
+
},
|
|
67749
|
+
{
|
|
67750
|
+
"type": "string"
|
|
67751
|
+
}
|
|
67752
|
+
]
|
|
67721
67753
|
}
|
|
67722
67754
|
```
|
|
67723
67755
|
### <a name="debug-exclude-node-ids-example"></a> Example
|
|
@@ -67740,19 +67772,26 @@ Schema for user debug levels
|
|
|
67740
67772
|
```json
|
|
67741
67773
|
{
|
|
67742
67774
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
67743
|
-
"
|
|
67744
|
-
|
|
67745
|
-
|
|
67746
|
-
|
|
67747
|
-
|
|
67748
|
-
|
|
67749
|
-
|
|
67750
|
-
|
|
67751
|
-
|
|
67752
|
-
|
|
67753
|
-
|
|
67754
|
-
|
|
67755
|
-
|
|
67775
|
+
"oneOf": [
|
|
67776
|
+
{
|
|
67777
|
+
"type": "array",
|
|
67778
|
+
"maxItems": 6,
|
|
67779
|
+
"items": {
|
|
67780
|
+
"type": "string",
|
|
67781
|
+
"enum": [
|
|
67782
|
+
"all",
|
|
67783
|
+
"none",
|
|
67784
|
+
"verbose",
|
|
67785
|
+
"info",
|
|
67786
|
+
"warn",
|
|
67787
|
+
"error"
|
|
67788
|
+
]
|
|
67789
|
+
}
|
|
67790
|
+
},
|
|
67791
|
+
{
|
|
67792
|
+
"type": "string"
|
|
67793
|
+
}
|
|
67794
|
+
]
|
|
67756
67795
|
}
|
|
67757
67796
|
```
|
|
67758
67797
|
### <a name="debug-levels-example"></a> Example
|
|
@@ -87162,6 +87201,87 @@ Schema for a single Event
|
|
|
87162
87201
|
]
|
|
87163
87202
|
}
|
|
87164
87203
|
}
|
|
87204
|
+
},
|
|
87205
|
+
"levelChange": {
|
|
87206
|
+
"type": "object",
|
|
87207
|
+
"properties": {
|
|
87208
|
+
"old": {
|
|
87209
|
+
"type": "string",
|
|
87210
|
+
"enum": [
|
|
87211
|
+
"info",
|
|
87212
|
+
"warning",
|
|
87213
|
+
"error",
|
|
87214
|
+
"critical"
|
|
87215
|
+
]
|
|
87216
|
+
},
|
|
87217
|
+
"new": {
|
|
87218
|
+
"type": "string",
|
|
87219
|
+
"enum": [
|
|
87220
|
+
"info",
|
|
87221
|
+
"warning",
|
|
87222
|
+
"error",
|
|
87223
|
+
"critical"
|
|
87224
|
+
]
|
|
87225
|
+
}
|
|
87226
|
+
}
|
|
87227
|
+
},
|
|
87228
|
+
"subjectChange": {
|
|
87229
|
+
"type": "object",
|
|
87230
|
+
"properties": {
|
|
87231
|
+
"old": {
|
|
87232
|
+
"type": "string",
|
|
87233
|
+
"minLength": 1,
|
|
87234
|
+
"maxLength": 255
|
|
87235
|
+
},
|
|
87236
|
+
"new": {
|
|
87237
|
+
"type": "string",
|
|
87238
|
+
"minLength": 1,
|
|
87239
|
+
"maxLength": 255
|
|
87240
|
+
}
|
|
87241
|
+
}
|
|
87242
|
+
},
|
|
87243
|
+
"deviceIdChange": {
|
|
87244
|
+
"type": "object",
|
|
87245
|
+
"properties": {
|
|
87246
|
+
"old": {
|
|
87247
|
+
"type": "string",
|
|
87248
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
87249
|
+
},
|
|
87250
|
+
"oldDeviceName": {
|
|
87251
|
+
"type": "string",
|
|
87252
|
+
"minLength": 1,
|
|
87253
|
+
"maxLength": 255
|
|
87254
|
+
},
|
|
87255
|
+
"new": {
|
|
87256
|
+
"type": "string",
|
|
87257
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
87258
|
+
},
|
|
87259
|
+
"newDeviceName": {
|
|
87260
|
+
"type": "string",
|
|
87261
|
+
"minLength": 1,
|
|
87262
|
+
"maxLength": 255
|
|
87263
|
+
}
|
|
87264
|
+
}
|
|
87265
|
+
},
|
|
87266
|
+
"tagsChange": {
|
|
87267
|
+
"type": "object",
|
|
87268
|
+
"patternProperties": {
|
|
87269
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
|
87270
|
+
"type": "object",
|
|
87271
|
+
"properties": {
|
|
87272
|
+
"old": {
|
|
87273
|
+
"type": "string",
|
|
87274
|
+
"minLength": 1,
|
|
87275
|
+
"maxLength": 255
|
|
87276
|
+
},
|
|
87277
|
+
"new": {
|
|
87278
|
+
"type": "string",
|
|
87279
|
+
"minLength": 1,
|
|
87280
|
+
"maxLength": 255
|
|
87281
|
+
}
|
|
87282
|
+
}
|
|
87283
|
+
}
|
|
87284
|
+
}
|
|
87165
87285
|
}
|
|
87166
87286
|
}
|
|
87167
87287
|
}
|
|
@@ -87215,6 +87335,31 @@ Schema for the body of an Event modification request
|
|
|
87215
87335
|
"resolved"
|
|
87216
87336
|
]
|
|
87217
87337
|
},
|
|
87338
|
+
"level": {
|
|
87339
|
+
"type": "string",
|
|
87340
|
+
"enum": [
|
|
87341
|
+
"info",
|
|
87342
|
+
"warning",
|
|
87343
|
+
"error",
|
|
87344
|
+
"critical"
|
|
87345
|
+
]
|
|
87346
|
+
},
|
|
87347
|
+
"subject": {
|
|
87348
|
+
"type": "string",
|
|
87349
|
+
"minLength": 1,
|
|
87350
|
+
"maxLength": 255
|
|
87351
|
+
},
|
|
87352
|
+
"deviceId": {
|
|
87353
|
+
"oneOf": [
|
|
87354
|
+
{
|
|
87355
|
+
"type": "string",
|
|
87356
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
87357
|
+
},
|
|
87358
|
+
{
|
|
87359
|
+
"type": "null"
|
|
87360
|
+
}
|
|
87361
|
+
]
|
|
87362
|
+
},
|
|
87218
87363
|
"comment": {
|
|
87219
87364
|
"type": "string",
|
|
87220
87365
|
"maxLength": 32767
|
|
@@ -87411,6 +87556,87 @@ Schema for an event plus a count of new events
|
|
|
87411
87556
|
]
|
|
87412
87557
|
}
|
|
87413
87558
|
}
|
|
87559
|
+
},
|
|
87560
|
+
"levelChange": {
|
|
87561
|
+
"type": "object",
|
|
87562
|
+
"properties": {
|
|
87563
|
+
"old": {
|
|
87564
|
+
"type": "string",
|
|
87565
|
+
"enum": [
|
|
87566
|
+
"info",
|
|
87567
|
+
"warning",
|
|
87568
|
+
"error",
|
|
87569
|
+
"critical"
|
|
87570
|
+
]
|
|
87571
|
+
},
|
|
87572
|
+
"new": {
|
|
87573
|
+
"type": "string",
|
|
87574
|
+
"enum": [
|
|
87575
|
+
"info",
|
|
87576
|
+
"warning",
|
|
87577
|
+
"error",
|
|
87578
|
+
"critical"
|
|
87579
|
+
]
|
|
87580
|
+
}
|
|
87581
|
+
}
|
|
87582
|
+
},
|
|
87583
|
+
"subjectChange": {
|
|
87584
|
+
"type": "object",
|
|
87585
|
+
"properties": {
|
|
87586
|
+
"old": {
|
|
87587
|
+
"type": "string",
|
|
87588
|
+
"minLength": 1,
|
|
87589
|
+
"maxLength": 255
|
|
87590
|
+
},
|
|
87591
|
+
"new": {
|
|
87592
|
+
"type": "string",
|
|
87593
|
+
"minLength": 1,
|
|
87594
|
+
"maxLength": 255
|
|
87595
|
+
}
|
|
87596
|
+
}
|
|
87597
|
+
},
|
|
87598
|
+
"deviceIdChange": {
|
|
87599
|
+
"type": "object",
|
|
87600
|
+
"properties": {
|
|
87601
|
+
"old": {
|
|
87602
|
+
"type": "string",
|
|
87603
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
87604
|
+
},
|
|
87605
|
+
"oldDeviceName": {
|
|
87606
|
+
"type": "string",
|
|
87607
|
+
"minLength": 1,
|
|
87608
|
+
"maxLength": 255
|
|
87609
|
+
},
|
|
87610
|
+
"new": {
|
|
87611
|
+
"type": "string",
|
|
87612
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
87613
|
+
},
|
|
87614
|
+
"newDeviceName": {
|
|
87615
|
+
"type": "string",
|
|
87616
|
+
"minLength": 1,
|
|
87617
|
+
"maxLength": 255
|
|
87618
|
+
}
|
|
87619
|
+
}
|
|
87620
|
+
},
|
|
87621
|
+
"tagsChange": {
|
|
87622
|
+
"type": "object",
|
|
87623
|
+
"patternProperties": {
|
|
87624
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
|
87625
|
+
"type": "object",
|
|
87626
|
+
"properties": {
|
|
87627
|
+
"old": {
|
|
87628
|
+
"type": "string",
|
|
87629
|
+
"minLength": 1,
|
|
87630
|
+
"maxLength": 255
|
|
87631
|
+
},
|
|
87632
|
+
"new": {
|
|
87633
|
+
"type": "string",
|
|
87634
|
+
"minLength": 1,
|
|
87635
|
+
"maxLength": 255
|
|
87636
|
+
}
|
|
87637
|
+
}
|
|
87638
|
+
}
|
|
87639
|
+
}
|
|
87414
87640
|
}
|
|
87415
87641
|
}
|
|
87416
87642
|
}
|
|
@@ -87772,6 +87998,87 @@ Schema for a collection of Events
|
|
|
87772
87998
|
]
|
|
87773
87999
|
}
|
|
87774
88000
|
}
|
|
88001
|
+
},
|
|
88002
|
+
"levelChange": {
|
|
88003
|
+
"type": "object",
|
|
88004
|
+
"properties": {
|
|
88005
|
+
"old": {
|
|
88006
|
+
"type": "string",
|
|
88007
|
+
"enum": [
|
|
88008
|
+
"info",
|
|
88009
|
+
"warning",
|
|
88010
|
+
"error",
|
|
88011
|
+
"critical"
|
|
88012
|
+
]
|
|
88013
|
+
},
|
|
88014
|
+
"new": {
|
|
88015
|
+
"type": "string",
|
|
88016
|
+
"enum": [
|
|
88017
|
+
"info",
|
|
88018
|
+
"warning",
|
|
88019
|
+
"error",
|
|
88020
|
+
"critical"
|
|
88021
|
+
]
|
|
88022
|
+
}
|
|
88023
|
+
}
|
|
88024
|
+
},
|
|
88025
|
+
"subjectChange": {
|
|
88026
|
+
"type": "object",
|
|
88027
|
+
"properties": {
|
|
88028
|
+
"old": {
|
|
88029
|
+
"type": "string",
|
|
88030
|
+
"minLength": 1,
|
|
88031
|
+
"maxLength": 255
|
|
88032
|
+
},
|
|
88033
|
+
"new": {
|
|
88034
|
+
"type": "string",
|
|
88035
|
+
"minLength": 1,
|
|
88036
|
+
"maxLength": 255
|
|
88037
|
+
}
|
|
88038
|
+
}
|
|
88039
|
+
},
|
|
88040
|
+
"deviceIdChange": {
|
|
88041
|
+
"type": "object",
|
|
88042
|
+
"properties": {
|
|
88043
|
+
"old": {
|
|
88044
|
+
"type": "string",
|
|
88045
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
88046
|
+
},
|
|
88047
|
+
"oldDeviceName": {
|
|
88048
|
+
"type": "string",
|
|
88049
|
+
"minLength": 1,
|
|
88050
|
+
"maxLength": 255
|
|
88051
|
+
},
|
|
88052
|
+
"new": {
|
|
88053
|
+
"type": "string",
|
|
88054
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
88055
|
+
},
|
|
88056
|
+
"newDeviceName": {
|
|
88057
|
+
"type": "string",
|
|
88058
|
+
"minLength": 1,
|
|
88059
|
+
"maxLength": 255
|
|
88060
|
+
}
|
|
88061
|
+
}
|
|
88062
|
+
},
|
|
88063
|
+
"tagsChange": {
|
|
88064
|
+
"type": "object",
|
|
88065
|
+
"patternProperties": {
|
|
88066
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
|
88067
|
+
"type": "object",
|
|
88068
|
+
"properties": {
|
|
88069
|
+
"old": {
|
|
88070
|
+
"type": "string",
|
|
88071
|
+
"minLength": 1,
|
|
88072
|
+
"maxLength": 255
|
|
88073
|
+
},
|
|
88074
|
+
"new": {
|
|
88075
|
+
"type": "string",
|
|
88076
|
+
"minLength": 1,
|
|
88077
|
+
"maxLength": 255
|
|
88078
|
+
}
|
|
88079
|
+
}
|
|
88080
|
+
}
|
|
88081
|
+
}
|
|
87775
88082
|
}
|
|
87776
88083
|
}
|
|
87777
88084
|
}
|
|
@@ -89531,6 +89838,14 @@ Export options for events
|
|
|
89531
89838
|
}
|
|
89532
89839
|
},
|
|
89533
89840
|
"additionalProperties": false
|
|
89841
|
+
},
|
|
89842
|
+
"format": {
|
|
89843
|
+
"type": "string",
|
|
89844
|
+
"enum": [
|
|
89845
|
+
"csv",
|
|
89846
|
+
"json"
|
|
89847
|
+
],
|
|
89848
|
+
"default": "csv"
|
|
89534
89849
|
}
|
|
89535
89850
|
},
|
|
89536
89851
|
"additionalProperties": false
|
|
@@ -164692,7 +165007,8 @@ Schema for a single Notebook
|
|
|
164692
165007
|
"enum": [
|
|
164693
165008
|
"v1",
|
|
164694
165009
|
"v2",
|
|
164695
|
-
"v3"
|
|
165010
|
+
"v3",
|
|
165011
|
+
"v4"
|
|
164696
165012
|
]
|
|
164697
165013
|
},
|
|
164698
165014
|
"inputs": {
|
|
@@ -165050,6 +165366,14 @@ Schema for a single Notebook
|
|
|
165050
165366
|
"queryJson": {
|
|
165051
165367
|
"type": "string",
|
|
165052
165368
|
"maxLength": 8192
|
|
165369
|
+
},
|
|
165370
|
+
"format": {
|
|
165371
|
+
"type": "string",
|
|
165372
|
+
"enum": [
|
|
165373
|
+
"csv",
|
|
165374
|
+
"json"
|
|
165375
|
+
],
|
|
165376
|
+
"default": "csv"
|
|
165053
165377
|
}
|
|
165054
165378
|
},
|
|
165055
165379
|
"required": [
|
|
@@ -165548,7 +165872,8 @@ Schema for a set of Notebook execution logs
|
|
|
165548
165872
|
"enum": [
|
|
165549
165873
|
"v1",
|
|
165550
165874
|
"v2",
|
|
165551
|
-
"v3"
|
|
165875
|
+
"v3",
|
|
165876
|
+
"v4"
|
|
165552
165877
|
]
|
|
165553
165878
|
},
|
|
165554
165879
|
"applicationId": {
|
|
@@ -166195,6 +166520,14 @@ Schema for the body of a Notebook modification request
|
|
|
166195
166520
|
"queryJson": {
|
|
166196
166521
|
"type": "string",
|
|
166197
166522
|
"maxLength": 8192
|
|
166523
|
+
},
|
|
166524
|
+
"format": {
|
|
166525
|
+
"type": "string",
|
|
166526
|
+
"enum": [
|
|
166527
|
+
"csv",
|
|
166528
|
+
"json"
|
|
166529
|
+
],
|
|
166530
|
+
"default": "csv"
|
|
166198
166531
|
}
|
|
166199
166532
|
},
|
|
166200
166533
|
"required": [
|
|
@@ -166458,7 +166791,8 @@ Schema for the body of a Notebook modification request
|
|
|
166458
166791
|
"enum": [
|
|
166459
166792
|
"v1",
|
|
166460
166793
|
"v2",
|
|
166461
|
-
"v3"
|
|
166794
|
+
"v3",
|
|
166795
|
+
"v4"
|
|
166462
166796
|
]
|
|
166463
166797
|
}
|
|
166464
166798
|
},
|
|
@@ -166500,7 +166834,8 @@ Schema for the body of an Notebook creation request
|
|
|
166500
166834
|
"enum": [
|
|
166501
166835
|
"v1",
|
|
166502
166836
|
"v2",
|
|
166503
|
-
"v3"
|
|
166837
|
+
"v3",
|
|
166838
|
+
"v4"
|
|
166504
166839
|
]
|
|
166505
166840
|
},
|
|
166506
166841
|
"inputs": {
|
|
@@ -166858,6 +167193,14 @@ Schema for the body of an Notebook creation request
|
|
|
166858
167193
|
"queryJson": {
|
|
166859
167194
|
"type": "string",
|
|
166860
167195
|
"maxLength": 8192
|
|
167196
|
+
},
|
|
167197
|
+
"format": {
|
|
167198
|
+
"type": "string",
|
|
167199
|
+
"enum": [
|
|
167200
|
+
"csv",
|
|
167201
|
+
"json"
|
|
167202
|
+
],
|
|
167203
|
+
"default": "csv"
|
|
166861
167204
|
}
|
|
166862
167205
|
},
|
|
166863
167206
|
"required": [
|
|
@@ -167193,7 +167536,8 @@ Schema for a collection of Notebooks
|
|
|
167193
167536
|
"enum": [
|
|
167194
167537
|
"v1",
|
|
167195
167538
|
"v2",
|
|
167196
|
-
"v3"
|
|
167539
|
+
"v3",
|
|
167540
|
+
"v4"
|
|
167197
167541
|
]
|
|
167198
167542
|
},
|
|
167199
167543
|
"inputs": {
|
|
@@ -167551,6 +167895,14 @@ Schema for a collection of Notebooks
|
|
|
167551
167895
|
"queryJson": {
|
|
167552
167896
|
"type": "string",
|
|
167553
167897
|
"maxLength": 8192
|
|
167898
|
+
},
|
|
167899
|
+
"format": {
|
|
167900
|
+
"type": "string",
|
|
167901
|
+
"enum": [
|
|
167902
|
+
"csv",
|
|
167903
|
+
"json"
|
|
167904
|
+
],
|
|
167905
|
+
"default": "csv"
|
|
167554
167906
|
}
|
|
167555
167907
|
},
|
|
167556
167908
|
"required": [
|
data/lib/platform_rest/client.rb
CHANGED
|
@@ -27,7 +27,7 @@ module PlatformRest
|
|
|
27
27
|
#
|
|
28
28
|
# User API for accessing platform data
|
|
29
29
|
#
|
|
30
|
-
# Built For Version 1.29.
|
|
30
|
+
# Built For Version 1.29.2
|
|
31
31
|
class Client
|
|
32
32
|
attr_accessor :auth_token, :url
|
|
33
33
|
|
|
@@ -430,7 +430,7 @@ module PlatformRest
|
|
|
430
430
|
|
|
431
431
|
headers["Accept"] = "application/json"
|
|
432
432
|
headers["Content-Type"] = "application/json"
|
|
433
|
-
headers["Accept-Version"] = "^1.29.
|
|
433
|
+
headers["Accept-Version"] = "^1.29.2"
|
|
434
434
|
headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
|
|
435
435
|
path = self.url + options.fetch(:path, "")
|
|
436
436
|
|
|
@@ -22,6 +22,31 @@
|
|
|
22
22
|
"resolved"
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
|
+
"level": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": [
|
|
28
|
+
"info",
|
|
29
|
+
"warning",
|
|
30
|
+
"error",
|
|
31
|
+
"critical"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"subject": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1,
|
|
37
|
+
"maxLength": 255
|
|
38
|
+
},
|
|
39
|
+
"deviceId": {
|
|
40
|
+
"oneOf": [
|
|
41
|
+
{
|
|
42
|
+
"type": "string",
|
|
43
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "null"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
25
50
|
"comment": {
|
|
26
51
|
"type": "string",
|
|
27
52
|
"maxLength": 32767
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
"oneOf": [
|
|
4
|
+
{
|
|
5
|
+
"type": "array",
|
|
6
|
+
"maxItems": 50,
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"maxLength": 48,
|
|
10
|
+
"minLength": 1
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
10
17
|
}
|
data/schemas/debugLevels.json
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
"oneOf": [
|
|
4
|
+
{
|
|
5
|
+
"type": "array",
|
|
6
|
+
"maxItems": 6,
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"all",
|
|
11
|
+
"none",
|
|
12
|
+
"verbose",
|
|
13
|
+
"info",
|
|
14
|
+
"warn",
|
|
15
|
+
"error"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
16
23
|
}
|
data/schemas/event.json
CHANGED
|
@@ -151,6 +151,87 @@
|
|
|
151
151
|
]
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
+
},
|
|
155
|
+
"levelChange": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"properties": {
|
|
158
|
+
"old": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"enum": [
|
|
161
|
+
"info",
|
|
162
|
+
"warning",
|
|
163
|
+
"error",
|
|
164
|
+
"critical"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"new": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"enum": [
|
|
170
|
+
"info",
|
|
171
|
+
"warning",
|
|
172
|
+
"error",
|
|
173
|
+
"critical"
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"subjectChange": {
|
|
179
|
+
"type": "object",
|
|
180
|
+
"properties": {
|
|
181
|
+
"old": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"minLength": 1,
|
|
184
|
+
"maxLength": 255
|
|
185
|
+
},
|
|
186
|
+
"new": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"minLength": 1,
|
|
189
|
+
"maxLength": 255
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"deviceIdChange": {
|
|
194
|
+
"type": "object",
|
|
195
|
+
"properties": {
|
|
196
|
+
"old": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
199
|
+
},
|
|
200
|
+
"oldDeviceName": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"minLength": 1,
|
|
203
|
+
"maxLength": 255
|
|
204
|
+
},
|
|
205
|
+
"new": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
208
|
+
},
|
|
209
|
+
"newDeviceName": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"minLength": 1,
|
|
212
|
+
"maxLength": 255
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"tagsChange": {
|
|
217
|
+
"type": "object",
|
|
218
|
+
"patternProperties": {
|
|
219
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
|
220
|
+
"type": "object",
|
|
221
|
+
"properties": {
|
|
222
|
+
"old": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"minLength": 1,
|
|
225
|
+
"maxLength": 255
|
|
226
|
+
},
|
|
227
|
+
"new": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"minLength": 1,
|
|
230
|
+
"maxLength": 255
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
154
235
|
}
|
|
155
236
|
}
|
|
156
237
|
}
|
data/schemas/eventPatch.json
CHANGED
|
@@ -10,6 +10,31 @@
|
|
|
10
10
|
"resolved"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
|
+
"level": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"info",
|
|
17
|
+
"warning",
|
|
18
|
+
"error",
|
|
19
|
+
"critical"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"subject": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"maxLength": 255
|
|
26
|
+
},
|
|
27
|
+
"deviceId": {
|
|
28
|
+
"oneOf": [
|
|
29
|
+
{
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "null"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
13
38
|
"comment": {
|
|
14
39
|
"type": "string",
|
|
15
40
|
"maxLength": 32767
|
|
@@ -156,6 +156,87 @@
|
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
+
},
|
|
160
|
+
"levelChange": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"properties": {
|
|
163
|
+
"old": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"enum": [
|
|
166
|
+
"info",
|
|
167
|
+
"warning",
|
|
168
|
+
"error",
|
|
169
|
+
"critical"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
"new": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"enum": [
|
|
175
|
+
"info",
|
|
176
|
+
"warning",
|
|
177
|
+
"error",
|
|
178
|
+
"critical"
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"subjectChange": {
|
|
184
|
+
"type": "object",
|
|
185
|
+
"properties": {
|
|
186
|
+
"old": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"minLength": 1,
|
|
189
|
+
"maxLength": 255
|
|
190
|
+
},
|
|
191
|
+
"new": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"minLength": 1,
|
|
194
|
+
"maxLength": 255
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"deviceIdChange": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"properties": {
|
|
201
|
+
"old": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
204
|
+
},
|
|
205
|
+
"oldDeviceName": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"minLength": 1,
|
|
208
|
+
"maxLength": 255
|
|
209
|
+
},
|
|
210
|
+
"new": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
213
|
+
},
|
|
214
|
+
"newDeviceName": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"minLength": 1,
|
|
217
|
+
"maxLength": 255
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"tagsChange": {
|
|
222
|
+
"type": "object",
|
|
223
|
+
"patternProperties": {
|
|
224
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"properties": {
|
|
227
|
+
"old": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"minLength": 1,
|
|
230
|
+
"maxLength": 255
|
|
231
|
+
},
|
|
232
|
+
"new": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"minLength": 1,
|
|
235
|
+
"maxLength": 255
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
159
240
|
}
|
|
160
241
|
}
|
|
161
242
|
}
|
data/schemas/events.json
CHANGED
|
@@ -158,6 +158,87 @@
|
|
|
158
158
|
]
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
+
},
|
|
162
|
+
"levelChange": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"old": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"enum": [
|
|
168
|
+
"info",
|
|
169
|
+
"warning",
|
|
170
|
+
"error",
|
|
171
|
+
"critical"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"new": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"enum": [
|
|
177
|
+
"info",
|
|
178
|
+
"warning",
|
|
179
|
+
"error",
|
|
180
|
+
"critical"
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"subjectChange": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"old": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"minLength": 1,
|
|
191
|
+
"maxLength": 255
|
|
192
|
+
},
|
|
193
|
+
"new": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"minLength": 1,
|
|
196
|
+
"maxLength": 255
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"deviceIdChange": {
|
|
201
|
+
"type": "object",
|
|
202
|
+
"properties": {
|
|
203
|
+
"old": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
206
|
+
},
|
|
207
|
+
"oldDeviceName": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"minLength": 1,
|
|
210
|
+
"maxLength": 255
|
|
211
|
+
},
|
|
212
|
+
"new": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
215
|
+
},
|
|
216
|
+
"newDeviceName": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"minLength": 1,
|
|
219
|
+
"maxLength": 255
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"tagsChange": {
|
|
224
|
+
"type": "object",
|
|
225
|
+
"patternProperties": {
|
|
226
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"properties": {
|
|
229
|
+
"old": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"minLength": 1,
|
|
232
|
+
"maxLength": 255
|
|
233
|
+
},
|
|
234
|
+
"new": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"minLength": 1,
|
|
237
|
+
"maxLength": 255
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
161
242
|
}
|
|
162
243
|
}
|
|
163
244
|
}
|
data/schemas/eventsExport.json
CHANGED
data/schemas/notebook.json
CHANGED
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"enum": [
|
|
45
45
|
"v1",
|
|
46
46
|
"v2",
|
|
47
|
-
"v3"
|
|
47
|
+
"v3",
|
|
48
|
+
"v4"
|
|
48
49
|
]
|
|
49
50
|
},
|
|
50
51
|
"inputs": {
|
|
@@ -402,6 +403,14 @@
|
|
|
402
403
|
"queryJson": {
|
|
403
404
|
"type": "string",
|
|
404
405
|
"maxLength": 8192
|
|
406
|
+
},
|
|
407
|
+
"format": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"enum": [
|
|
410
|
+
"csv",
|
|
411
|
+
"json"
|
|
412
|
+
],
|
|
413
|
+
"default": "csv"
|
|
405
414
|
}
|
|
406
415
|
},
|
|
407
416
|
"required": [
|
data/schemas/notebookPatch.json
CHANGED
|
@@ -366,6 +366,14 @@
|
|
|
366
366
|
"queryJson": {
|
|
367
367
|
"type": "string",
|
|
368
368
|
"maxLength": 8192
|
|
369
|
+
},
|
|
370
|
+
"format": {
|
|
371
|
+
"type": "string",
|
|
372
|
+
"enum": [
|
|
373
|
+
"csv",
|
|
374
|
+
"json"
|
|
375
|
+
],
|
|
376
|
+
"default": "csv"
|
|
369
377
|
}
|
|
370
378
|
},
|
|
371
379
|
"required": [
|
|
@@ -629,7 +637,8 @@
|
|
|
629
637
|
"enum": [
|
|
630
638
|
"v1",
|
|
631
639
|
"v2",
|
|
632
|
-
"v3"
|
|
640
|
+
"v3",
|
|
641
|
+
"v4"
|
|
633
642
|
]
|
|
634
643
|
}
|
|
635
644
|
},
|
data/schemas/notebookPost.json
CHANGED
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"enum": [
|
|
17
17
|
"v1",
|
|
18
18
|
"v2",
|
|
19
|
-
"v3"
|
|
19
|
+
"v3",
|
|
20
|
+
"v4"
|
|
20
21
|
]
|
|
21
22
|
},
|
|
22
23
|
"inputs": {
|
|
@@ -374,6 +375,14 @@
|
|
|
374
375
|
"queryJson": {
|
|
375
376
|
"type": "string",
|
|
376
377
|
"maxLength": 8192
|
|
378
|
+
},
|
|
379
|
+
"format": {
|
|
380
|
+
"type": "string",
|
|
381
|
+
"enum": [
|
|
382
|
+
"csv",
|
|
383
|
+
"json"
|
|
384
|
+
],
|
|
385
|
+
"default": "csv"
|
|
377
386
|
}
|
|
378
387
|
},
|
|
379
388
|
"required": [
|
data/schemas/notebooks.json
CHANGED
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"enum": [
|
|
52
52
|
"v1",
|
|
53
53
|
"v2",
|
|
54
|
-
"v3"
|
|
54
|
+
"v3",
|
|
55
|
+
"v4"
|
|
55
56
|
]
|
|
56
57
|
},
|
|
57
58
|
"inputs": {
|
|
@@ -409,6 +410,14 @@
|
|
|
409
410
|
"queryJson": {
|
|
410
411
|
"type": "string",
|
|
411
412
|
"maxLength": 8192
|
|
413
|
+
},
|
|
414
|
+
"format": {
|
|
415
|
+
"type": "string",
|
|
416
|
+
"enum": [
|
|
417
|
+
"csv",
|
|
418
|
+
"json"
|
|
419
|
+
],
|
|
420
|
+
"default": "csv"
|
|
412
421
|
}
|
|
413
422
|
},
|
|
414
423
|
"required": [
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: losant_rest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.23.
|
|
4
|
+
version: 1.23.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Kuehl
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|