losant_rest 1.10.2 → 1.10.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,54 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "flowVersion": {
6
+ "type": "string",
7
+ "minLength": 1,
8
+ "maxLength": 255
9
+ },
10
+ "flowVersionId": {
11
+ "type": "string",
12
+ "pattern": "^[A-Fa-f\\d]{24}$"
13
+ },
14
+ "deviceId": {
15
+ "type": "string",
16
+ "pattern": "^[A-Fa-f\\d]{24}$"
17
+ },
18
+ "start": {
19
+ "type": "string",
20
+ "format": "date-time"
21
+ },
22
+ "end": {
23
+ "type": "string",
24
+ "format": "date-time"
25
+ },
26
+ "resolution": {
27
+ "type": "number"
28
+ },
29
+ "metrics": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "object",
33
+ "properties": {
34
+ "time": {
35
+ "type": "string",
36
+ "format": "date-time"
37
+ },
38
+ "pathsFailed": {
39
+ "type": "number"
40
+ },
41
+ "pathsCompleted": {
42
+ "type": "number"
43
+ },
44
+ "runCount": {
45
+ "type": "number"
46
+ },
47
+ "wallTime": {
48
+ "type": "number"
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
@@ -216,23 +216,27 @@
216
216
  "file.upload",
217
217
  "files.get",
218
218
  "files.post",
219
+ "flow.clearStorageEntries",
219
220
  "flow.debug",
220
221
  "flow.delete",
221
- "flow.clearStorageEntries",
222
+ "flow.errors",
222
223
  "flow.get",
223
224
  "flow.getStorageEntries",
224
225
  "flow.log",
225
226
  "flow.patch",
226
227
  "flow.pressVirtualButton",
227
228
  "flow.setStorageEntry",
229
+ "flow.stats",
228
230
  "flows.get",
229
231
  "flows.getByVersion",
230
232
  "flows.import",
231
233
  "flows.post",
232
234
  "flowVersion.delete",
235
+ "flowVersion.errors",
233
236
  "flowVersion.get",
234
237
  "flowVersion.log",
235
238
  "flowVersion.patch",
239
+ "flowVersion.stats",
236
240
  "flowVersions.get",
237
241
  "flowVersions.post",
238
242
  "integration.delete",
@@ -141,6 +141,95 @@
141
141
  ],
142
142
  "additionalProperties": false
143
143
  },
144
+ {
145
+ "type": "object",
146
+ "properties": {
147
+ "inputType": {
148
+ "type": "string",
149
+ "enum": [
150
+ "deviceConnectionHistory"
151
+ ]
152
+ },
153
+ "fileName": {
154
+ "oneOf": [
155
+ {
156
+ "type": "string",
157
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
158
+ },
159
+ {
160
+ "type": "string",
161
+ "minLength": 4,
162
+ "maxLength": 255,
163
+ "pattern": ".*{{.+}}.*"
164
+ }
165
+ ]
166
+ },
167
+ "deviceTags": {
168
+ "type": "array",
169
+ "maxItems": 100,
170
+ "items": {
171
+ "type": "object",
172
+ "properties": {
173
+ "key": {
174
+ "oneOf": [
175
+ {
176
+ "type": "string",
177
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
178
+ },
179
+ {
180
+ "type": "string",
181
+ "minLength": 4,
182
+ "maxLength": 255,
183
+ "pattern": ".*{{.+}}.*"
184
+ }
185
+ ]
186
+ },
187
+ "value": {
188
+ "type": "string",
189
+ "minLength": 1,
190
+ "maxLength": 255
191
+ }
192
+ },
193
+ "additionalProperties": false
194
+ }
195
+ },
196
+ "deviceIds": {
197
+ "type": "array",
198
+ "maxItems": 100,
199
+ "items": {
200
+ "oneOf": [
201
+ {
202
+ "type": "string",
203
+ "pattern": "^[A-Fa-f\\d]{24}$"
204
+ },
205
+ {
206
+ "type": "string",
207
+ "minLength": 4,
208
+ "maxLength": 255,
209
+ "pattern": ".*{{.+}}.*"
210
+ }
211
+ ]
212
+ }
213
+ },
214
+ "queryJson": {
215
+ "type": "string",
216
+ "maxLength": 8192
217
+ },
218
+ "start": {
219
+ "type": "number"
220
+ },
221
+ "end": {
222
+ "type": "number"
223
+ }
224
+ },
225
+ "required": [
226
+ "inputType",
227
+ "fileName",
228
+ "start",
229
+ "end"
230
+ ],
231
+ "additionalProperties": false
232
+ },
144
233
  {
145
234
  "type": "object",
146
235
  "properties": {
@@ -113,6 +113,95 @@
113
113
  ],
114
114
  "additionalProperties": false
115
115
  },
