71 return _event.failure();
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_failed_event(void const *event)
CommandFailedEvent from the Command Logging and Monitoring specification.
Definition command_failed.hpp:45
The failed execution of a MongoDB command.
Definition command_failed_event.hpp:43
bsoncxx::v_noabi::stdx::string_view command_name() const
Returns the name of the command.
Definition command_failed_event.hpp:79
std::int64_t operation_id() const
Returns the operation id.
Definition command_failed_event.hpp:106
command_failed_event(v1::events::command_failed const &event)
Construct with the mongocxx::v1 equivalent.
Definition command_failed_event.hpp:56
std::int64_t duration() const
Returns the duration of the failed operation.
Definition command_failed_event.hpp:88
std::uint16_t port() const
Returns the port.
Definition command_failed_event.hpp:133
bsoncxx::v_noabi::document::view failure() const
Returns the server’s reply to the failed operation.
Definition command_failed_event.hpp:70
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::oid > service_id() const
Optionally returns the service id.
Definition command_failed_event.hpp:115
command_failed_event(void const *event)
bsoncxx::v_noabi::stdx::string_view host() const
Returns the host name.
Definition command_failed_event.hpp:124
std::int64_t request_id() const
Returns the request id.
Definition command_failed_event.hpp:97
Provides mongocxx::v1::events::command_failed.
Declares mongocxx::v_noabi::events::command_failed_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.