68 return _event.message();
77 return _event.duration();
94 std::uint16_t
port()
const {
104 return _event.awaited();
A polyfill for std::string_view.
Definition string_view.hpp:412
heartbeat_failed_event(void const *event)
ServerHeartbeatFailedEvent from the SDAM Logging and Monitoring specification.
Definition server_heartbeat_failed.hpp:42
The failed execution of a heartbeat ("hello") command.
Definition heartbeat_failed_event.hpp:40
std::int64_t duration() const
Returns the duration of the failed operation.
Definition heartbeat_failed_event.hpp:76
heartbeat_failed_event(void const *event)
std::string message() const
Returns the failed operation's error message.
Definition heartbeat_failed_event.hpp:67
heartbeat_failed_event(v1::events::server_heartbeat_failed const &event)
Construct with the mongocxx::v1 equivalent.
Definition heartbeat_failed_event.hpp:53
bsoncxx::v_noabi::stdx::string_view host() const
Returns the host name.
Definition heartbeat_failed_event.hpp:85
bool awaited() const
Returns a boolean indicating whether this heartbeat event is from an awaitable hello.
Definition heartbeat_failed_event.hpp:103
std::uint16_t port() const
Returns the port.
Definition heartbeat_failed_event.hpp:94
Declares mongocxx::v_noabi::events::heartbeat_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 mongocxx::v1::events::server_heartbeat_failed.
Provides std::string_view-related polyfills for library API usage.