mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-09-18 17:28:27 +03:00
refactor: sync
This commit is contained in:
@@ -1,42 +0,0 @@
|
||||
package domain
|
||||
|
||||
import "time"
|
||||
|
||||
type AgentRequest struct {
|
||||
Name string
|
||||
Args map[string]string
|
||||
TimeOut int
|
||||
}
|
||||
|
||||
type AgentResponse struct {
|
||||
Success bool
|
||||
Output string
|
||||
Error string
|
||||
ExecTimeMS int
|
||||
}
|
||||
|
||||
type AgentAlert struct {
|
||||
Timestamp int
|
||||
Level string
|
||||
Title string
|
||||
Description string
|
||||
}
|
||||
|
||||
type SystemMetrics struct {
|
||||
CPUUsage float64
|
||||
MemoryUsage float64
|
||||
DiskUsage float64
|
||||
}
|
||||
|
||||
type HeartbeatModel struct {
|
||||
ID int
|
||||
AgentID string
|
||||
Timestamp time.Time
|
||||
Metrics SystemMetrics
|
||||
}
|
||||
|
||||
type CreateHeartbeatModel struct {
|
||||
AgentID string
|
||||
Timestamp time.Time
|
||||
Metrics SystemMetrics
|
||||
}
|
||||
Reference in New Issue
Block a user