71 return _event.reply();
80 return _event.command_name();
89 return _event.duration();
98 return _event.request_id();
107 return _event.operation_id();
116 return _event.service_id();
125 return _event.host();
134 return _event.port();
A polyfill for std::optional<T>.
Definition optional.hpp:799
A polyfill for std::string_view.
Definition string_view.hpp:412
A read-only, non-owning view of a BSON document.
Definition view.hpp:40
command_succeeded_event(void const *event)
CommandSucceededEvent from the Command Logging and Monitoring specification.
Definition command_succeeded.hpp:45
The successful execution of a MongoDB command.
Definition command_succeeded_event.hpp:43
command_succeeded_event(v1::events::command_succeeded const &event)
Construct with the mongocxx::v1 equivalent.
Definition command_succeeded_event.hpp:56
std::int64_t duration() const
Returns the duration of the successful operation.
Definition command_succeeded_event.hpp:88
std::int64_t request_id() const
Returns the request id.
Definition command_succeeded_event.hpp:97
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::oid > service_id() const
Optionally returns the service id.
Definition command_succeeded_event.hpp:115
bsoncxx::v_noabi::stdx::string_view host() const
Returns the host name.
Definition command_succeeded_event.hpp:124
bsoncxx::v_noabi::document::view reply() const
Returns the server reply for the succeeded operation.
Definition command_succeeded_event.hpp:70
command_succeeded_event(void const *event)
std::uint16_t port() const
Returns the port.
Definition command_succeeded_event.hpp:133
std::int64_t operation_id() const
Returns the operation id.
Definition command_succeeded_event.hpp:106
bsoncxx::v_noabi::stdx::string_view command_name() const
Returns the name of the command.
Definition command_succeeded_event.hpp:79
Provides mongocxx::v1::events::command_succeeded.
Declares mongocxx::v_noabi::events::command_succeeded_event.
#define MONGOCXX_ABI_NO_EXPORT
Excludes the associated entity from being part of the ABI.
Definition export.hpp:20
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
Declares entities describing APM events.
Declares entities whose ABI stability is NOT guaranteed.
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Provides bsoncxx::v_noabi::document::view.
Provides bsoncxx::v_noabi::oid.
Provides std::optional-related polyfills for library API usage.
Provides std::string_view-related polyfills for library API usage.