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* _started_event;
108 #include <mongocxx/config/postlude.hpp>
An event notification sent when the driver begins executing a MongoDB command.
Definition: command_started_event.hpp:35
std::uint16_t port() const
Returns the port.
bsoncxx::document::view command() const
Returns the command that has been started.
bsoncxx::stdx::string_view database_name() const
Returns the name of the database.
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 host() const
Returns the host name.
bsoncxx::stdx::string_view command_name() const
Returns the name of the command.
std::int64_t operation_id() const
Returns the operation id.
~command_started_event()
Destroys a command_started_event.
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24