Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\Monitoring\CommandFailedEvent::getReplyMongoDB\Driver\Monitoring\CommandFailedEvent::getServer>
^MongoDB\Driver\Monitoring\CommandFailedEventLast updated: Mon, 26 Oct 2026

MongoDB\Driver\Monitoring\CommandFailedEvent::getRequestId

(mongodb >=1.3.0)

MongoDB\Driver\Monitoring\CommandFailedEvent::getRequestId — Returns the command's request ID

Description

final public function MongoDB\Driver\Monitoring\CommandFailedEvent::getRequestId(): string

The request ID is generated by the extension and may be used to associate this MongoDB\Driver\Monitoring\CommandFailedEvent with a previous MongoDB\Driver\Monitoring\CommandStartedEvent.

Parameters

This function has no parameters.

Return Values

Returns the command's request ID.

Errors/Exceptions


<MongoDB\Driver\Monitoring\CommandFailedEvent::getReplyMongoDB\Driver\Monitoring\CommandFailedEvent::getServer>
^MongoDB\Driver\Monitoring\CommandFailedEventLast updated: Mon, 26 Oct 2026