17#include <bsoncxx/stdx/string_view.hpp>
19#include <mongocxx/config/prelude.hpp>
22MONGOCXX_INLINE_NAMESPACE_BEGIN
61 bsoncxx::stdx::string_view
host()
const;
68 std::uint16_t
port()
const;
78 const void* _failed_event;
82MONGOCXX_INLINE_NAMESPACE_END
85#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:33
std::string message() const
Returns the failed operation's error message.
~heartbeat_failed_event()
Destroys a heartbeat_failed_event.
std::uint16_t port() const
Returns the port.
std::int64_t duration() const
Returns the duration of the failed operation.
bsoncxx::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.
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24