19 #include <bsoncxx/document/view.hpp>
20 #include <bsoncxx/oid.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
23 #include <mongocxx/config/prelude.hpp>
26 inline namespace v_noabi {
84 bsoncxx::stdx::optional<bsoncxx::oid>
service_id()
const;
91 bsoncxx::stdx::string_view
host()
const;
98 std::uint16_t
port()
const;
101 const void* _failed_event;
108 #include <mongocxx/config/postlude.hpp>
An event notification sent when the driver fails to execute a MongoDB command.
Definition: command_failed_event.hpp:35
std::int64_t operation_id() const
Returns the operation id.
bsoncxx::stdx::string_view host() const
Returns the host name.
bsoncxx::stdx::string_view command_name() const
Returns the name of the command.
std::int64_t duration() const
Returns the duration of the failed operation.
std::uint16_t port() const
Returns the port.
bsoncxx::document::view failure() const
Returns the server’s reply to the failed operation.
~command_failed_event()
Destroys a command_failed_event.
std::int64_t request_id() const
Returns the request id.
bsoncxx::stdx::optional< bsoncxx::oid > service_id() const
Optionally returns the service id.
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24