feat(storage): 新增只读 SMART 辅助服务与寿命通电详情

This commit is contained in:
2026-10-30 16:02:46 +08:00
parent 069e2e100f
commit 7e9728899d
25 changed files with 515 additions and 15 deletions
+7
View File
@@ -0,0 +1,7 @@
import Foundation
nonisolated struct DiskHealthMetrics: Sendable {
/// NVMe vendor endurance estimate, not a probability of remaining failure-free.
let remainingLife: Double?
let powerOnHours: UInt64?
}
+1
View File
@@ -24,6 +24,7 @@ nonisolated struct MetricsSnapshot: Sendable {
var network: [NetworkInterfaceMetrics]?
var networkPath: NetworkPathStatus?
var disk: DiskMetrics?
var diskHealth: DiskHealthMetrics?
var diskIO: DiskIOMetrics?
var volumes: [VolumeMetrics]?
var battery: BatteryMetrics?