MongoEventType

public enum MongoEventType

The two categories of events that can be monitored. One or both can be enabled for a MongoClient.

  • Encompasses events named .commandStarted, .commandSucceeded, .commandFailed

    Declaration

    Swift

    case commandMonitoring
  • Encompasses events named .serverChanged, .serverOpening, .serverClosed, .topologyChangedEvent, .topologyOpening, .topologyClosed, .serverHeartbeatStarted, .serverHeartbeatClosed, .serverHeartbeatFailed

    Declaration

    Swift

    case serverMonitoring