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

The MongoDB\Driver\Monitoring\ServerOpeningEvent class

The MongoDB\Driver\Monitoring\ServerOpeningEvent class encapsulates information about an opened server. This corresponds to a new server being added to the topology.

Intro

The MongoDB\Driver\Monitoring\ServerOpeningEvent class encapsulates information about an opened server. This corresponds to a new server being added to the topology.

Class synopsis

class MongoDB\Driver\Monitoring\ServerOpeningEvent { }

Properties

host

The hostname of the server.

port

The port of the server.

topologyId

The topology ID.

Changelog

VersionDescription
PECL mongodb 2.3.0Added public readonly properties.

Serveropeningevent

In this section

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