refactor: create heartbeats func in HubStore

This commit is contained in:
2026-05-09 22:31:42 +03:00
parent f2d0924bca
commit 6277523b23
9 changed files with 158 additions and 11 deletions
+10 -1
View File
@@ -1,6 +1,6 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
// sqlc v1.31.1
package gen
@@ -19,3 +19,12 @@ type Agent struct {
Capabilities *string
RegisteredAt time.Time
}
type Heartbeat struct {
ID int64
AgentID string
CpuUsage float64
MemoryUsage float64
DiskUsage float64
HeartbeatTimestamp time.Time
}