(mongodb >=1.13.0)
The MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent class encapsulates information about a started 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.
| 版本 | 说明 |
|---|---|
| PECL mongodb 2.3.0 | Added public readonly properties. |