php8.5
Home/ Manual/ driver / monitoring/ The MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent class

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

class MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent { }

Properties

host

The hostname of the server.

port

The port of the server.

awaited

Whether the heartbeat used a streaming protocol. The extension does not use the streaming protocol for monitoring, so this method will always return false.

Changelog

VersionDescription
PECL mongodb 2.3.0Added public readonly properties.

Serverheartbeatstartedevent

In this section

Source: reference/mongodb/mongodb/driver/monitoring/serverheartbeatstartedevent.xml · from the official PHP manual (php/doc-en)