Implements spec `099-alerts-v1-teams-email`. - Monitoring navigation: Alerts as a cluster under Monitoring; default landing is Alert deliveries. - Tenant panel: Alerts points to `/admin/alerts` and the cluster navigation is hidden in tenant panel. - Guard compliance: removes direct `Gate::` usage from Alert resources so `NoAdHocFilamentAuthPatternsTest` passes. Verification: - Full suite: `1348 passed, 7 skipped` (EXIT=0). Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #121
29 lines
884 B
PHP
29 lines
884 B
PHP
<?php
|
|
|
|
use App\Jobs\PruneOldOperationRunsJob;
|
|
use App\Jobs\ReconcileAdapterRunsJob;
|
|
use Illuminate\Foundation\Inspiring;
|
|
use Illuminate\Support\Facades\Artisan;
|
|
use Illuminate\Support\Facades\Schedule;
|
|
|
|
Artisan::command('inspire', function () {
|
|
$this->comment(Inspiring::quote());
|
|
})->purpose('Display an inspiring quote');
|
|
|
|
Schedule::command('tenantpilot:schedules:dispatch')->everyMinute();
|
|
Schedule::command('tenantpilot:directory-groups:dispatch')->everyMinute();
|
|
Schedule::command('tenantpilot:alerts:dispatch')
|
|
->everyMinute()
|
|
->name('tenantpilot:alerts:dispatch')
|
|
->withoutOverlapping();
|
|
|
|
Schedule::job(new PruneOldOperationRunsJob)
|
|
->daily()
|
|
->name(PruneOldOperationRunsJob::class)
|
|
->withoutOverlapping();
|
|
|
|
Schedule::job(new ReconcileAdapterRunsJob)
|
|
->everyThirtyMinutes()
|
|
->name(ReconcileAdapterRunsJob::class)
|
|
->withoutOverlapping();
|