Home/
Manual/
monitoring / commandsubscriber/ MongoDB\Driver\Monitoring\CommandSubscriber::commandSucceeded
MongoDB\Driver\Monitoring\CommandSubscriber::commandSucceeded
PHP function
Edit on GitHub ✎
(mongodb >=1.3.0)
Notification method for a successful command
Description
MongoDB\Driver\Monitoring\CommandSubscriber::commandSucceeded(MongoDB\Driver\Monitoring\CommandSucceededEvent $event): void
If the subscriber is registered, this method is called when a command succeeds.
Parameters
event(MongoDB\Driver\Monitoring\CommandSucceededEvent)An event object encapsulating information about the successful command.
Return Values
Void
Errors/Exceptions
See Also
MongoDB\Driver\Monitoring\CommandSucceededEventMongoDB\Driver\Monitoring\addSubscriber()MongoDB\Driver\Manager::addSubscriber()- mongodb.tutorial.apm