From 7fc3703a051aac6a99f3c82d2ec25617cf455749 Mon Sep 17 00:00:00 2001 From: headlessdev Date: Mon, 28 Apr 2025 19:53:04 +0200 Subject: [PATCH] Add gpu & temp models agent --- agent/internal/models/models.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/agent/internal/models/models.go b/agent/internal/models/models.go index 4411255..9c8c3fa 100644 --- a/agent/internal/models/models.go +++ b/agent/internal/models/models.go @@ -21,6 +21,8 @@ type Server struct { CpuUsage sql.NullFloat64 RamUsage sql.NullFloat64 DiskUsage sql.NullFloat64 + GpuUsage sql.NullFloat64 + Temp sql.NullFloat64 Uptime sql.NullString } @@ -51,6 +53,14 @@ type UptimeResponse struct { Value string `json:"value"` } +type GPUResponse struct { + Value float64 `json:"value"` +} + +type TempResponse struct { + Value float64 `json:"value"` +} + type Notification struct { ID int Enabled bool