CommandStartedEvent
public struct CommandStartedEvent : MongoEvent, InitializableFromOpaquePointer
An event published when a command starts. The event is stored under the key event
in the userInfo
property of Notification
s posted under the name .commandStarted.
-
The type of this event.
Declaration
Swift
public static var eventType: MongoEventType { get }
-
The name this event will be posted under.
Declaration
Swift
public static var eventName: Notification.Name { get }
-
The command.
Declaration
Swift
public let command: Document
-
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 connection id for the command.
Declaration
Swift
public let connectionId: ConnectionId