(mongodb >=1.3.0)
The MongoDB\Driver\Monitoring\CommandStartedEvent class encapsulates information about a started command.
The hostname of the server that executed the command.
The port of the server that executed the command.
The command name.
The database name.
The command document.
The operation ID. This may be used to link events together such as bulk writes, which may dispatch multiple commands.
The request ID. This may be used to associate this MongoDB\Driver\Monitoring\CommandStartedEvent with a corresponding MongoDB\Driver\Monitoring\CommandSucceededEvent or MongoDB\Driver\Monitoring\CommandFailedEvent.
The service ID, or null if the server does not support it (i.e.
not using load-balanced mode).
The server connection ID, or null if not available.
| Version | Description |
|---|---|
| PECL mongodb 2.3.0 | Added public readonly properties. |