19 #include <mongocxx/events/heartbeat_failed_event-fwd.hpp>
21 #include <bsoncxx/stdx/string_view.hpp>
23 #include <mongocxx/config/prelude.hpp>
64 bsoncxx::v_noabi::stdx::string_view
host()
const;
71 std::uint16_t
port()
const;
81 const void* _failed_event;
88 #include <mongocxx/config/postlude.hpp>
An event notification sent when the driver failed to send an "hello" command to check the status of a...
Definition: heartbeat_failed_event.hpp:36
std::int64_t duration() const
Returns the duration of the failed operation.
std::string message() const
Returns the failed operation's error message.
~heartbeat_failed_event()
Destroys a heartbeat_failed_event.
bsoncxx::v_noabi::stdx::string_view host() const
Returns the host name.
bool awaited() const
Returns a boolean indicating whether this heartbeat event is from an awaitable hello.
std::uint16_t port() const
Returns the port.
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19