feat: new type structure for stream

This commit is contained in:
2026-05-05 18:26:18 +03:00
parent 3b18506c62
commit c116a7089a
2 changed files with 34 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
package domain
type AgentRequest struct {
RequestID string
Name string
Args map[string]string
TimeOut int
}
type AgentResponse struct {
RequestID string
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 Heartbeat struct {
Timestamp string
Metrics SystemMetrics
}