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

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

Description

ServerHeartbeatSucceededEvent 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).
std::int64_t duration () const
 Return the execution time of the event.
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.
bsoncxx::v1::document::view reply () const
 Return the command reply.

Member Function Documentation

◆ awaited()

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

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

See also

◆ duration()

std::int64_t mongocxx::v1::events::server_heartbeat_succeeded::duration ( ) const

Return the execution time of the event.

◆ host()

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

Return the hostname for the connection used by the command.

◆ port()

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

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

◆ reply()

bsoncxx::v1::document::view mongocxx::v1::events::server_heartbeat_succeeded::reply ( ) const

Return the command reply.


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