feat(alerts): add CPU state notifications (#2249)

This commit is contained in:
spatiumstas
2026-09-02 02:10:31 +03:00
committed by GitHub
parent b670224ed8
commit ed88e6efae
37 changed files with 615 additions and 3 deletions

View File

@@ -48,6 +48,7 @@ type SystemAlertFsStats struct {
// Values pulled from system_stats.stats that are relevant to alerts.
type SystemAlertStats struct {
Cpu float64 `json:"cpu"`
CpuBreakdown []float64 `json:"cpub"`
Mem float64 `json:"mp"`
Disk float64 `json:"dp"`
Bandwidth [2]uint64 `json:"b"`