CommandSucceededEvent
public struct CommandSucceededEvent : MongoEvent, InitializableFromOpaquePointer
An event published when a command succeeds. The event is stored under the key event
in the userInfo
property of Notification
s posted under the name .commandSucceeded.
-
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 execution time of the event, in microseconds.
Declaration
Swift
public let duration: Int64
-
The command reply.
Declaration
Swift
public let reply: Document
-
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