@platformatic/watt-admin 0.2.0 → 0.3.0
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.
- package/package.json +8 -8
- package/watt.json +1 -1
- package/web/backend/dist/routes/root.js +47 -1
- package/web/backend/dist/routes/root.js.map +1 -1
- package/web/backend/dist/schemas/index.js +6 -0
- package/web/backend/dist/schemas/index.js.map +1 -1
- package/web/backend/dist/utils/calc.js +127 -82
- package/web/backend/dist/utils/calc.js.map +1 -1
- package/web/backend/dist/utils/client.openapi.js +1 -1
- package/web/backend/openapi.json +214 -0
- package/web/backend/platformatic.json +1 -1
- package/web/composer/platformatic.json +1 -1
- package/web/frontend/dist/assets/{index-uJpC0VpC.js → index-B3873nEo.js} +29 -29
- package/web/frontend/dist/assets/{index-uJpC0VpC.js.map → index-B3873nEo.js.map} +1 -1
- package/web/frontend/dist/assets/{index-D-ld0Cou.css → index-DM7peTyq.css} +1 -1
- package/web/frontend/dist/index.html +2 -2
- package/web/frontend/watt.json +1 -1
package/web/backend/openapi.json
CHANGED
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"type": "array",
|
|
32
32
|
"items": {
|
|
33
33
|
"type": "object",
|
|
34
|
+
"additionalProperties": false,
|
|
34
35
|
"properties": {
|
|
35
36
|
"pid": {
|
|
36
37
|
"type": "integer"
|
|
@@ -94,6 +95,46 @@
|
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
},
|
|
98
|
+
"/runtimes/{pid}/health": {
|
|
99
|
+
"get": {
|
|
100
|
+
"parameters": [
|
|
101
|
+
{
|
|
102
|
+
"schema": {
|
|
103
|
+
"type": "number"
|
|
104
|
+
},
|
|
105
|
+
"in": "path",
|
|
106
|
+
"name": "pid",
|
|
107
|
+
"required": true
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"responses": {
|
|
111
|
+
"200": {
|
|
112
|
+
"description": "Default Response",
|
|
113
|
+
"content": {
|
|
114
|
+
"application/json": {
|
|
115
|
+
"schema": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"properties": {
|
|
119
|
+
"status": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"enum": [
|
|
122
|
+
"OK",
|
|
123
|
+
"KO"
|
|
124
|
+
],
|
|
125
|
+
"description": "Status can only be 'OK' or 'KO'"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"required": [
|
|
129
|
+
"status"
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
97
138
|
"/runtimes/{pid}/metrics": {
|
|
98
139
|
"get": {
|
|
99
140
|
"parameters": [
|
|
@@ -113,11 +154,13 @@
|
|
|
113
154
|
"application/json": {
|
|
114
155
|
"schema": {
|
|
115
156
|
"type": "object",
|
|
157
|
+
"additionalProperties": false,
|
|
116
158
|
"properties": {
|
|
117
159
|
"dataMem": {
|
|
118
160
|
"type": "array",
|
|
119
161
|
"items": {
|
|
120
162
|
"type": "object",
|
|
163
|
+
"additionalProperties": false,
|
|
121
164
|
"properties": {
|
|
122
165
|
"date": {
|
|
123
166
|
"type": "string",
|
|
@@ -153,6 +196,7 @@
|
|
|
153
196
|
"type": "array",
|
|
154
197
|
"items": {
|
|
155
198
|
"type": "object",
|
|
199
|
+
"additionalProperties": false,
|
|
156
200
|
"properties": {
|
|
157
201
|
"date": {
|
|
158
202
|
"type": "string",
|
|
@@ -176,6 +220,7 @@
|
|
|
176
220
|
"type": "array",
|
|
177
221
|
"items": {
|
|
178
222
|
"type": "object",
|
|
223
|
+
"additionalProperties": false,
|
|
179
224
|
"properties": {
|
|
180
225
|
"date": {
|
|
181
226
|
"type": "string",
|
|
@@ -203,6 +248,7 @@
|
|
|
203
248
|
"type": "array",
|
|
204
249
|
"items": {
|
|
205
250
|
"type": "object",
|
|
251
|
+
"additionalProperties": false,
|
|
206
252
|
"properties": {
|
|
207
253
|
"date": {
|
|
208
254
|
"type": "string",
|
|
@@ -263,11 +309,176 @@
|
|
|
263
309
|
"application/json": {
|
|
264
310
|
"schema": {
|
|
265
311
|
"type": "object",
|
|
312
|
+
"additionalProperties": false,
|
|
313
|
+
"properties": {
|
|
314
|
+
"dataMem": {
|
|
315
|
+
"type": "array",
|
|
316
|
+
"items": {
|
|
317
|
+
"type": "object",
|
|
318
|
+
"additionalProperties": false,
|
|
319
|
+
"properties": {
|
|
320
|
+
"date": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"format": "date-time"
|
|
323
|
+
},
|
|
324
|
+
"rss": {
|
|
325
|
+
"type": "number"
|
|
326
|
+
},
|
|
327
|
+
"totalHeap": {
|
|
328
|
+
"type": "number"
|
|
329
|
+
},
|
|
330
|
+
"usedHeap": {
|
|
331
|
+
"type": "number"
|
|
332
|
+
},
|
|
333
|
+
"newSpace": {
|
|
334
|
+
"type": "number"
|
|
335
|
+
},
|
|
336
|
+
"oldSpace": {
|
|
337
|
+
"type": "number"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"required": [
|
|
341
|
+
"date",
|
|
342
|
+
"rss",
|
|
343
|
+
"totalHeap",
|
|
344
|
+
"usedHeap",
|
|
345
|
+
"newSpace",
|
|
346
|
+
"oldSpace"
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"dataCpu": {
|
|
351
|
+
"type": "array",
|
|
352
|
+
"items": {
|
|
353
|
+
"type": "object",
|
|
354
|
+
"additionalProperties": false,
|
|
355
|
+
"properties": {
|
|
356
|
+
"date": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"format": "date-time"
|
|
359
|
+
},
|
|
360
|
+
"cpu": {
|
|
361
|
+
"type": "number"
|
|
362
|
+
},
|
|
363
|
+
"eventLoop": {
|
|
364
|
+
"type": "number"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"required": [
|
|
368
|
+
"date",
|
|
369
|
+
"cpu",
|
|
370
|
+
"eventLoop"
|
|
371
|
+
]
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"dataLatency": {
|
|
375
|
+
"type": "array",
|
|
376
|
+
"items": {
|
|
377
|
+
"type": "object",
|
|
378
|
+
"additionalProperties": false,
|
|
379
|
+
"properties": {
|
|
380
|
+
"date": {
|
|
381
|
+
"type": "string",
|
|
382
|
+
"format": "date-time"
|
|
383
|
+
},
|
|
384
|
+
"p90": {
|
|
385
|
+
"type": "number"
|
|
386
|
+
},
|
|
387
|
+
"p95": {
|
|
388
|
+
"type": "number"
|
|
389
|
+
},
|
|
390
|
+
"p99": {
|
|
391
|
+
"type": "number"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"required": [
|
|
395
|
+
"date",
|
|
396
|
+
"p90",
|
|
397
|
+
"p95",
|
|
398
|
+
"p99"
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"dataReq": {
|
|
403
|
+
"type": "array",
|
|
404
|
+
"items": {
|
|
405
|
+
"type": "object",
|
|
406
|
+
"additionalProperties": false,
|
|
407
|
+
"properties": {
|
|
408
|
+
"date": {
|
|
409
|
+
"type": "string",
|
|
410
|
+
"format": "date-time"
|
|
411
|
+
},
|
|
412
|
+
"count": {
|
|
413
|
+
"type": "number"
|
|
414
|
+
},
|
|
415
|
+
"rps": {
|
|
416
|
+
"type": "number"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"required": [
|
|
420
|
+
"date",
|
|
421
|
+
"count",
|
|
422
|
+
"rps"
|
|
423
|
+
]
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"required": [
|
|
428
|
+
"dataMem",
|
|
429
|
+
"dataCpu",
|
|
430
|
+
"dataLatency",
|
|
431
|
+
"dataReq"
|
|
432
|
+
]
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
"/runtimes/{pid}/metrics/{serviceId}/{workerId}": {
|
|
441
|
+
"get": {
|
|
442
|
+
"parameters": [
|
|
443
|
+
{
|
|
444
|
+
"schema": {
|
|
445
|
+
"type": "number"
|
|
446
|
+
},
|
|
447
|
+
"in": "path",
|
|
448
|
+
"name": "pid",
|
|
449
|
+
"required": true
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"schema": {
|
|
453
|
+
"type": "string"
|
|
454
|
+
},
|
|
455
|
+
"in": "path",
|
|
456
|
+
"name": "serviceId",
|
|
457
|
+
"required": true
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"schema": {
|
|
461
|
+
"type": "number"
|
|
462
|
+
},
|
|
463
|
+
"in": "path",
|
|
464
|
+
"name": "workerId",
|
|
465
|
+
"required": true
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"responses": {
|
|
469
|
+
"200": {
|
|
470
|
+
"description": "Default Response",
|
|
471
|
+
"content": {
|
|
472
|
+
"application/json": {
|
|
473
|
+
"schema": {
|
|
474
|
+
"type": "object",
|
|
475
|
+
"additionalProperties": false,
|
|
266
476
|
"properties": {
|
|
267
477
|
"dataMem": {
|
|
268
478
|
"type": "array",
|
|
269
479
|
"items": {
|
|
270
480
|
"type": "object",
|
|
481
|
+
"additionalProperties": false,
|
|
271
482
|
"properties": {
|
|
272
483
|
"date": {
|
|
273
484
|
"type": "string",
|
|
@@ -303,6 +514,7 @@
|
|
|
303
514
|
"type": "array",
|
|
304
515
|
"items": {
|
|
305
516
|
"type": "object",
|
|
517
|
+
"additionalProperties": false,
|
|
306
518
|
"properties": {
|
|
307
519
|
"date": {
|
|
308
520
|
"type": "string",
|
|
@@ -326,6 +538,7 @@
|
|
|
326
538
|
"type": "array",
|
|
327
539
|
"items": {
|
|
328
540
|
"type": "object",
|
|
541
|
+
"additionalProperties": false,
|
|
329
542
|
"properties": {
|
|
330
543
|
"date": {
|
|
331
544
|
"type": "string",
|
|
@@ -353,6 +566,7 @@
|
|
|
353
566
|
"type": "array",
|
|
354
567
|
"items": {
|
|
355
568
|
"type": "object",
|
|
569
|
+
"additionalProperties": false,
|
|
356
570
|
"properties": {
|
|
357
571
|
"date": {
|
|
358
572
|
"type": "string",
|