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

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

Description

CommandStartedEvent 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::document::view command () const
 Return the command.
bsoncxx::v1::stdx::string_view command_name () const
 Return the command name.
bsoncxx::v1::stdx::string_view database_name () const
 Return the database name.
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.
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()

bsoncxx::v1::document::view mongocxx::v1::events::command_started::command ( ) const

Return the command.

◆ command_name()

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

Return the command name.

◆ database_name()

bsoncxx::v1::stdx::string_view mongocxx::v1::events::command_started::database_name ( ) const

Return the database name.

◆ host()

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

Return the hostname for the connection used by the command.

◆ operation_id()

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

Return the client-generated operation ID.

◆ port()

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

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

◆ request_id()

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

Return the client-generated request ID.

◆ service_id()

bsoncxx::v1::stdx::optional< bsoncxx::v1::oid > mongocxx::v1::events::command_started::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: