feat: métriques serveur dans footer dashboard + notification offline WS
This commit is contained in:
@@ -103,3 +103,9 @@ type WSMessage struct {
|
||||
AgentID string `json:"agent_id"`
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
|
||||
type ServerStats struct {
|
||||
CPUPercent float64 `json:"cpu_percent"`
|
||||
MemUsed int64 `json:"mem_used"`
|
||||
MemTotal int64 `json:"mem_total"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user