@@ 55-63 (lines=9) @@ | ||
52 | return MonitorCollection::make($monitors)->sortByHost(); |
|
53 | } |
|
54 | ||
55 | public static function getWithFailingUptimeCheck(): Collection |
|
56 | { |
|
57 | $monitors = self::query() |
|
58 | ->where('uptime_check_enabled', true) |
|
59 | ->where('uptime_status', UptimeStatus::DOWN) |
|
60 | ->get(); |
|
61 | ||
62 | return MonitorCollection::make($monitors)->sortByHost(); |
|
63 | } |
|
64 | ||
65 | public static function getWithFailingCertificateCheck(): Collection |
|
66 | { |
|
@@ 65-73 (lines=9) @@ | ||
62 | return MonitorCollection::make($monitors)->sortByHost(); |
|
63 | } |
|
64 | ||
65 | public static function getWithFailingCertificateCheck(): Collection |
|
66 | { |
|
67 | $monitors = self::query() |
|
68 | ->where('certificate_check_enabled', true) |
|
69 | ->where('certificate_status', CertificateStatus::INVALID) |
|
70 | ->get(); |
|
71 | ||
72 | return MonitorCollection::make($monitors)->sortByHost(); |
|
73 | } |
|
74 | ||
75 | public static function getUnhealthy(): Collection |
|
76 | { |