-
An event published when a command starts.
Declaration
Swift
case started(CommandStartedEvent) -
An event published when a command succeeds.
Declaration
Swift
case succeeded(CommandSucceededEvent) -
An event published when a command fails.
Declaration
Swift
case failed(CommandFailedEvent) -
The name of the command that generated this event.
Declaration
Swift
public var commandName: String { get } -
The driver generated request ID.
Declaration
Swift
public var requestID: Int64 { get } -
The driver generated operation ID. This is used to link events together such as bulk write operations.
Declaration
Swift
public var operationID: Int64 { get } -
The address of the server the command was run against.
Declaration
Swift
public var serverAddress: ServerAddress { get } -
The service ID for the command, if the driver is in load balancer mode.
Declaration
Swift
public var serviceID: BSONObjectID? { get }
View on GitHub
Install in Dash
CommandEvent Enumeration Reference