MongoDB\Driver\Monitoring\CommandSubscriber::commandStarted

(mongodb >=1.3.0)

MongoDB\Driver\Monitoring\CommandSubscriber::commandStartedNotification method for a started command

说明

abstract public MongoDB\Driver\Monitoring\CommandSubscriber::commandStarted ( MongoDB\Driver\Monitoring\CommandStartedEvent $event ) : void

If the subscriber has been registered with MongoDB\Driver\Monitoring\addSubscriber(), the driver will call this method when a command has started.

参数

event ( MongoDB\Driver\Monitoring\CommandStartedEvent)

An event object encapsulating information about the started command.

返回值

没有返回值。

错误/异常

相关文章
php mongodb driver monitoring the mongodb driver monitoring commandsubscriber interfacephp mongodb driver monitoring commandfailedevent returns the command namephp mongodb driver monitoring commandfailedevent returns the command s duration in microsecondsphp mongodb driver monitoring commandfailedevent returns the exception associated with the failed commandphp mongodb driver monitoring commandfailedevent returns the command s operation idphp mongodb driver monitoring commandfailedevent returns the command reply documentphp mongodb driver monitoring commandfailedevent returns the command s request idphp mongodb driver monitoring commandstartedevent returns the database on which the command was executedphp mongodb driver monitoring commandstartedevent returns the command s operation idphp mongodb driver monitoring commandstartedevent returns the command s request idphp mongodb driver monitoring commandstartedevent returns the server on which the command was executedphp mongodb driver monitoring commandsubscriber notification method for a failed commandphp mongodb driver monitoring commandsubscriber notification method for a started commandphp mongodb driver monitoring commandsubscriber notification method for a successful commandphp mongodb driver monitoring commandsucceededevent returns the command namephp mongodb driver monitoring commandsucceededevent returns the command s duration in microsecondsphp mongodb driver monitoring commandsucceededevent returns the command s operation idphp mongodb driver monitoring commandsucceededevent returns the command reply documentphp mongodb driver monitoring commandsucceededevent returns the command s request idphp mongodb driver monitoring commandsucceededevent returns the server on which the command was executed
关注编程学问公众号