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