From 38947f650c3485c609ede534becefe3f564ef3ae Mon Sep 17 00:00:00 2001 From: Vishal Choudhary Date: Mon, 11 Dec 2023 13:52:29 +0530 Subject: [PATCH] add another worker tracker --- src/models/logData.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/models/logData.ts b/src/models/logData.ts index 4cf72bd..9fb8410 100644 --- a/src/models/logData.ts +++ b/src/models/logData.ts @@ -60,6 +60,7 @@ class LogData { Error: "Error", plugin_id: "plugin_id", worker: "worker", + workername: "workername", scheduler_name: "scheduler_name", status_code: "status_code", status: "status", @@ -179,7 +180,11 @@ class LogData { } private static jobKeySelector(log: JSONLog): string | undefined { - return log[LogData.logKeys.scheduler_name] || log[LogData.logKeys.worker]; + return ( + log[LogData.logKeys.scheduler_name] || + log[LogData.logKeys.worker] || + log[LogData.logKeys.workername] + ); } private static pluginKeySelector(log: JSONLog): string | undefined {