mirror of
https://github.com/trafficlunar/api.git
synced 2026-06-27 22:24:08 +00:00
feat: add getting computer data route
This commit is contained in:
parent
840e584082
commit
58adca9cd0
4 changed files with 34 additions and 0 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue