CommandStartedEvent
public struct CommandStartedEvent : MongoSwiftEvent, CommandEventProtocol
An event published when a command starts.
-
The command.
Declaration
Swift
public let command: BSONDocument
-
The database name.
Declaration
Swift
public let databaseName: String
-
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?