Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(patrol): rename wearout JSON field to ssd_life_remaining_pct (#1300)

rcourtmanc575c7e29534
diff --git a/internal/ai/tools/data_types.go b/internal/ai/tools/data_types.go
index a9f781afb7..d951397db8 100644
--- a/internal/ai/tools/data_types.go
+++ b/internal/ai/tools/data_types.go
@@ -1106,10 +1106,10 @@ type PhysicalDiskSummary struct {
WWN string `json:"wwn,omitempty"`
Type string `json:"type"` // nvme, sata, sas
SizeBytes int64 `json:"size_bytes"`
- Health string `json:"health"` // PASSED, FAILED, UNKNOWN
- Wearout *int `json:"wearout,omitempty"` // SSD life remaining percentage (100=new/healthy, 0=end of life), nil when unavailable
- Temperature *int `json:"temperature,omitempty"` // Celsius, nil when unavailable
- RPM *int `json:"rpm,omitempty"` // 0 for SSDs, nil when unavailable
+ Health string `json:"health"` // PASSED, FAILED, UNKNOWN
+ Wearout *int `json:"ssd_life_remaining_pct,omitempty"` // 100=new/healthy, 0=end of life; nil when unavailable
+ Temperature *int `json:"temperature,omitempty"` // Celsius, nil when unavailable
+ RPM *int `json:"rpm,omitempty"` // 0 for SSDs, nil when unavailable
Used string `json:"used,omitempty"`
LastChecked time.Time `json:"last_checked,omitempty"`
}
diff --git a/internal/ai/tools/tools_metrics.go b/internal/ai/tools/tools_metrics.go
index ce1a54a24e..fa841d04f9 100644
--- a/internal/ai/tools/tools_metrics.go
+++ b/internal/ai/tools/tools_metrics.go
@@ -21,7 +21,7 @@ Types:
- temperatures: CPU, disk, and sensor temperatures from hosts
- network: Network interface statistics (rx/tx bytes, speed)
- diskio: Disk I/O statistics (read/write bytes, ops)
-- disks: Physical disk health (SMART, wearout, temperatures)
+- disks: Physical disk health (SMART, SSD life remaining, temperatures)
- baselines: Learned normal behavior baselines for resources
- patterns: Detected operational patterns and predictions