feat: add getting computer data route

This commit is contained in:
trafficlunar 2024-11-29 18:06:28 +00:00
parent 840e584082
commit 58adca9cd0
4 changed files with 34 additions and 0 deletions

View file

@ -4,3 +4,9 @@ type ComputerWebSocketMessage struct {
Cpu uint8 `json:"cpu"`
Ram uint8 `json:"ram"`
}
type ComputerGraphData struct {
Online bool `json:"online"`
Cpu []int `json:"cpu"`
Ram []int `json:"ram"`
}