From 25c509288cbba54eac91c6c03368a4ed9a4cb0f9 Mon Sep 17 00:00:00 2001 From: Onur ULUSOY Date: Tue, 26 Nov 2024 20:49:30 +0300 Subject: [PATCH] feat: Add version information to diagnostic data --- upsonic/remote/on_prem.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upsonic/remote/on_prem.py b/upsonic/remote/on_prem.py index 36998dd..7513f3b 100644 --- a/upsonic/remote/on_prem.py +++ b/upsonic/remote/on_prem.py @@ -312,7 +312,8 @@ def system_diagnostic(self): "Uptime (seconds)": round(time.time() - psutil.boot_time(), 2), "CPU Usage (%)": psutil.cpu_percent(interval=1), "RAM Usage (%)": psutil.virtual_memory().percent, - "Client Version":self.get_client_version() + "Client Version":self.get_client_version(), + "version": self.get_version(), } return json.dumps(diagnostic_data, indent=4)