SDAMEvent
public enum SDAMEvent : Publishable
An SDAM monitoring event related to topology updates.
-
Published when a topology description changes.
Declaration
Swift
case topologyDescriptionChanged(TopologyDescriptionChangedEvent)
-
Published when a topology is initialized.
Declaration
Swift
case topologyOpening(TopologyOpeningEvent)
-
Published when a topology is shut down.
Declaration
Swift
case topologyClosed(TopologyClosedEvent)
-
Published when a topology’s information about a server changes.
Declaration
Swift
case serverDescriptionChanged(ServerDescriptionChangedEvent)
-
Published when information about a new server is discovered.
Declaration
Swift
case serverOpening(ServerOpeningEvent)
-
Published when a server is removed from a topology and no longer monitored.
Declaration
Swift
case serverClosed(ServerClosedEvent)
-
Published when the server monitor’s “hello” command is started - immediately before the “hello” command is serialized into raw BSON and written to the socket.
Declaration
Swift
case serverHeartbeatStarted(ServerHeartbeatStartedEvent)
-
Published when the server monitor’s “hello” command succeeds.
Declaration
Swift
case serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent)
-
Published when the server monitor’s “hello” command fails, either with an “ok: 0” or a socket exception.
Declaration
Swift
case serverHeartbeatFailed(ServerHeartbeatFailedEvent)