@@ -14,6 +14,7 @@ enum ComponentStatusEnum: int implements HasColor, HasIcon, HasLabel
14
14
case partial_outage = 3 ;
15
15
case major_outage = 4 ;
16
16
case unknown = 5 ;
17
+ case under_maintenance = 6 ;
17
18
18
19
public static function outage (): array
19
20
{
@@ -31,6 +32,7 @@ public function getLabel(): string
31
32
self ::performance_issues => __ ('cachet::component.status.performance_issues ' ),
32
33
self ::partial_outage => __ ('cachet::component.status.partial_outage ' ),
33
34
self ::major_outage => __ ('cachet::component.status.major_outage ' ),
35
+ self ::under_maintenance => __ ('cachet::component.status.under_maintenance ' ),
34
36
default => __ ('cachet::component.status.unknown ' ),
35
37
};
36
38
}
@@ -42,6 +44,7 @@ public function getIcon(): string
42
44
self ::performance_issues => 'cachet-component-performance-issues ' ,
43
45
self ::partial_outage => 'cachet-component-partial-outage ' ,
44
46
self ::major_outage => 'cachet-component-major-outage ' ,
47
+ self ::under_maintenance => 'cachet-component-under-maintenance ' ,
45
48
default => 'cachet-unknown ' ,
46
49
};
47
50
}
@@ -53,6 +56,7 @@ public function getColor(): array
53
56
self ::performance_issues => Color::Purple,
54
57
self ::partial_outage => Color::Amber,
55
58
self ::major_outage => Color::Red,
59
+ self ::under_maintenance => Color::Orange,
56
60
default => Color::Blue,
57
61
};
58
62
}
0 commit comments