Clarify storage topology and recovery guards

This commit is contained in:
rcourtman 2026-05-14 20:51:32 +01:00
parent 4622df523d
commit 3580a5ed6d
58 changed files with 2670 additions and 575 deletions

View file

@ -190,15 +190,24 @@ type UnraidStorage struct {
// UnraidDisk represents a disk's role and state inside an Unraid array.
type UnraidDisk struct {
Name string `json:"name"`
Device string `json:"device,omitempty"`
Role string `json:"role,omitempty"`
Status string `json:"status,omitempty"`
RawStatus string `json:"rawStatus,omitempty"`
Serial string `json:"serial,omitempty"`
Filesystem string `json:"filesystem,omitempty"`
SizeBytes int64 `json:"sizeBytes,omitempty"`
Slot int `json:"slot,omitempty"`
Name string `json:"name"`
Device string `json:"device,omitempty"`
Role string `json:"role,omitempty"`
Status string `json:"status,omitempty"`
RawStatus string `json:"rawStatus,omitempty"`
Model string `json:"model,omitempty"`
Serial string `json:"serial,omitempty"`
Filesystem string `json:"filesystem,omitempty"`
Transport string `json:"transport,omitempty"`
SizeBytes int64 `json:"sizeBytes,omitempty"`
UsedBytes int64 `json:"usedBytes,omitempty"`
FreeBytes int64 `json:"freeBytes,omitempty"`
Temperature int `json:"temperature,omitempty"`
SpunDown bool `json:"spunDown,omitempty"`
ReadCount int64 `json:"readCount,omitempty"`
WriteCount int64 `json:"writeCount,omitempty"`
ErrorCount int64 `json:"errorCount,omitempty"`
Slot int `json:"slot,omitempty"`
}
// CephCluster represents Ceph cluster status collected by the host agent.