@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | use Carbon\Carbon; |
6 | 6 | use Illuminate\Notifications\Messages\MailMessage; |
7 | -use Illuminate\Notifications\Messages\SlackMessage; |
|
8 | 7 | use Illuminate\Notifications\Messages\SlackAttachment; |
9 | -use Spatie\UptimeMonitor\Notifications\BaseNotification; |
|
8 | +use Illuminate\Notifications\Messages\SlackMessage; |
|
10 | 9 | use Spatie\UptimeMonitor\Events\CertificateCheckFailed as InValidCertificateFoundEvent; |
10 | +use Spatie\UptimeMonitor\Notifications\BaseNotification; |
|
11 | 11 | |
12 | 12 | class CertificateCheckFailed extends BaseNotification |
13 | 13 | { |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | use Carbon\Carbon; |
6 | 6 | use Illuminate\Notifications\Messages\MailMessage; |
7 | -use Illuminate\Notifications\Messages\SlackMessage; |
|
8 | 7 | use Illuminate\Notifications\Messages\SlackAttachment; |
9 | -use Spatie\UptimeMonitor\Notifications\BaseNotification; |
|
8 | +use Illuminate\Notifications\Messages\SlackMessage; |
|
10 | 9 | use Spatie\UptimeMonitor\Events\CertificateCheckSucceeded as ValidCertificateFoundEvent; |
10 | +use Spatie\UptimeMonitor\Notifications\BaseNotification; |
|
11 | 11 | |
12 | 12 | class CertificateCheckSucceeded extends BaseNotification |
13 | 13 | { |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | use Carbon\Carbon; |
6 | 6 | use Illuminate\Notifications\Messages\MailMessage; |
7 | -use Illuminate\Notifications\Messages\SlackMessage; |
|
8 | 7 | use Illuminate\Notifications\Messages\SlackAttachment; |
9 | -use Spatie\UptimeMonitor\Notifications\BaseNotification; |
|
8 | +use Illuminate\Notifications\Messages\SlackMessage; |
|
10 | 9 | use Spatie\UptimeMonitor\Events\CertificateExpiresSoon as SoonExpiringSslCertificateFoundEvent; |
10 | +use Spatie\UptimeMonitor\Notifications\BaseNotification; |
|
11 | 11 | |
12 | 12 | class CertificateExpiresSoon extends BaseNotification |
13 | 13 | { |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | use Carbon\Carbon; |
6 | 6 | use Illuminate\Notifications\Messages\MailMessage; |
7 | +use Illuminate\Notifications\Messages\SlackAttachment; |
|
7 | 8 | use Illuminate\Notifications\Messages\SlackMessage; |
9 | +use Spatie\UptimeMonitor\Events\UptimeCheckFailed as MonitorFailedEvent; |
|
8 | 10 | use Spatie\UptimeMonitor\Models\Enums\UptimeStatus; |
9 | -use Illuminate\Notifications\Messages\SlackAttachment; |
|
10 | 11 | use Spatie\UptimeMonitor\Notifications\BaseNotification; |
11 | -use Spatie\UptimeMonitor\Events\UptimeCheckFailed as MonitorFailedEvent; |
|
12 | 12 | |
13 | 13 | class UptimeCheckFailed extends BaseNotification |
14 | 14 | { |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | use Carbon\Carbon; |
6 | 6 | use Illuminate\Notifications\Messages\MailMessage; |
7 | +use Illuminate\Notifications\Messages\SlackAttachment; |
|
7 | 8 | use Illuminate\Notifications\Messages\SlackMessage; |
9 | +use Spatie\UptimeMonitor\Events\UptimeCheckRecovered as MonitorRecoveredEvent; |
|
8 | 10 | use Spatie\UptimeMonitor\Models\Enums\UptimeStatus; |
9 | -use Illuminate\Notifications\Messages\SlackAttachment; |
|
10 | 11 | use Spatie\UptimeMonitor\Notifications\BaseNotification; |
11 | -use Spatie\UptimeMonitor\Events\UptimeCheckRecovered as MonitorRecoveredEvent; |
|
12 | 12 | |
13 | 13 | class UptimeCheckRecovered extends BaseNotification |
14 | 14 | { |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | use Carbon\Carbon; |
6 | 6 | use Illuminate\Notifications\Messages\MailMessage; |
7 | +use Illuminate\Notifications\Messages\SlackAttachment; |
|
7 | 8 | use Illuminate\Notifications\Messages\SlackMessage; |
9 | +use Spatie\UptimeMonitor\Events\UptimeCheckSucceeded as MonitorSucceededEvent; |
|
8 | 10 | use Spatie\UptimeMonitor\Models\Enums\UptimeStatus; |
9 | -use Illuminate\Notifications\Messages\SlackAttachment; |
|
10 | 11 | use Spatie\UptimeMonitor\Notifications\BaseNotification; |
11 | -use Spatie\UptimeMonitor\Events\UptimeCheckSucceeded as MonitorSucceededEvent; |
|
12 | 12 | |
13 | 13 | class UptimeCheckSucceeded extends BaseNotification |
14 | 14 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\UptimeMonitor\Models\Presenters; |
4 | 4 | |
5 | -use Spatie\UptimeMonitor\Models\Enums\UptimeStatus; |
|
6 | 5 | use Spatie\UptimeMonitor\Models\Enums\CertificateStatus; |
6 | +use Spatie\UptimeMonitor\Models\Enums\UptimeStatus; |
|
7 | 7 | |
8 | 8 | trait MonitorPresenter |
9 | 9 | { |
@@ -3,13 +3,13 @@ |
||
3 | 3 | namespace Spatie\UptimeMonitor; |
4 | 4 | |
5 | 5 | use Generator; |
6 | -use Illuminate\Support\Collection; |
|
6 | +use GrahamCampbell\GuzzleFactory\GuzzleFactory; |
|
7 | +use GuzzleHttp\Exception\RequestException; |
|
7 | 8 | use GuzzleHttp\Promise\EachPromise; |
9 | +use Illuminate\Support\Collection; |
|
8 | 10 | use Psr\Http\Message\ResponseInterface; |
9 | -use Spatie\UptimeMonitor\Models\Monitor; |
|
10 | -use GuzzleHttp\Exception\RequestException; |
|
11 | -use GrahamCampbell\GuzzleFactory\GuzzleFactory; |
|
12 | 11 | use Spatie\UptimeMonitor\Helpers\ConsoleOutput; |
12 | +use Spatie\UptimeMonitor\Models\Monitor; |
|
13 | 13 | |
14 | 14 | class MonitorCollection extends Collection |
15 | 15 | { |