feat: add alert grace period controls
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user