API Events HttpRequestSentEvent - evansims/openfga-php GitHub Wiki
Event fired when an HTTP request is sent to the OpenFGA API. This event contains the outgoing request details for telemetry and debugging.
Table of Contents
OpenFGA\Events
public function getEventId(): string
Get the unique identifier for this event.
string
— A unique identifier for the event instance
public function getEventType(): string
Get the name/type of this event.
string
— The event type identifier
public function getModelId(): ?string
string
| null
public function getOccurredAt(): DateTimeImmutable
Get when this event occurred.
DateTimeImmutable
— The timestamp when the event was created
public function getOperation(): string
string
public function getPayload(): array
Get the event payload data.
array
— The event data
public function getRequest(): Psr\Http\Message\RequestInterface
Psr\Http\Message\RequestInterface
public function getStoreId(): ?string
string
| null
public function isPropagationStopped(): bool
Check if event propagation should be stopped.
bool
— True if propagation should be stopped
public function stopPropagation(): void
Stop event propagation to remaining listeners.
void