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 MongoError.
Declaration
Swift
public let failure: MongoError
-
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: Address