The MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent class
The MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent class encapsulates information about a started server heartbeat (i.e. hello command issued through server monitoring).
Intro
The MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent class encapsulates information about a started server heartbeat (i.e. hello command issued through server monitoring).
Class synopsis
Properties
hostThe hostname of the server.
portThe port of the server.
awaitedWhether the heartbeat used a streaming protocol. The extension does not use the streaming protocol for monitoring, so this method will always return false.
Changelog
| Version | Description |
|---|---|
| PECL mongodb 2.3.0 | Added public readonly properties. |
Serverheartbeatstartedevent