MongoDB C++ Driver mongocxx-3.11.0
Loading...
Searching...
No Matches
mongocxx::v_noabi::events::command_succeeded_event Class Reference

#include <mongocxx/v_noabi/mongocxx/events/command_succeeded_event.hpp>

Description

An event notification sent when the driver successfully executes a MongoDB command.

See also

Public Member Functions

 ~command_succeeded_event ()
 Destroys a command_succeeded_event.
 
bsoncxx::v_noabi::stdx::string_view command_name () const
 Returns the name of the command.
 
std::int64_t duration () const
 Returns the duration of the successful operation.
 
bsoncxx::v_noabi::stdx::string_view host () const
 Returns the host name.
 
std::int64_t operation_id () const
 Returns the operation id.
 
std::uint16_t port () const
 Returns the port.
 
bsoncxx::v_noabi::document::view reply () const
 Returns the server reply for the succeeded operation.
 
std::int64_t request_id () const
 Returns the request id.
 
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::oidservice_id () const
 Optionally returns the service id.
 

Constructor & Destructor Documentation

◆ ~command_succeeded_event()

mongocxx::v_noabi::events::command_succeeded_event::~command_succeeded_event ( )

Member Function Documentation

◆ command_name()

bsoncxx::v_noabi::stdx::string_view mongocxx::v_noabi::events::command_succeeded_event::command_name ( ) const

Returns the name of the command.

Returns
The command name.

◆ duration()

std::int64_t mongocxx::v_noabi::events::command_succeeded_event::duration ( ) const

Returns the duration of the successful operation.

Returns
The duration in microseconds.

◆ host()

bsoncxx::v_noabi::stdx::string_view mongocxx::v_noabi::events::command_succeeded_event::host ( ) const

Returns the host name.

Returns
The host name.

◆ operation_id()

std::int64_t mongocxx::v_noabi::events::command_succeeded_event::operation_id ( ) const

Returns the operation id.

Returns
The operation id.

◆ port()

std::uint16_t mongocxx::v_noabi::events::command_succeeded_event::port ( ) const

Returns the port.

Returns
The port.

◆ reply()

bsoncxx::v_noabi::document::view mongocxx::v_noabi::events::command_succeeded_event::reply ( ) const

Returns the server reply for the succeeded operation.

Returns
The reply.

◆ request_id()

std::int64_t mongocxx::v_noabi::events::command_succeeded_event::request_id ( ) const

Returns the request id.

Returns
The request id.

◆ service_id()

bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::oid > mongocxx::v_noabi::events::command_succeeded_event::service_id ( ) const

Optionally returns the service id.

Returns
No contained value, or contains the service id if load balancing is enabled.

The documentation for this class was generated from the following file: