#include <mongocxx/v1/events/command_started.hpp>
CommandStartedEvent from the Command Logging and Monitoring specification.
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::oid > | service_id () const |
| Return the service ID for the command (when in load balancer mode). | |
| bsoncxx::v1::document::view mongocxx::v1::events::command_started::command | ( | ) | const |
Return the command.
| bsoncxx::v1::stdx::string_view mongocxx::v1::events::command_started::command_name | ( | ) | const |
Return the command name.
| bsoncxx::v1::stdx::string_view mongocxx::v1::events::command_started::database_name | ( | ) | const |
Return the database name.
| bsoncxx::v1::stdx::string_view mongocxx::v1::events::command_started::host | ( | ) | const |
Return the hostname for the connection used by the command.
| std::int64_t mongocxx::v1::events::command_started::operation_id | ( | ) | const |
Return the client-generated operation ID.
| std::uint16_t mongocxx::v1::events::command_started::port | ( | ) | const |
Return the port number for the connection used by the command.
| std::int64_t mongocxx::v1::events::command_started::request_id | ( | ) | const |
Return the client-generated request 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).