ServerHeartbeatFailedEvent
public struct ServerHeartbeatFailedEvent : MongoSwiftEvent
Published when the server monitor’s “hello” command fails, either with an “ok: 0” or a socket exception.
-
The execution time of the event, in microseconds.
Declaration
Swift
public let duration: Int
-
The failure.
Declaration
Swift
public let failure: MongoErrorProtocol
-
The address of the server.
Declaration
Swift
public let serverAddress: ServerAddress