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* _succeeded_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 successfully executes a MongoDB command.
Definition: command_succeeded_event.hpp:36
std::int64_t duration() const
Returns the duration of the successful operation.
std::int64_t request_id() const
Returns the request id.
bsoncxx::stdx::optional< bsoncxx::oid > service_id() const
Optionally returns the service id.
bsoncxx::stdx::string_view command_name() const
Returns the name of the command.
std::int64_t operation_id() const
Returns the operation id.
~command_succeeded_event()
Destroys a command_succeeded_event.
bsoncxx::document::view reply() const
Returns the server reply for the succeeded operation.
std::uint16_t port() const
Returns the port.
bsoncxx::stdx::string_view host() const
Returns the host name.
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24