Add integrations health monitoring
This commit is contained in:
22
app/Filament/Widgets/IntegrationsHealthWidget.php
Normal file
22
app/Filament/Widgets/IntegrationsHealthWidget.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Widgets;
|
||||
|
||||
use App\Services\Integrations\IntegrationHealthService;
|
||||
use Filament\Widgets\Widget;
|
||||
|
||||
class IntegrationsHealthWidget extends Widget
|
||||
{
|
||||
protected string $view = 'filament.widgets.integrations-health';
|
||||
|
||||
protected ?string $pollingInterval = '60s';
|
||||
|
||||
protected function getViewData(): array
|
||||
{
|
||||
$health = app(IntegrationHealthService::class);
|
||||
|
||||
return [
|
||||
'providers' => $health->providers(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user