(mongodb >=1.3.0)
The MongoDB\Driver\Monitoring\CommandFailedEvent class encapsulates information about a failed 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 exception that was thrown when the command failed.
The failure 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\CommandFailedEvent 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.
| Versione | Descrizione |
|---|---|
| PECL mongodb 2.3.0 | Added public readonly properties. The duration property replaces the getDurationMicros() method. |