MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
mongocxx::v1::events::command_succeeded Class Reference

#include <mongocxx/v1/events/command_succeeded.hpp>

Description

CommandSucceededEvent from the Command Logging and Monitoring specification.

See also
Attention
This feature is experimental! It is not ready for use!

Public Member Functions

bsoncxx::v1::stdx::string_view command_name () const
 Return the command name.
std::int64_t duration () const
 Return the execution time of the event.
bsoncxx::v1::stdx::string_view host () const
 Return the hostname for the connection used by the command.
std::int64_t operation_id () const
 Return the client-generated operation ID.
std::uint16_t port () const
 Return the port number for the connection used by the command.
bsoncxx::v1::document::view reply () const
 Return the command reply.
std::int64_t request_id () const
 Return the client-generated request ID.
bsoncxx::v1::stdx::optional< bsoncxx::v1::oidservice_id () const
 Return the service ID for the command (when in load balancer mode).

Member Function Documentation

◆ command_name()

bsoncxx::v1::stdx::string_view mongocxx::v1::events::command_succeeded::command_name ( ) const

Return the command name.

◆ duration()

std::int64_t mongocxx::v1::events::command_succeeded::duration ( ) const

Return the execution time of the event.

◆ host()

bsoncxx::v1::stdx::string_view mongocxx::v1::events::command_succeeded::host ( ) const

Return the hostname for the connection used by the command.

◆ operation_id()

std::int64_t mongocxx::v1::events::command_succeeded::operation_id ( ) const

Return the client-generated operation ID.

◆ port()

std::uint16_t mongocxx::v1::events::command_succeeded::port ( ) const

Return the port number for the connection used by the command.

◆ reply()

bsoncxx::v1::document::view mongocxx::v1::events::command_succeeded::reply ( ) const

Return the command reply.

◆ request_id()

std::int64_t mongocxx::v1::events::command_succeeded::request_id ( ) const

Return the client-generated request ID.

◆ service_id()

bsoncxx::v1::stdx::optional< bsoncxx::v1::oid > mongocxx::v1::events::command_succeeded::service_id ( ) const

Return the service ID for the command (when in load balancer mode).


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