MongoDB C++ Driver mongocxx-3.11.0
|
#include <mongocxx/v_noabi/mongocxx/events/command_failed_event.hpp>
An event notification sent when the driver fails to execute a MongoDB command.
Public Member Functions | |
~command_failed_event () | |
Destroys a command_failed_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 failed operation. | |
bsoncxx::v_noabi::document::view | failure () const |
Returns the server’s reply to the failed 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. | |
std::int64_t | request_id () const |
Returns the request id. | |
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::oid > | service_id () const |
Optionally returns the service id. | |
mongocxx::v_noabi::events::command_failed_event::~command_failed_event | ( | ) |
Destroys a command_failed_event.
bsoncxx::v_noabi::stdx::string_view mongocxx::v_noabi::events::command_failed_event::command_name | ( | ) | const |
Returns the name of the command.
std::int64_t mongocxx::v_noabi::events::command_failed_event::duration | ( | ) | const |
Returns the duration of the failed operation.
bsoncxx::v_noabi::document::view mongocxx::v_noabi::events::command_failed_event::failure | ( | ) | const |
Returns the server’s reply to the failed operation.
bsoncxx::v_noabi::stdx::string_view mongocxx::v_noabi::events::command_failed_event::host | ( | ) | const |
Returns the host name.
std::int64_t mongocxx::v_noabi::events::command_failed_event::operation_id | ( | ) | const |
Returns the operation id.
std::uint16_t mongocxx::v_noabi::events::command_failed_event::port | ( | ) | const |
Returns the port.
std::int64_t mongocxx::v_noabi::events::command_failed_event::request_id | ( | ) | const |
Returns the request id.
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::oid > mongocxx::v_noabi::events::command_failed_event::service_id | ( | ) | const |
Optionally returns the service id.