(mongodb >=1.13.0)
The MongoDB\Driver\Monitoring\ServerChangedEvent class encapsulates information about a changed server description. For example, a server's type changing from secondary to primary would cause its server description to change.
The hostname of the server.
The port of the server.
The topology ID.
The new server description.
The previous server description.
| Version | Description |
|---|---|
| PECL mongodb 2.3.0 | Added public readonly properties. |