losant_rest 1.23.0 → 1.23.1
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 +333 -0
- data/lib/platform_rest/client.rb +2 -2
- data/lib/platform_rest/version.rb +1 -1
- data/schemas/dashboardUpdateEvents.json +25 -0
- 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 +8 -0
- data/schemas/notebookPatch.json +8 -0
- data/schemas/notebookPost.json +8 -0
- data/schemas/notebooks.json +8 -0
- 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: 2641c45ed90ffd17c776c0f5e500d63c4a76e09e725aa2cd9a5260d7148e0f93
|
|
4
|
+
data.tar.gz: 22becba99dbba58d27f6a80b0d0574b350897e8adb9efd946f934fdd0159a732
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5c3a8b853ab354e6ec2f7a736f4f8724cebd02ee4d8afadfdf110e0e63f08ef76166b29a48053b2523057ad2f0270b896d36778d3dafbc3f0ff80cf872021b9
|
|
7
|
+
data.tar.gz: efa89c8e3a2531790bcdf6d93d2144de61ebe5815433d7978c88d286ef8bf510ba9a12b680ab2cdb4a36905078f14a708f5504e9c73be828964417c4df8b1dba
|
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
|
|
@@ -87162,6 +87187,87 @@ Schema for a single Event
|
|
|
87162
87187
|
]
|
|
87163
87188
|
}
|
|
87164
87189
|
}
|
|
87190
|
+
},
|
|
87191
|
+
"levelChange": {
|
|
87192
|
+
"type": "object",
|
|
87193
|
+
"properties": {
|
|
87194
|
+
"old": {
|
|
87195
|
+
"type": "string",
|
|
87196
|
+
"enum": [
|
|
87197
|
+
"info",
|
|
87198
|
+
"warning",
|
|
87199
|
+
"error",
|
|
87200
|
+
"critical"
|
|
87201
|
+
]
|
|
87202
|
+
},
|
|
87203
|
+
"new": {
|
|
87204
|
+
"type": "string",
|
|
87205
|
+
"enum": [
|
|
87206
|
+
"info",
|
|
87207
|
+
"warning",
|
|
87208
|
+
"error",
|
|
87209
|
+
"critical"
|
|
87210
|
+
]
|
|
87211
|
+
}
|
|
87212
|
+
}
|
|
87213
|
+
},
|
|
87214
|
+
"subjectChange": {
|
|
87215
|
+
"type": "object",
|
|
87216
|
+
"properties": {
|
|
87217
|
+
"old": {
|
|
87218
|
+
"type": "string",
|
|
87219
|
+
"minLength": 1,
|
|
87220
|
+
"maxLength": 255
|
|
87221
|
+
},
|
|
87222
|
+
"new": {
|
|
87223
|
+
"type": "string",
|
|
87224
|
+
"minLength": 1,
|
|
87225
|
+
"maxLength": 255
|
|
87226
|
+
}
|
|
87227
|
+
}
|
|
87228
|
+
},
|
|
87229
|
+
"deviceIdChange": {
|
|
87230
|
+
"type": "object",
|
|
87231
|
+
"properties": {
|
|
87232
|
+
"old": {
|
|
87233
|
+
"type": "string",
|
|
87234
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
87235
|
+
},
|
|
87236
|
+
"oldDeviceName": {
|
|
87237
|
+
"type": "string",
|
|
87238
|
+
"minLength": 1,
|
|
87239
|
+
"maxLength": 255
|
|
87240
|
+
},
|
|
87241
|
+
"new": {
|
|
87242
|
+
"type": "string",
|
|
87243
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
87244
|
+
},
|
|
87245
|
+
"newDeviceName": {
|
|
87246
|
+
"type": "string",
|
|
87247
|
+
"minLength": 1,
|
|
87248
|
+
"maxLength": 255
|
|
87249
|
+
}
|
|
87250
|
+
}
|
|
87251
|
+
},
|
|
87252
|
+
"tagsChange": {
|
|
87253
|
+
"type": "object",
|
|
87254
|
+
"patternProperties": {
|
|
87255
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
|
87256
|
+
"type": "object",
|
|
87257
|
+
"properties": {
|
|
87258
|
+
"old": {
|
|
87259
|
+
"type": "string",
|
|
87260
|
+
"minLength": 1,
|
|
87261
|
+
"maxLength": 255
|
|
87262
|
+
},
|
|
87263
|
+
"new": {
|
|
87264
|
+
"type": "string",
|
|
87265
|
+
"minLength": 1,
|
|
87266
|
+
"maxLength": 255
|
|
87267
|
+
}
|
|
87268
|
+
}
|
|
87269
|
+
}
|
|
87270
|
+
}
|
|
87165
87271
|
}
|
|
87166
87272
|
}
|
|
87167
87273
|
}
|
|
@@ -87215,6 +87321,31 @@ Schema for the body of an Event modification request
|
|
|
87215
87321
|
"resolved"
|
|
87216
87322
|
]
|
|
87217
87323
|
},
|
|
87324
|
+
"level": {
|
|
87325
|
+
"type": "string",
|
|
87326
|
+
"enum": [
|
|
87327
|
+
"info",
|
|
87328
|
+
"warning",
|
|
87329
|
+
"error",
|
|
87330
|
+
"critical"
|
|
87331
|
+
]
|
|
87332
|
+
},
|
|
87333
|
+
"subject": {
|
|
87334
|
+
"type": "string",
|
|
87335
|
+
"minLength": 1,
|
|
87336
|
+
"maxLength": 255
|
|
87337
|
+
},
|
|
87338
|
+
"deviceId": {
|
|
87339
|
+
"oneOf": [
|
|
87340
|
+
{
|
|
87341
|
+
"type": "string",
|
|
87342
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
87343
|
+
},
|
|
87344
|
+
{
|
|
87345
|
+
"type": "null"
|
|
87346
|
+
}
|
|
87347
|
+
]
|
|
87348
|
+
},
|
|
87218
87349
|
"comment": {
|
|
87219
87350
|
"type": "string",
|
|
87220
87351
|
"maxLength": 32767
|
|
@@ -87411,6 +87542,87 @@ Schema for an event plus a count of new events
|
|
|
87411
87542
|
]
|
|
87412
87543
|
}
|
|
87413
87544
|
}
|
|
87545
|
+
},
|
|
87546
|
+
"levelChange": {
|
|
87547
|
+
"type": "object",
|
|
87548
|
+
"properties": {
|
|
87549
|
+
"old": {
|
|
87550
|
+
"type": "string",
|
|
87551
|
+
"enum": [
|
|
87552
|
+
"info",
|
|
87553
|
+
"warning",
|
|
87554
|
+
"error",
|
|
87555
|
+
"critical"
|
|
87556
|
+
]
|
|
87557
|
+
},
|
|
87558
|
+
"new": {
|
|
87559
|
+
"type": "string",
|
|
87560
|
+
"enum": [
|
|
87561
|
+
"info",
|
|
87562
|
+
"warning",
|
|
87563
|
+
"error",
|
|
87564
|
+
"critical"
|
|
87565
|
+
]
|
|
87566
|
+
}
|
|
87567
|
+
}
|
|
87568
|
+
},
|
|
87569
|
+
"subjectChange": {
|
|
87570
|
+
"type": "object",
|
|
87571
|
+
"properties": {
|
|
87572
|
+
"old": {
|
|
87573
|
+
"type": "string",
|
|
87574
|
+
"minLength": 1,
|
|
87575
|
+
"maxLength": 255
|
|
87576
|
+
},
|
|
87577
|
+
"new": {
|
|
87578
|
+
"type": "string",
|
|
87579
|
+
"minLength": 1,
|
|
87580
|
+
"maxLength": 255
|
|
87581
|
+
}
|
|
87582
|
+
}
|
|
87583
|
+
},
|
|
87584
|
+
"deviceIdChange": {
|
|
87585
|
+
"type": "object",
|
|
87586
|
+
"properties": {
|
|
87587
|
+
"old": {
|
|
87588
|
+
"type": "string",
|
|
87589
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
87590
|
+
},
|
|
87591
|
+
"oldDeviceName": {
|
|
87592
|
+
"type": "string",
|
|
87593
|
+
"minLength": 1,
|
|
87594
|
+
"maxLength": 255
|
|
87595
|
+
},
|
|
87596
|
+
"new": {
|
|
87597
|
+
"type": "string",
|
|
87598
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
87599
|
+
},
|
|
87600
|
+
"newDeviceName": {
|
|
87601
|
+
"type": "string",
|
|
87602
|
+
"minLength": 1,
|
|
87603
|
+
"maxLength": 255
|
|
87604
|
+
}
|
|
87605
|
+
}
|
|
87606
|
+
},
|
|
87607
|
+
"tagsChange": {
|
|
87608
|
+
"type": "object",
|
|
87609
|
+
"patternProperties": {
|
|
87610
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
|
87611
|
+
"type": "object",
|
|
87612
|
+
"properties": {
|
|
87613
|
+
"old": {
|
|
87614
|
+
"type": "string",
|
|
87615
|
+
"minLength": 1,
|
|
87616
|
+
"maxLength": 255
|
|
87617
|
+
},
|
|
87618
|
+
"new": {
|
|
87619
|
+
"type": "string",
|
|
87620
|
+
"minLength": 1,
|
|
87621
|
+
"maxLength": 255
|
|
87622
|
+
}
|
|
87623
|
+
}
|
|
87624
|
+
}
|
|
87625
|
+
}
|
|
87414
87626
|
}
|
|
87415
87627
|
}
|
|
87416
87628
|
}
|
|
@@ -87772,6 +87984,87 @@ Schema for a collection of Events
|
|
|
87772
87984
|
]
|
|
87773
87985
|
}
|
|
87774
87986
|
}
|
|
87987
|
+
},
|
|
87988
|
+
"levelChange": {
|
|
87989
|
+
"type": "object",
|
|
87990
|
+
"properties": {
|
|
87991
|
+
"old": {
|
|
87992
|
+
"type": "string",
|
|
87993
|
+
"enum": [
|
|
87994
|
+
"info",
|
|
87995
|
+
"warning",
|
|
87996
|
+
"error",
|
|
87997
|
+
"critical"
|
|
87998
|
+
]
|
|
87999
|
+
},
|
|
88000
|
+
"new": {
|
|
88001
|
+
"type": "string",
|
|
88002
|
+
"enum": [
|
|
88003
|
+
"info",
|
|
88004
|
+
"warning",
|
|
88005
|
+
"error",
|
|
88006
|
+
"critical"
|
|
88007
|
+
]
|
|
88008
|
+
}
|
|
88009
|
+
}
|
|
88010
|
+
},
|
|
88011
|
+
"subjectChange": {
|
|
88012
|
+
"type": "object",
|
|
88013
|
+
"properties": {
|
|
88014
|
+
"old": {
|
|
88015
|
+
"type": "string",
|
|
88016
|
+
"minLength": 1,
|
|
88017
|
+
"maxLength": 255
|
|
88018
|
+
},
|
|
88019
|
+
"new": {
|
|
88020
|
+
"type": "string",
|
|
88021
|
+
"minLength": 1,
|
|
88022
|
+
"maxLength": 255
|
|
88023
|
+
}
|
|
88024
|
+
}
|
|
88025
|
+
},
|
|
88026
|
+
"deviceIdChange": {
|
|
88027
|
+
"type": "object",
|
|
88028
|
+
"properties": {
|
|
88029
|
+
"old": {
|
|
88030
|
+
"type": "string",
|
|
88031
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
88032
|
+
},
|
|
88033
|
+
"oldDeviceName": {
|
|
88034
|
+
"type": "string",
|
|
88035
|
+
"minLength": 1,
|
|
88036
|
+
"maxLength": 255
|
|
88037
|
+
},
|
|
88038
|
+
"new": {
|
|
88039
|
+
"type": "string",
|
|
88040
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
88041
|
+
},
|
|
88042
|
+
"newDeviceName": {
|
|
88043
|
+
"type": "string",
|
|
88044
|
+
"minLength": 1,
|
|
88045
|
+
"maxLength": 255
|
|
88046
|
+
}
|
|
88047
|
+
}
|
|
88048
|
+
},
|
|
88049
|
+
"tagsChange": {
|
|
88050
|
+
"type": "object",
|
|
88051
|
+
"patternProperties": {
|
|
88052
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
|
88053
|
+
"type": "object",
|
|
88054
|
+
"properties": {
|
|
88055
|
+
"old": {
|
|
88056
|
+
"type": "string",
|
|
88057
|
+
"minLength": 1,
|
|
88058
|
+
"maxLength": 255
|
|
88059
|
+
},
|
|
88060
|
+
"new": {
|
|
88061
|
+
"type": "string",
|
|
88062
|
+
"minLength": 1,
|
|
88063
|
+
"maxLength": 255
|
|
88064
|
+
}
|
|
88065
|
+
}
|
|
88066
|
+
}
|
|
88067
|
+
}
|
|
87775
88068
|
}
|
|
87776
88069
|
}
|
|
87777
88070
|
}
|
|
@@ -89531,6 +89824,14 @@ Export options for events
|
|
|
89531
89824
|
}
|
|
89532
89825
|
},
|
|
89533
89826
|
"additionalProperties": false
|
|
89827
|
+
},
|
|
89828
|
+
"format": {
|
|
89829
|
+
"type": "string",
|
|
89830
|
+
"enum": [
|
|
89831
|
+
"csv",
|
|
89832
|
+
"json"
|
|
89833
|
+
],
|
|
89834
|
+
"default": "csv"
|
|
89534
89835
|
}
|
|
89535
89836
|
},
|
|
89536
89837
|
"additionalProperties": false
|
|
@@ -165050,6 +165351,14 @@ Schema for a single Notebook
|
|
|
165050
165351
|
"queryJson": {
|
|
165051
165352
|
"type": "string",
|
|
165052
165353
|
"maxLength": 8192
|
|
165354
|
+
},
|
|
165355
|
+
"format": {
|
|
165356
|
+
"type": "string",
|
|
165357
|
+
"enum": [
|
|
165358
|
+
"csv",
|
|
165359
|
+
"json"
|
|
165360
|
+
],
|
|
165361
|
+
"default": "csv"
|
|
165053
165362
|
}
|
|
165054
165363
|
},
|
|
165055
165364
|
"required": [
|
|
@@ -166195,6 +166504,14 @@ Schema for the body of a Notebook modification request
|
|
|
166195
166504
|
"queryJson": {
|
|
166196
166505
|
"type": "string",
|
|
166197
166506
|
"maxLength": 8192
|
|
166507
|
+
},
|
|
166508
|
+
"format": {
|
|
166509
|
+
"type": "string",
|
|
166510
|
+
"enum": [
|
|
166511
|
+
"csv",
|
|
166512
|
+
"json"
|
|
166513
|
+
],
|
|
166514
|
+
"default": "csv"
|
|
166198
166515
|
}
|
|
166199
166516
|
},
|
|
166200
166517
|
"required": [
|
|
@@ -166858,6 +167175,14 @@ Schema for the body of an Notebook creation request
|
|
|
166858
167175
|
"queryJson": {
|
|
166859
167176
|
"type": "string",
|
|
166860
167177
|
"maxLength": 8192
|
|
167178
|
+
},
|
|
167179
|
+
"format": {
|
|
167180
|
+
"type": "string",
|
|
167181
|
+
"enum": [
|
|
167182
|
+
"csv",
|
|
167183
|
+
"json"
|
|
167184
|
+
],
|
|
167185
|
+
"default": "csv"
|
|
166861
167186
|
}
|
|
166862
167187
|
},
|
|
166863
167188
|
"required": [
|
|
@@ -167551,6 +167876,14 @@ Schema for a collection of Notebooks
|
|
|
167551
167876
|
"queryJson": {
|
|
167552
167877
|
"type": "string",
|
|
167553
167878
|
"maxLength": 8192
|
|
167879
|
+
},
|
|
167880
|
+
"format": {
|
|
167881
|
+
"type": "string",
|
|
167882
|
+
"enum": [
|
|
167883
|
+
"csv",
|
|
167884
|
+
"json"
|
|
167885
|
+
],
|
|
167886
|
+
"default": "csv"
|
|
167554
167887
|
}
|
|
167555
167888
|
},
|
|
167556
167889
|
"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.1
|
|
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.1"
|
|
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
|
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
data/schemas/notebookPatch.json
CHANGED
data/schemas/notebookPost.json
CHANGED
data/schemas/notebooks.json
CHANGED
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.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Kuehl
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|