ServerDescriptionChangedEvent
public struct ServerDescriptionChangedEvent : MongoEvent, InitializableFromOpaquePointer
Published when a server description changes. This does NOT include changes to the server’s roundTripTime property.
-
The type of this event.
Declaration
Swift
public static var eventType: MongoEventType { get }
-
The name this event will be posted under.
Declaration
Swift
public static var eventName: Notification.Name { get }
-
The connection ID (host/port pair) of the server.
Declaration
Swift
public let connectionId: ConnectionId
-
A unique identifier for the topology.
Declaration
Swift
public let topologyId: ObjectId
-
The previous server description.
Declaration
Swift
public let previousDescription: ServerDescription
-
The new server description.
Declaration
Swift
public let newDescription: ServerDescription