(mongodb >=1.13.0)
The MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent class encapsulates information about a failed server heartbeat (i.e. » hello command issued through » server monitoring).
The hostname of the server.
The port of the server.
Whether the heartbeat used a streaming protocol. The extension does
not use the streaming protocol for monitoring, so this method will always
return false.
The duration of the heartbeat 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 heartbeat failed.
| Sürüm: | Açıklama |
|---|---|
| PECL mongodb 2.3.0 | Added public readonly properties. The duration property replaces the getDurationMicros() method. |