MongoDB C++ Driver  mongocxx-3.4.0
Public Member Functions | List of all members
mongocxx::events::heartbeat_succeeded_event Class Reference

An event notification sent when the driver completes an "isMaster" command to check the status of a server. More...

#include <heartbeat_succeeded_event.hpp>

Public Member Functions

 ~heartbeat_succeeded_event ()
 Destroys a heartbeat_succeeded_event.
 
bsoncxx::document::view reply () const
 Returns the server reply for the succeeded operation. More...
 
std::int64_t duration () const
 Returns the duration of the successful operation. More...
 
bsoncxx::stdx::string_view host () const
 Returns the host name. More...
 
std::uint16_t port () const
 Returns the port. More...
 

Detailed Description

An event notification sent when the driver completes an "isMaster" command to check the status of a server.

See also
"ServerHeartbeatSucceededEvent" in https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring-monitoring.rst

Member Function Documentation

◆ duration()

std::int64_t mongocxx::events::heartbeat_succeeded_event::duration ( ) const

Returns the duration of the successful operation.

Returns
The duration in microseconds.

◆ host()

bsoncxx::stdx::string_view mongocxx::events::heartbeat_succeeded_event::host ( ) const

Returns the host name.

Returns
The host name.

◆ port()

std::uint16_t mongocxx::events::heartbeat_succeeded_event::port ( ) const

Returns the port.

Returns
The port.

◆ reply()

bsoncxx::document::view mongocxx::events::heartbeat_succeeded_event::reply ( ) const

Returns the server reply for the succeeded operation.

Returns
The reply.

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