19 #include <bsoncxx/document/view.hpp>
20 #include <bsoncxx/oid.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
23 #include <mongocxx/config/prelude.hpp>
26 MONGOCXX_INLINE_NAMESPACE_BEGIN
85 bsoncxx::stdx::optional<bsoncxx::oid>
service_id()
const;
92 bsoncxx::stdx::string_view
host()
const;
99 std::uint16_t
port()
const;
102 const void* _failed_event;
106 MONGOCXX_INLINE_NAMESPACE_END
109 #include <mongocxx/config/postlude.hpp>
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
An event notification sent when the driver fails to execute a MongoDB command.
Definition: command_failed_event.hpp:36
bsoncxx::stdx::string_view command_name() const
Returns the name of the command.
bsoncxx::stdx::string_view host() const
Returns the host name.
std::int64_t request_id() const
Returns the request id.
~command_failed_event()
Destroys a command_failed_event.
bsoncxx::document::view failure() const
Returns the server’s reply to the failed operation.
bsoncxx::stdx::optional< bsoncxx::oid > service_id() const
Optionally returns the service id.
std::uint16_t port() const
Returns the port.
std::int64_t duration() const
Returns the duration of the failed operation.
std::int64_t operation_id() const
Returns the operation id.
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24