| @@ 27-34 (lines=8) @@ | ||
| 24 | $this->healthyChecks(); |
|
| 25 | } |
|
| 26 | ||
| 27 | protected function unhealthyChecks() |
|
| 28 | { |
|
| 29 | $this->tableWithTitle( |
|
| 30 | 'Unhealthy checks', |
|
| 31 | ['Host', 'Check', 'Status', 'Message', 'Last checked', 'Next check'], |
|
| 32 | $this->getTableRows($this->determineCheckModelClass()::unhealthy()->get()) |
|
| 33 | ); |
|
| 34 | } |
|
| 35 | ||
| 36 | protected function healthyChecks() |
|
| 37 | { |
|
| @@ 36-43 (lines=8) @@ | ||
| 33 | ); |
|
| 34 | } |
|
| 35 | ||
| 36 | protected function healthyChecks() |
|
| 37 | { |
|
| 38 | $this->tableWithTitle( |
|
| 39 | 'Healthy checks', |
|
| 40 | ['Host', 'Check', 'Message', 'Status', 'Last checked', 'Next check'], |
|
| 41 | $this->getTableRows(self::determineCheckModelClass()::healthy()->get()) |
|
| 42 | ); |
|
| 43 | } |
|
| 44 | ||
| 45 | protected function tableWithTitle(string $title, array $header, array $rows) |
|
| 46 | { |
|