- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
41 lines
750 B
PHP
41 lines
750 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Framework\ErrorBoundaries\Events;
|
|
|
|
use App\Framework\Core\ValueObjects\Timestamp;
|
|
|
|
/**
|
|
* Base interface for error boundary events
|
|
*/
|
|
interface BoundaryEventInterface
|
|
{
|
|
public string $boundaryName {get;}
|
|
|
|
public string $eventType {get;}
|
|
|
|
public Timestamp $occurredAt {get;}
|
|
|
|
public string $severity {get;}
|
|
|
|
public ?string $message {get;}
|
|
|
|
public array $context {get;}
|
|
|
|
/**
|
|
* Get event identifier for logging/tracking
|
|
*/
|
|
public function getEventId(): string;
|
|
|
|
/**
|
|
* Check if event should trigger alerts
|
|
*/
|
|
public function shouldAlert(): bool;
|
|
|
|
/**
|
|
* Get event payload for serialization
|
|
*/
|
|
public function toArray(): array;
|
|
}
|