attlaz-client 1.4.26 → 1.4.29
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.
|
@@ -8,7 +8,7 @@ export declare class WorkerConfig {
|
|
|
8
8
|
static KEY_WORKER_VERSION: string;
|
|
9
9
|
projectEnvironment: string;
|
|
10
10
|
key: string;
|
|
11
|
-
value: DataValueValue;
|
|
12
|
-
constructor(project_environment: string, key: string, value: DataValueValue);
|
|
11
|
+
value: DataValueValue | null;
|
|
12
|
+
constructor(project_environment: string, key: string, value: DataValueValue | null);
|
|
13
13
|
static parse(raw: any): WorkerConfig;
|
|
14
14
|
}
|
|
@@ -6,6 +6,7 @@ var WorkerInstanceState;
|
|
|
6
6
|
(function (WorkerInstanceState) {
|
|
7
7
|
WorkerInstanceState["Started"] = "Started";
|
|
8
8
|
WorkerInstanceState["Stopped"] = "Stopped";
|
|
9
|
+
WorkerInstanceState["Error"] = "Error";
|
|
9
10
|
})(WorkerInstanceState = exports.WorkerInstanceState || (exports.WorkerInstanceState = {}));
|
|
10
11
|
(function (WorkerInstanceState) {
|
|
11
12
|
function fromString(input) {
|
|
@@ -51,18 +51,18 @@ class LogEndpoint extends Endpoint_1.Endpoint {
|
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
save(log) {
|
|
55
|
-
|
|
54
|
+
async save(log) {
|
|
55
|
+
try {
|
|
56
56
|
let cmd = '/logstreams/' + Utils_1.Utils.base64encode(log.logStream.id) + '/logs';
|
|
57
|
-
this.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
57
|
+
const result = await this.request(cmd, log, 'POST');
|
|
58
|
+
return Log_1.Log.parse(result.getData());
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
if (this.httpClient.isDebugEnabled()) {
|
|
62
|
+
console.error('Failed to save log: ', error);
|
|
63
|
+
}
|
|
64
|
+
throw error;
|
|
65
|
+
}
|
|
66
66
|
}
|
|
67
67
|
async delete(logId) {
|
|
68
68
|
let cmd = '/logstreams/:streamId/logs/' + logId;
|