MongoDB C++ Driver
mongocxx-3.7.0
|
An event notification sent when the driver begins executing a MongoDB command. More...
#include <command_started_event.hpp>
Public Member Functions | |
~command_started_event () | |
Destroys a command_started_event. | |
bsoncxx::document::view | command () const |
Returns the command that has been started. More... | |
bsoncxx::stdx::string_view | database_name () const |
Returns the name of the database. More... | |
bsoncxx::stdx::string_view | command_name () const |
Returns the name of the command. More... | |
std::int64_t | request_id () const |
Returns the request id. More... | |
std::int64_t | operation_id () const |
Returns the operation id. More... | |
bsoncxx::stdx::optional< bsoncxx::oid > | service_id () const |
Optionally returns the service id. More... | |
bsoncxx::stdx::string_view | host () const |
Returns the host name. More... | |
std::uint16_t | port () const |
Returns the port. More... | |
An event notification sent when the driver begins executing a MongoDB command.
bsoncxx::document::view mongocxx::events::command_started_event::command | ( | ) | const |
Returns the command that has been started.
bsoncxx::stdx::string_view mongocxx::events::command_started_event::command_name | ( | ) | const |
Returns the name of the command.
bsoncxx::stdx::string_view mongocxx::events::command_started_event::database_name | ( | ) | const |
Returns the name of the database.
bsoncxx::stdx::string_view mongocxx::events::command_started_event::host | ( | ) | const |
Returns the host name.
std::int64_t mongocxx::events::command_started_event::operation_id | ( | ) | const |
Returns the operation id.
std::uint16_t mongocxx::events::command_started_event::port | ( | ) | const |
Returns the port.
std::int64_t mongocxx::events::command_started_event::request_id | ( | ) | const |
Returns the request id.
bsoncxx::stdx::optional<bsoncxx::oid> mongocxx::events::command_started_event::service_id | ( | ) | const |
Optionally returns the service id.