Home/
Manual/
monitoring / sdamsubscriber/ MongoDB\Driver\Monitoring\SDAMSubscriber::serverHeartbeatStarted
MongoDB\Driver\Monitoring\SDAMSubscriber::serverHeartbeatStarted
PHP function
Edit on GitHub ✎
(mongodb >=1.13.0)
Notification method for a started server heartbeat
Description
MongoDB\Driver\Monitoring\SDAMSubscriber::serverHeartbeatStarted(MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent $event): void
If the subscriber is registered, this method is called when a server heartbeat (i.e. hello command issued through server monitoring) is sent to the server.
Parameters
event(MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent)An event object encapsulating information about the started server heartbeat.
Return Values
Void
Errors/Exceptions
See Also
MongoDB\Driver\Monitoring\ServerHeartbeatStartedEventMongoDB\Driver\Monitoring\addSubscriber()MongoDB\Driver\Manager::addSubscriber()