CommandSucceededEvent
public struct CommandSucceededEvent : MongoSwiftEvent, CommandEventProtocol
An event published when a command succeeds.
-
The execution time of the event, in microseconds.
Declaration
Swift
public let duration: Int
-
The command reply.
Declaration
Swift
public let reply: BSONDocument
-
The command name.
Declaration
Swift
public let commandName: String
-
The driver 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 address of the server the command was run against.
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?