@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Countable; |
| 6 | 6 | use Illuminate\Support\Collection; |
| 7 | -use Spatie\ServerMonitor\Models\Check; |
|
| 8 | 7 | use Spatie\ServerMonitor\Helpers\ConsoleOutput; |
| 8 | +use Spatie\ServerMonitor\Models\Check; |
|
| 9 | 9 | |
| 10 | 10 | class CheckCollection implements Countable |
| 11 | 11 | { |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | namespace Spatie\ServerMonitor\Commands; |
| 4 | 4 | |
| 5 | 5 | use InvalidArgumentException; |
| 6 | -use Spatie\ServerMonitor\Models\Host; |
|
| 7 | 6 | use Spatie\ServerMonitor\Models\Check; |
| 8 | 7 | use Spatie\ServerMonitor\Models\Enums\CheckStatus; |
| 8 | +use Spatie\ServerMonitor\Models\Host; |
|
| 9 | 9 | |
| 10 | 10 | class AddHost extends BaseCommand |
| 11 | 11 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\ServerMonitor\Events; |
| 4 | 4 | |
| 5 | -use Spatie\ServerMonitor\Models\Check; |
|
| 6 | 5 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 6 | +use Spatie\ServerMonitor\Models\Check; |
|
| 7 | 7 | |
| 8 | 8 | class CheckFailed implements ShouldQueue |
| 9 | 9 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\ServerMonitor\Events; |
| 4 | 4 | |
| 5 | -use Spatie\ServerMonitor\Models\Check; |
|
| 6 | 5 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 6 | +use Spatie\ServerMonitor\Models\Check; |
|
| 7 | 7 | |
| 8 | 8 | class CheckRestored implements ShouldQueue |
| 9 | 9 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\ServerMonitor\Events; |
| 4 | 4 | |
| 5 | -use Spatie\ServerMonitor\Models\Check; |
|
| 6 | 5 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 6 | +use Spatie\ServerMonitor\Models\Check; |
|
| 7 | 7 | |
| 8 | 8 | class CheckSucceeded implements ShouldQueue |
| 9 | 9 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\ServerMonitor\Events; |
| 4 | 4 | |
| 5 | -use Spatie\ServerMonitor\Models\Check; |
|
| 6 | 5 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 6 | +use Spatie\ServerMonitor\Models\Check; |
|
| 7 | 7 | |
| 8 | 8 | class CheckWarning implements ShouldQueue |
| 9 | 9 | { |
@@ -3,18 +3,18 @@ |
||
| 3 | 3 | namespace Spatie\ServerMonitor\Models; |
| 4 | 4 | |
| 5 | 5 | use Carbon\Carbon; |
| 6 | -use Illuminate\Support\Arr; |
|
| 7 | -use Symfony\Component\Process\Process; |
|
| 8 | -use Illuminate\Database\Eloquent\Model; |
|
| 9 | 6 | use Illuminate\Database\Eloquent\Builder; |
| 7 | +use Illuminate\Database\Eloquent\Model; |
|
| 8 | +use Illuminate\Database\Eloquent\Relations\BelongsTo; |
|
| 9 | +use Illuminate\Support\Arr; |
|
| 10 | +use Spatie\ServerMonitor\CheckDefinitions\CheckDefinition; |
|
| 10 | 11 | use Spatie\ServerMonitor\Events\CheckFailed; |
| 11 | -use Spatie\ServerMonitor\Events\CheckWarning; |
|
| 12 | 12 | use Spatie\ServerMonitor\Events\CheckRestored; |
| 13 | 13 | use Spatie\ServerMonitor\Events\CheckSucceeded; |
| 14 | -use Spatie\ServerMonitor\Models\Enums\CheckStatus; |
|
| 15 | -use Illuminate\Database\Eloquent\Relations\BelongsTo; |
|
| 16 | -use Spatie\ServerMonitor\CheckDefinitions\CheckDefinition; |
|
| 14 | +use Spatie\ServerMonitor\Events\CheckWarning; |
|
| 17 | 15 | use Spatie\ServerMonitor\Exceptions\InvalidCheckDefinition; |
| 16 | +use Spatie\ServerMonitor\Models\Enums\CheckStatus; |
|
| 17 | +use Symfony\Component\Process\Process; |
|
| 18 | 18 | |
| 19 | 19 | class Check extends Model |
| 20 | 20 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\ServerMonitor\Notifications; |
| 4 | 4 | |
| 5 | -use Spatie\ServerMonitor\Models\Check; |
|
| 6 | 5 | use Illuminate\Notifications\Notification; |
| 6 | +use Spatie\ServerMonitor\Models\Check; |
|
| 7 | 7 | |
| 8 | 8 | abstract class BaseNotification extends Notification |
| 9 | 9 | { |
@@ -5,9 +5,9 @@ |
||
| 5 | 5 | use Illuminate\Config\Repository; |
| 6 | 6 | use Illuminate\Contracts\Events\Dispatcher; |
| 7 | 7 | use Spatie\ServerMonitor\Events\CheckFailed; |
| 8 | -use Spatie\ServerMonitor\Events\CheckWarning; |
|
| 9 | 8 | use Spatie\ServerMonitor\Events\CheckRestored; |
| 10 | 9 | use Spatie\ServerMonitor\Events\CheckSucceeded; |
| 10 | +use Spatie\ServerMonitor\Events\CheckWarning; |
|
| 11 | 11 | |
| 12 | 12 | class EventHandler |
| 13 | 13 | { |