Add gpu & temp models agent

This commit is contained in:
headlessdev 2025-04-28 19:53:04 +02:00
parent 61bf108f40
commit 7fc3703a05

View File

@ -21,6 +21,8 @@ type Server struct {
CpuUsage sql.NullFloat64 CpuUsage sql.NullFloat64
RamUsage sql.NullFloat64 RamUsage sql.NullFloat64
DiskUsage sql.NullFloat64 DiskUsage sql.NullFloat64
GpuUsage sql.NullFloat64
Temp sql.NullFloat64
Uptime sql.NullString Uptime sql.NullString
} }
@ -51,6 +53,14 @@ type UptimeResponse struct {
Value string `json:"value"` Value string `json:"value"`
} }
type GPUResponse struct {
Value float64 `json:"value"`
}
type TempResponse struct {
Value float64 `json:"value"`
}
type Notification struct { type Notification struct {
ID int ID int
Enabled bool Enabled bool