layouts schick gemacht und packagelimits weiter implementiert
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Services\Monitoring\PackageLimitMetrics;
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
@@ -18,3 +19,17 @@ Artisan::command('storage:archive-pending', function () {
|
||||
Artisan::command('storage:check-upload-queues', function () {
|
||||
$this->comment('Upload queue health placeholder – verify upload pipelines and report issues.');
|
||||
})->purpose('Check upload queues for stalled or failed jobs and alert admins');
|
||||
|
||||
Artisan::command('metrics:package-limits {--reset}', function () {
|
||||
$snapshot = PackageLimitMetrics::snapshot();
|
||||
|
||||
$this->line(json_encode([
|
||||
'generated_at' => now()->toIso8601String(),
|
||||
'metrics' => $snapshot,
|
||||
], JSON_PRETTY_PRINT));
|
||||
|
||||
if ($this->option('reset')) {
|
||||
PackageLimitMetrics::reset();
|
||||
$this->comment('Package limit metrics cache was reset.');
|
||||
}
|
||||
})->purpose('Inspect package limit monitoring counters and optionally reset them');
|
||||
|
||||
Reference in New Issue
Block a user