(mongodb >=1.3.0)
The MongoDB\Driver\Monitoring\CommandSucceededEvent class encapsulates information about a successful 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 duration of the command in microseconds. The duration is a calculated value that includes the time to send the message and receive the response from the server.
The reply document returned by the server.
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\CommandSucceededEvent with a corresponding MongoDB\Driver\Monitoring\CommandStartedEvent.
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 | Beschreibung |
|---|---|
| PECL mongodb 2.3.0 | Added public readonly properties. The duration property replaces the getDurationMicros() method. |