aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/logs/logs-command.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/logs/logs-command.ts')
-rw-r--r--shared/extra-utils/logs/logs-command.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/shared/extra-utils/logs/logs-command.ts b/shared/extra-utils/logs/logs-command.ts
index 5912e814f..7b5c66c0c 100644
--- a/shared/extra-utils/logs/logs-command.ts
+++ b/shared/extra-utils/logs/logs-command.ts
@@ -8,15 +8,16 @@ export class LogsCommand extends AbstractCommand {
8 startDate: Date 8 startDate: Date
9 endDate?: Date 9 endDate?: Date
10 level?: LogLevel 10 level?: LogLevel
11 tagsOneOf?: string[]
11 }) { 12 }) {
12 const { startDate, endDate, level } = options 13 const { startDate, endDate, tagsOneOf, level } = options
13 const path = '/api/v1/server/logs' 14 const path = '/api/v1/server/logs'
14 15
15 return this.getRequestBody({ 16 return this.getRequestBody<any[]>({
16 ...options, 17 ...options,
17 18
18 path, 19 path,
19 query: { startDate, endDate, level }, 20 query: { startDate, endDate, level, tagsOneOf },
20 implicitToken: true, 21 implicitToken: true,
21 defaultExpectedStatus: HttpStatusCode.OK_200 22 defaultExpectedStatus: HttpStatusCode.OK_200
22 }) 23 })