116
+ {
117
+ "type": "object",
118
+ "properties": {
119
+ "inputType": {
120
+ "type": "string",
121
+ "enum": [
122
+ "deviceConnectionHistory"
123
+ ]
124
+ },
125
+ "fileName": {
126
+ "oneOf": [
127
+ {
128
+ "type": "string",
129
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
130
+ },
131
+ {
132
+ "type": "string",
133
+ "minLength": 4,
134
+ "maxLength": 255,
135
+ "pattern": ".*{{.+}}.*"
136
+ }
137
+ ]
138
+ },
139
+ "deviceTags": {
140
+ "type": "array",
141
+ "maxItems": 100,
142
+ "items": {
143
+ "type": "object",
144
+ "properties": {
145
+ "key": {
146
+ "oneOf": [
147
+ {
148
+ "type": "string",
149
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
150
+ },
151
+ {
152
+ "type": "string",
153
+ "minLength": 4,
154
+ "maxLength": 255,
155
+ "pattern": ".*{{.+}}.*"
156
+ }
157
+ ]
158
+ },
159
+ "value": {
160
+ "type": "string",
161
+ "minLength": 1,
162
+ "maxLength": 255
163
+ }
164
+ },
165
+ "additionalProperties": false
166
+ }
167
+ },
168
+ "deviceIds": {
169
+ "type": "array",
170
+ "maxItems": 100,
171
+ "items": {
172
+ "oneOf": [
173
+ {
174
+ "type": "string",
175
+ "pattern": "^[A-Fa-f\\d]{24}$"
176
+ },
177
+ {
178
+ "type": "string",
179
+ "minLength": 4,
180
+ "maxLength": 255,
181
+ "pattern": ".*{{.+}}.*"
182
+ }
183
+ ]
184
+ }
185
+ },
186
+ "queryJson": {
187
+ "type": "string",
188
+ "maxLength": 8192
189
+ },
190
+ "start": {
191
+ "type": "number"
192
+ },
193
+ "end": {
194
+ "type": "number"
195
+ }
196
+ },
197
+ "required": [
198
+ "inputType",
199
+ "fileName",
200
+ "start",
201
+ "end"
202
+ ],
203
+ "additionalProperties": false
204
+ },
116
205
  {
117
206
  "type": "object",
118
207
  "properties": {
@@ -113,6 +113,95 @@
113
113
  ],
114
114
  "additionalProperties": false
115
115
  },
