eventType = 'boundary.execution.succeeded'; $this->occurredAt = Timestamp::now(); $this->severity = 'info'; } public function getEventId(): string { return "boundary_success_{$this->boundaryName}_{$this->occurredAt->toFloat()}"; } public function shouldAlert(): bool { return false; // Success events typically don't trigger alerts } public function toArray(): array { return [ 'event_id' => $this->getEventId(), 'event_type' => $this->eventType, 'boundary_name' => $this->boundaryName, 'execution_time_ms' => $this->executionTime->toMilliseconds(), 'execution_time_human' => $this->executionTime->toHumanReadable(), 'message' => $this->message, 'context' => $this->context, 'occurred_at' => $this->occurredAt->toIsoString(), 'severity' => $this->severity, 'should_alert' => $this->shouldAlert(), ]; } }