layouts schick gemacht und packagelimits weiter implementiert

This commit is contained in:
Codex Agent
2025-11-01 22:55:13 +01:00
parent 79b209de9a
commit 8e6c66f0db
16 changed files with 756 additions and 422 deletions

View File

@@ -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');