API Events HttpResponseReceivedEvent - evansims/openfga-php GitHub Wiki
Event fired when an HTTP response is received from the OpenFGA API. This event contains both the request and response for complete telemetry tracking.
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 getException(): ?Throwable
Throwable
| null
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 getResponse(): ?Psr\Http\Message\ResponseInterface
Psr\Http\Message\ResponseInterface
| null
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 isSuccessful(): bool
bool
public function stopPropagation(): void
Stop event propagation to remaining listeners.
void