Add integrations health monitoring
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-02 18:35:12 +01:00
parent 9057a4cd15
commit fc3e6715db
21 changed files with 715 additions and 13 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class IntegrationWebhookEvent extends Model
{
/** @use HasFactory<\Database\Factories\IntegrationWebhookEventFactory> */
use HasFactory;
public const STATUS_RECEIVED = 'received';
public const STATUS_PROCESSED = 'processed';
public const STATUS_FAILED = 'failed';
public const STATUS_IGNORED = 'ignored';
protected $fillable = [
'provider',
'event_id',
'event_type',
'status',
'received_at',
'processed_at',
'failed_at',
'error_message',
'context',
];
protected function casts(): array
{
return [
'received_at' => 'datetime',
'processed_at' => 'datetime',
'failed_at' => 'datetime',
'context' => 'array',
];
}
}