Home/
Manual/
monitoring / commandsucceededevent/ MongoDB\Driver\Monitoring\CommandSucceededEvent::getRequestId
MongoDB\Driver\Monitoring\CommandSucceededEvent::getRequestId
PHP function
Edit on GitHub ✎
(mongodb >=1.3.0)
Returns the command's request ID
Description
MongoDB\Driver\Monitoring\CommandSucceededEvent::getRequestId(): string
The request ID is generated by the extension and may be used to associate this MongoDB\Driver\Monitoring\CommandSucceededEvent with a previous MongoDB\Driver\Monitoring\CommandStartedEvent.
Parameters Parameters
Return Values
Returns the command's request ID.
Errors/Exceptions
See Also
MongoDB\Driver\Monitoring\CommandStartedEvent::getRequestId- mongodb.tutorial.apm