feat: add alert grace period controls

This commit is contained in:
2026-04-24 19:16:20 +02:00
parent b4163d8c8b
commit d3af580f07
6 changed files with 189 additions and 14 deletions
+11
View File
@@ -201,6 +201,17 @@ struct ServerInfo: Codable, Hashable, Equatable {
ServerInfo.version(apiVersion, isAtLeast: "2.14")
}
var rebootRequired: Bool {
operatingSystem?.updates?.rebootRequired ?? false
}
var statusTooltip: String {
if rebootRequired {
return "This host is online, but a reboot is required to complete pending updates."
}
return "This host is online."
}
var summaryCPUPercent: Double {
if let cpuUtilizationPercent {
return min(max(cpuUtilizationPercent, 0), 100)