GPU & Temp receiving in agent

This commit is contained in:
headlessdev
2025-04-28 20:01:51 +02:00
parent 7fc3703a05
commit 934768fec8
2 changed files with 91 additions and 20 deletions

View File

@@ -54,7 +54,19 @@ type UptimeResponse struct {
}
type GPUResponse struct {
Value float64 `json:"value"`
Proc float64 `json:"proc"`
}
type TemperatureResponse struct {
Composite []struct {
Label string `json:"label"`
Unit string `json:"unit"`
Value float64 `json:"value"`
Warning float64 `json:"warning"`
Critical float64 `json:"critical"`
Type string `json:"type"`
Key string `json:"key"`
} `json:"Composite"`
}
type TempResponse struct {