MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
mongocxx::v1::events::server_heartbeat_started Class Reference

#include <mongocxx/v1/events/server_heartbeat_started.hpp>

Description

ServerHeartbeatStartedEvent from the SDAM Logging and Monitoring specification.

See also
Attention
This feature is experimental! It is not ready for use!

Public Member Functions

bool awaited () const
 Return true when this heartbeat event used the "streaming" protocol (instead of the "polling" protocol).
bsoncxx::v1::stdx::string_view host () const
 Return the hostname for the connection used by the command.
std::uint16_t port () const
 Return the port number for the connection used by the command.

Member Function Documentation

◆ awaited()

bool mongocxx::v1::events::server_heartbeat_started::awaited ( ) const

Return true when this heartbeat event used the "streaming" protocol (instead of the "polling" protocol).

See also

◆ host()

bsoncxx::v1::stdx::string_view mongocxx::v1::events::server_heartbeat_started::host ( ) const

Return the hostname for the connection used by the command.

◆ port()

std::uint16_t mongocxx::v1::events::server_heartbeat_started::port ( ) const

Return the port number for the connection used by the command.


The documentation for this class was generated from the following file: