CommandFailedEvent
public struct CommandFailedEvent : MongoSwiftEvent, CommandEventProtocol
An event published when a command fails.
-
The execution time of the event, in microseconds.
Declaration
Swift
public let duration: Int
-
The command name.
Declaration
Swift
public let commandName: String
-
The failure, represented as a MongoErrorProtocol.
Declaration
Swift
public let failure: MongoErrorProtocol
-
The client generated request id.
Declaration
Swift
public let requestID: Int64
-
The driver generated operation id. This is used to link events together such as bulk write operations.
Declaration
Swift
public let operationID: Int64
-
The connection id for the command.
Declaration
Swift
public let serverAddress: ServerAddress
-
The service ID for the command, if the driver is in load balancer mode.
Declaration
Swift
public let serviceID: BSONObjectID?