attlaz-client 1.10.6 → 1.10.8
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.
|
@@ -5,5 +5,13 @@ export declare class FlowRunSummary extends FlowRun {
|
|
|
5
5
|
runDuration: number;
|
|
6
6
|
pendingDuration: number;
|
|
7
7
|
status: FlowRunStatus;
|
|
8
|
+
networkUpload: number | null;
|
|
9
|
+
networkDownload: number | null;
|
|
10
|
+
fileRead: number | null;
|
|
11
|
+
fileWrite: number | null;
|
|
12
|
+
cpuAverage: number | null;
|
|
13
|
+
cpuMaximum: number | null;
|
|
14
|
+
memoryAverage: number | null;
|
|
15
|
+
memoryMaximum: number | null;
|
|
8
16
|
static parse(rawFlowRunSummary: any): FlowRunSummary;
|
|
9
17
|
}
|
|
@@ -6,12 +6,28 @@ export class FlowRunSummary extends FlowRun {
|
|
|
6
6
|
runDuration;
|
|
7
7
|
pendingDuration;
|
|
8
8
|
status = FlowRunStatus.Unknown;
|
|
9
|
+
networkUpload = null;
|
|
10
|
+
networkDownload = null;
|
|
11
|
+
fileRead = null;
|
|
12
|
+
fileWrite = null;
|
|
13
|
+
cpuAverage = null;
|
|
14
|
+
cpuMaximum = null;
|
|
15
|
+
memoryAverage = null;
|
|
16
|
+
memoryMaximum = null;
|
|
9
17
|
static parse(rawFlowRunSummary) {
|
|
10
18
|
const flowRunSummary = FlowRun.parse(rawFlowRunSummary);
|
|
11
19
|
flowRunSummary.time = Utils.parseRawDate(rawFlowRunSummary.time);
|
|
12
20
|
flowRunSummary.runDuration = rawFlowRunSummary.run_duration;
|
|
13
21
|
flowRunSummary.pendingDuration = rawFlowRunSummary.pending_duration;
|
|
14
22
|
flowRunSummary.status = FlowRunStatus.fromString(rawFlowRunSummary.status);
|
|
23
|
+
flowRunSummary.networkUpload = rawFlowRunSummary.network_upload;
|
|
24
|
+
flowRunSummary.networkDownload = rawFlowRunSummary.network_download;
|
|
25
|
+
flowRunSummary.fileRead = rawFlowRunSummary.file_read;
|
|
26
|
+
flowRunSummary.fileWrite = rawFlowRunSummary.file_write;
|
|
27
|
+
flowRunSummary.cpuAverage = rawFlowRunSummary.cpu_average;
|
|
28
|
+
flowRunSummary.cpuMaximum = rawFlowRunSummary.cpu_maximum;
|
|
29
|
+
flowRunSummary.memoryAverage = rawFlowRunSummary.memory_average;
|
|
30
|
+
flowRunSummary.memoryMaximum = rawFlowRunSummary.memory_maximum;
|
|
15
31
|
return flowRunSummary;
|
|
16
32
|
}
|
|
17
33
|
}
|
|
@@ -76,7 +76,7 @@ export class ChannelEndpoint extends Endpoint {
|
|
|
76
76
|
}
|
|
77
77
|
async save(subscriberChannel) {
|
|
78
78
|
try {
|
|
79
|
-
const url = '/channels
|
|
79
|
+
const url = '/channels/';
|
|
80
80
|
const result = await this.requestObject(url, subscriberChannel, Channel.parse, 'POST');
|
|
81
81
|
const updatedChannel = result.getData();
|
|
82
82
|
if (updatedChannel === null) {
|
package/dist/Service/Endpoint.js
CHANGED
|
@@ -104,7 +104,7 @@ export class Endpoint {
|
|
|
104
104
|
*/
|
|
105
105
|
// TODO: temporary check until we know the API is fully upgraded
|
|
106
106
|
if (requestResponse === null || requestResponse === undefined) {
|
|
107
|
-
throw new Error('Unable to parse object');
|
|
107
|
+
throw new Error('Unable to parse object: response is empty');
|
|
108
108
|
}
|
|
109
109
|
if ((requestResponse.hasOwnProperty('data') && !requestResponse.hasOwnProperty('id')) && requestResponse.data !== undefined) {
|
|
110
110
|
console.error('Response for object "' + action + '" seem to still use old "data" property', { requestResponse });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "attlaz-client",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.8",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
53
53
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
54
54
|
"rollup-plugin-typescript": "^1.0.1",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
56
|
-
"@typescript-eslint/parser": "^
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
56
|
+
"@typescript-eslint/parser": "^6.7.0",
|
|
57
57
|
"eslint": "^8.42.0",
|
|
58
58
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
59
59
|
"eslint-plugin-import": "^2.27.5",
|