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