attlaz-client 1.4.1 → 1.4.2
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.
|
@@ -7,9 +7,9 @@ import { LogLevel } from '../Model/Log/LogLevel';
|
|
|
7
7
|
export declare class LogEndpoint extends Endpoint {
|
|
8
8
|
getLogs(logQuery: LogQuery): Promise<PagedResult<Log>>;
|
|
9
9
|
save(log: Log): Promise<Log>;
|
|
10
|
-
delete(
|
|
10
|
+
delete(logId: string): Promise<boolean>;
|
|
11
11
|
clear(logStreamId: LogStreamId): Promise<boolean>;
|
|
12
12
|
getInformation(logStreamId: LogStreamId): Promise<{
|
|
13
|
-
|
|
13
|
+
logLevels: Map<LogLevel, number>;
|
|
14
14
|
}>;
|
|
15
15
|
}
|
|
@@ -63,10 +63,10 @@ class LogEndpoint extends Endpoint_1.Endpoint {
|
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
async delete(
|
|
67
|
-
let cmd = '/logstreams/:streamId/logs/' +
|
|
66
|
+
async delete(logId) {
|
|
67
|
+
let cmd = '/logstreams/:streamId/logs/' + logId;
|
|
68
68
|
try {
|
|
69
|
-
const removed = await this.httpClient.request(cmd,
|
|
69
|
+
const removed = await this.httpClient.request(cmd, null, 'DELETE');
|
|
70
70
|
return removed;
|
|
71
71
|
}
|
|
72
72
|
catch (e) {
|
|
@@ -97,7 +97,8 @@ class LogEndpoint extends Endpoint_1.Endpoint {
|
|
|
97
97
|
return null;
|
|
98
98
|
}
|
|
99
99
|
// ToDO: parse data
|
|
100
|
-
|
|
100
|
+
const data = result.getData();
|
|
101
|
+
return { logLevels: data.level_count };
|
|
101
102
|
}
|
|
102
103
|
catch (error) {
|
|
103
104
|
if (this.httpClient.isDebugEnabled()) {
|