ServerHeartbeatFailedEvent

public struct ServerHeartbeatFailedEvent : MongoEvent, InitializableFromOpaquePointer

Published when the server monitor’s ismaster fails, either with an “ok: 0” or a socket exception.

  • 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 execution time of the event, in microseconds.

    Declaration

    Swift

    public let duration: Int64
  • The failure.

    Declaration

    Swift

    public let failure: MongoError
  • The connection ID (host/port pair) of the server.

    Declaration

    Swift

    public let connectionId: ConnectionId