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* _started_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 begins executing a MongoDB command.
Definition: command_started_event.hpp:36
std::uint16_t port() const
Returns the port.
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.
~command_started_event()
Destroys a command_started_event.
bsoncxx::stdx::string_view host() const
Returns the host name.
bsoncxx::stdx::string_view database_name() const
Returns the name of the database.
bsoncxx::document::view command() const
Returns the command that has been started.
std::int64_t request_id() const
Returns the request id.
std::int64_t operation_id() const
Returns the operation id.
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24