ServerHeartbeatStartedEvent

public struct ServerHeartbeatStartedEvent : MongoEvent, InitializableFromOpaquePointer

Published when the server monitor’s ismaster command is started - immediately before the ismaster command is serialized into raw BSON and written to the socket.

  • 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