Fix Status::Inactive ordering to prevent gray title bar
All checks were successful
Build and Release / build-and-release (push) Successful in 2m8s
All checks were successful
Build and Release / build-and-release (push) Successful in 2m8s
- Reorder Status enum variants to fix aggregation priority - Status::Inactive now has same priority as Status::Ok in aggregation - Prevents inactive services from causing gray title bar - Title bar stays green when system has only active and inactive services - Only Unknown/Offline/Pending/Warning/Critical statuses affect title color
This commit is contained in:
@@ -83,12 +83,12 @@ impl MetricValue {
|
||||
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub enum Status {
|
||||
Ok,
|
||||
Inactive,
|
||||
Inactive, // Same priority as Ok for aggregation
|
||||
Unknown,
|
||||
Offline,
|
||||
Pending,
|
||||
Warning,
|
||||
Critical,
|
||||
Unknown,
|
||||
Offline,
|
||||
}
|
||||
|
||||
impl Status {
|
||||
|
||||
Reference in New Issue
Block a user