116
+ {
117
+ "type": "object",
118
+ "properties": {
119
+ "inputType": {
120
+ "type": "string",
121
+ "enum": [
122
+ "deviceConnectionHistory"
123
+ ]
124
+ },
125
+ "fileName": {
126
+ "oneOf": [
127
+ {
128
+ "type": "string",
129
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
130
+ },
131
+ {
132
+ "type": "string",
133
+ "minLength": 4,
134
+ "maxLength": 255,
135
+ "pattern": ".*{{.+}}.*"
136
+ }
137
+ ]
138
+ },
139
+ "deviceTags": {
140
+ "type": "array",
141
+ "maxItems": 100,
142
+ "items": {
143
+ "type": "object",
144
+ "properties": {
145
+ "key": {
146
+ "oneOf": [
147
+ {
148
+ "type": "string",
149
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
150
+ },
151
+ {
152
+ "type": "string",
153
+ "minLength": 4,
154
+ "maxLength": 255,
155
+ "pattern": ".*{{.+}}.*"
156
+ }
157
+ ]
158
+ },
159
+ "value": {
160
+ "type": "string",
161
+ "minLength": 1,
162
+ "maxLength": 255
163
+ }
164
+ },
165
+ "additionalProperties": false
166
+ }
167
+ },
168
+ "deviceIds": {
169
+ "type": "array",
170
+ "maxItems": 100,
171
+ "items": {
172
+ "oneOf": [
173
+ {
174
+ "type": "string",
175
+ "pattern": "^[A-Fa-f\\d]{24}$"
176
+ },
177
+ {
178
+ "type": "string",
179
+ "minLength": 4,
180
+ "maxLength": 255,
181
+ "pattern": ".*{{.+}}.*"
182
+ }
183
+ ]
184
+ }
185
+ },
186
+ "queryJson": {
187
+ "type": "string",
188
+ "maxLength": 8192
189
+ },
190
+ "start": {
191
+ "type": "number"
192
+ },
193
+ "end": {
194
+ "type": "number"
195
+ }
196
+ },
197
+ "required": [
198
+ "inputType",
199
+ "fileName",
200
+ "start",
201
+ "end"
202
+ ],
203
+ "additionalProperties": false
204
+ },
116
205
  {
117
206
  "type": "object",
118
207
  "properties": {
@@ -148,6 +148,95 @@
148
148
  ],
149
149
  "additionalProperties": false
150
150
  },
151
+ {
152
+ "type": "object",
153
+ "properties": {
154
+ "inputType": {
155
+ "type": "string",
156
+ "enum": [
157
+ "deviceConnectionHistory"
158
+ ]
159
+ },
160
+ "fileName": {
161
+ "oneOf": [
162
+ {
163
+ "type": "string",
164
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
165
+ },
166
+ {
167
+ "type": "string",
168
+ "minLength": 4,
169
+ "maxLength": 255,
170
+ "pattern": ".*{{.+}}.*"
171
+ }
172
+ ]
173
+ },
174
+ "deviceTags": {
175
+ "type": "array",
176
+ "maxItems": 100,
177
+ "items": {
178
+ "type": "object",
179
+ "properties": {
180
+ "key": {
181
+ "oneOf": [
182
+ {
183
+ "type": "string",
184
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
185
+ },
186
+ {
187
+ "type": "string",
188
+ "minLength": 4,
189
+ "maxLength": 255,
190
+ "pattern": ".*{{.+}}.*"
191
+ }
192
+ ]
193
+ },
194
+ "value": {
195
+ "type": "string",
196
+ "minLength": 1,
197
+ "maxLength": 255
198
+ }
199
+ },
200
+ "additionalProperties": false
201
+ }
202
+ },
203
+ "deviceIds": {
204
+ "type": "array",
205
+ "maxItems": 100,
206
+ "items": {
207
+ "oneOf": [
208
+ {
209
+ "type": "string",
210
+ "pattern": "^[A-Fa-f\\d]{24}$"
211
+ },
212
+ {
213
+ "type": "string",
214
+ "minLength": 4,
215
+ "maxLength": 255,
216
+ "pattern": ".*{{.+}}.*"
217
+ }
218
+ ]
219
+ }
220
+ },
221
+ "queryJson": {
222
+ "type": "string",
223
+ "maxLength": 8192
224
+ },
225
+ "start": {
226
+ "type": "number"
227
+ },
228
+ "end": {
229
+ "type": "number"
230
+ }
231
+ },
232
+ "required": [
233
+ "inputType",
234
+ "fileName",
235
+ "start",
236
+ "end"
237
+ ],
238
+ "additionalProperties": false
239
+ },
151
240
  {
152
241
  "type": "object",
153
242
  "properties": {