MongoDB C++ Driver mongocxx-3.11.0
Loading...
Searching...
No Matches
mongocxx::v_noabi::options::apm Class Reference

#include <mongocxx/v_noabi/mongocxx/options/apm.hpp>

Description

Class representing MongoDB application performance monitoring.

Public Member Functions

const std::function< void MONGOCXX_ABI_CDECL(const events::command_failed_event &)> & command_failed () const
 Retrieves the command failed monitoring callback.
 
const std::function< void MONGOCXX_ABI_CDECL(const events::command_started_event &)> & command_started () const
 Retrieves the command started monitoring callback.
 
const std::function< void MONGOCXX_ABI_CDECL(const events::command_succeeded_event &)> & command_succeeded () const
 Retrieves the command succeeded monitoring callback.
 
const std::function< void MONGOCXX_ABI_CDECL(const events::heartbeat_failed_event &)> & heartbeat_failed () const
 Retrieves the heartbeat failed monitoring callback.
 
const std::function< void MONGOCXX_ABI_CDECL(const events::heartbeat_started_event &)> & heartbeat_started () const
 Retrieves the heartbeat started monitoring callback.
 
const std::function< void MONGOCXX_ABI_CDECL(const events::heartbeat_succeeded_event &)> & heartbeat_succeeded () const
 Retrieves the heartbeat succeeded monitoring callback.
 
apmon_command_failed (std::function< void MONGOCXX_ABI_CDECL(const events::command_failed_event &)> command_failed)
 Set the command failed monitoring callback. The callback takes a reference to a command_failed_event which will only contain valid data for the duration of the callback.
 
apmon_command_started (std::function< void MONGOCXX_ABI_CDECL(const events::command_started_event &)> command_started)
 Set the command started monitoring callback. The callback takes a reference to a command_started_event which will only contain valid data for the duration of the callback.
 
apmon_command_succeeded (std::function< void MONGOCXX_ABI_CDECL(const events::command_succeeded_event &)> command_succeeded)
 Set the command succeeded monitoring callback. The callback takes a reference to a command_succeeded_event which will only contain valid data for the duration of the callback.
 
apmon_heartbeat_failed (std::function< void MONGOCXX_ABI_CDECL(const events::heartbeat_failed_event &)> heartbeat_failed)
 Set the heartbeat failed monitoring callback. The callback takes a reference to a heartbeat_failed_event which will only contain valid data for the duration of the callback.
 
apmon_heartbeat_started (std::function< void MONGOCXX_ABI_CDECL(const events::heartbeat_started_event &)> heartbeat_started)
 Set the heartbeat started monitoring callback. The callback takes a reference to a heartbeat_started_event which will only contain valid data for the duration of the callback.
 
apmon_heartbeat_succeeded (std::function< void MONGOCXX_ABI_CDECL(const events::heartbeat_succeeded_event &)> heartbeat_succeeded)
 Set the heartbeat succeeded monitoring callback. The callback takes a reference to a heartbeat_succeeded_event which will only contain valid data for the duration of the callback.
 
apmon_server_changed (std::function< void MONGOCXX_ABI_CDECL(const events::server_changed_event &)> server_changed)
 Set the server description changed monitoring callback. The callback takes a reference to a server_changed_event which will only contain valid data for the duration of the callback.
 
apmon_server_closed (std::function< void MONGOCXX_ABI_CDECL(const events::server_closed_event &)> server_closed)
 Set the server closed monitoring callback. The callback takes a reference to a server_closed_event which will only contain valid data for the duration of the callback.
 
apmon_server_opening (std::function< void MONGOCXX_ABI_CDECL(const events::server_opening_event &)> server_opening)
 Set the server opening monitoring callback. The callback takes a reference to a server_opening_event which will only contain valid data for the duration of the callback.
 
apmon_topology_changed (std::function< void MONGOCXX_ABI_CDECL(const events::topology_changed_event &)> topology_changed)
 Set the topology description changed monitoring callback. The callback takes a reference to a topology_changed_event which will only contain valid data for the duration of the callback.
 
apmon_topology_closed (std::function< void MONGOCXX_ABI_CDECL(const events::topology_closed_event &)> topology_closed)
 Set the topology closed monitoring callback. The callback takes a reference to a topology_closed_event which will only contain valid data for the duration of the callback.
 
apmon_topology_opening (std::function< void MONGOCXX_ABI_CDECL(const events::topology_opening_event &)> topology_opening)
 Set the topology_opening monitoring callback. The callback takes a reference to a topology_opening_event which will only contain valid data for the duration of the callback.
 
const std::function< void MONGOCXX_ABI_CDECL(const events::server_changed_event &)> & server_changed () const
 Retrieves the server description changed monitoring callback.
 
const std::function< void MONGOCXX_ABI_CDECL(const events::server_closed_event &)> & server_closed () const
 Retrieves the server closed monitoring callback.
 
const std::function< void MONGOCXX_ABI_CDECL(const events::server_opening_event &)> & server_opening () const
 Retrieves the server opening monitoring callback.
 
const std::function< void MONGOCXX_ABI_CDECL(const events::topology_changed_event &)> & topology_changed () const
 Retrieves the topology description changed monitoring callback.
 
const std::function< void MONGOCXX_ABI_CDECL(const events::topology_closed_event &)> & topology_closed () const
 Retrieves the topology closed monitoring callback.
 
const std::function< void MONGOCXX_ABI_CDECL(const events::topology_opening_event &)> & topology_opening () const
 Retrieves the topology_opening monitoring callback.
 

Member Function Documentation

◆ command_failed()

const std::function< void MONGOCXX_ABI_CDECL(const events::command_failed_event &)> & mongocxx::v_noabi::options::apm::command_failed ( ) const

Retrieves the command failed monitoring callback.

Returns
The command failed monitoring callback.

◆ command_started()

const std::function< void MONGOCXX_ABI_CDECL(const events::command_started_event &)> & mongocxx::v_noabi::options::apm::command_started ( ) const

Retrieves the command started monitoring callback.

Returns
The command started monitoring callback.

◆ command_succeeded()

const std::function< void MONGOCXX_ABI_CDECL(const events::command_succeeded_event &)> & mongocxx::v_noabi::options::apm::command_succeeded ( ) const

Retrieves the command succeeded monitoring callback.

Returns
The command succeeded monitoring callback.

◆ heartbeat_failed()

const std::function< void MONGOCXX_ABI_CDECL(const events::heartbeat_failed_event &)> & mongocxx::v_noabi::options::apm::heartbeat_failed ( ) const

Retrieves the heartbeat failed monitoring callback.

Returns
The heartbeat failed monitoring callback.

◆ heartbeat_started()

const std::function< void MONGOCXX_ABI_CDECL(const events::heartbeat_started_event &)> & mongocxx::v_noabi::options::apm::heartbeat_started ( ) const

Retrieves the heartbeat started monitoring callback.

Returns
The heartbeat started monitoring callback.

◆ heartbeat_succeeded()

const std::function< void MONGOCXX_ABI_CDECL(const events::heartbeat_succeeded_event &)> & mongocxx::v_noabi::options::apm::heartbeat_succeeded ( ) const

Retrieves the heartbeat succeeded monitoring callback.

Returns
The heartbeat succeeded monitoring callback.

◆ on_command_failed()

apm & mongocxx::v_noabi::options::apm::on_command_failed ( std::function< void MONGOCXX_ABI_CDECL(const events::command_failed_event &)> command_failed)

Set the command failed monitoring callback. The callback takes a reference to a command_failed_event which will only contain valid data for the duration of the callback.

Warning
If the callback throws an exception, the behavior is undefined.
Parameters
command_failedThe command failed monitoring callback.
Returns
A reference to the object on which this member function is being called. This facilitates method chaining.

◆ on_command_started()

apm & mongocxx::v_noabi::options::apm::on_command_started ( std::function< void MONGOCXX_ABI_CDECL(const events::command_started_event &)> command_started)

Set the command started monitoring callback. The callback takes a reference to a command_started_event which will only contain valid data for the duration of the callback.

Warning
If the callback throws an exception, the behavior is undefined.
Parameters
command_startedThe command started monitoring callback.
Returns
A reference to the object on which this member function is being called. This facilitates method chaining.

◆ on_command_succeeded()

apm & mongocxx::v_noabi::options::apm::on_command_succeeded ( std::function< void MONGOCXX_ABI_CDECL(const events::command_succeeded_event &)> command_succeeded)

Set the command succeeded monitoring callback. The callback takes a reference to a command_succeeded_event which will only contain valid data for the duration of the callback.

Warning
If the callback throws an exception, the behavior is undefined.
Parameters
command_succeededThe command succeeded monitoring callback.
Returns
A reference to the object on which this member function is being called. This facilitates method chaining.

◆ on_heartbeat_failed()

apm & mongocxx::v_noabi::options::apm::on_heartbeat_failed ( std::function< void MONGOCXX_ABI_CDECL(const events::heartbeat_failed_event &)> heartbeat_failed)

Set the heartbeat failed monitoring callback. The callback takes a reference to a heartbeat_failed_event which will only contain valid data for the duration of the callback.

Warning
If the callback throws an exception, the behavior is undefined.
Parameters
heartbeat_failedThe heartbeat failed monitoring callback.
Returns
A reference to the object on which this member function is being called. This facilitates method chaining.

◆ on_heartbeat_started()

apm & mongocxx::v_noabi::options::apm::on_heartbeat_started ( std::function< void MONGOCXX_ABI_CDECL(const events::heartbeat_started_event &)> heartbeat_started)

Set the heartbeat started monitoring callback. The callback takes a reference to a heartbeat_started_event which will only contain valid data for the duration of the callback.

Warning
If the callback throws an exception, the behavior is undefined.
Parameters
heartbeat_startedThe heartbeat started monitoring callback.
Returns
A reference to the object on which this member function is being called. This facilitates method chaining.

◆ on_heartbeat_succeeded()

apm & mongocxx::v_noabi::options::apm::on_heartbeat_succeeded ( std::function< void MONGOCXX_ABI_CDECL(const events::heartbeat_succeeded_event &)> heartbeat_succeeded)

Set the heartbeat succeeded monitoring callback. The callback takes a reference to a heartbeat_succeeded_event which will only contain valid data for the duration of the callback.

Warning
If the callback throws an exception, the behavior is undefined.
Parameters
heartbeat_succeededThe heartbeat succeeded monitoring callback.
Returns
A reference to the object on which this member function is being called. This facilitates method chaining.

◆ on_server_changed()

apm & mongocxx::v_noabi::options::apm::on_server_changed ( std::function< void MONGOCXX_ABI_CDECL(const events::server_changed_event &)> server_changed)

Set the server description changed monitoring callback. The callback takes a reference to a server_changed_event which will only contain valid data for the duration of the callback.

Warning
If the callback throws an exception, the behavior is undefined.
Parameters
server_changedThe server description changed monitoring callback.
Returns
A reference to the object on which this member function is being called. This facilitates method chaining.

◆ on_server_closed()

apm & mongocxx::v_noabi::options::apm::on_server_closed ( std::function< void MONGOCXX_ABI_CDECL(const events::server_closed_event &)> server_closed)

Set the server closed monitoring callback. The callback takes a reference to a server_closed_event which will only contain valid data for the duration of the callback.

Warning
If the callback throws an exception, the behavior is undefined.
Parameters
server_closedThe server closed monitoring callback.
Returns
A reference to the object on which this member function is being called. This facilitates method chaining.

◆ on_server_opening()

apm & mongocxx::v_noabi::options::apm::on_server_opening ( std::function< void MONGOCXX_ABI_CDECL(const events::server_opening_event &)> server_opening)

Set the server opening monitoring callback. The callback takes a reference to a server_opening_event which will only contain valid data for the duration of the callback.

Warning
If the callback throws an exception, the behavior is undefined.
Parameters
server_openingThe server opening monitoring callback.
Returns
A reference to the object on which this member function is being called. This facilitates method chaining.

◆ on_topology_changed()

apm & mongocxx::v_noabi::options::apm::on_topology_changed ( std::function< void MONGOCXX_ABI_CDECL(const events::topology_changed_event &)> topology_changed)

Set the topology description changed monitoring callback. The callback takes a reference to a topology_changed_event which will only contain valid data for the duration of the callback.

Warning
If the callback throws an exception, the behavior is undefined.
Parameters
topology_changedThe topology description changed monitoring callback.
Returns
A reference to the object on which this member function is being called. This facilitates method chaining.

◆ on_topology_closed()

apm & mongocxx::v_noabi::options::apm::on_topology_closed ( std::function< void MONGOCXX_ABI_CDECL(const events::topology_closed_event &)> topology_closed)

Set the topology closed monitoring callback. The callback takes a reference to a topology_closed_event which will only contain valid data for the duration of the callback.

Warning
If the callback throws an exception, the behavior is undefined.
Parameters
topology_closedThe topology closed monitoring callback.
Returns
A reference to the object on which this member function is being called. This facilitates method chaining.

◆ on_topology_opening()

apm & mongocxx::v_noabi::options::apm::on_topology_opening ( std::function< void MONGOCXX_ABI_CDECL(const events::topology_opening_event &)> topology_opening)

Set the topology_opening monitoring callback. The callback takes a reference to a topology_opening_event which will only contain valid data for the duration of the callback.

Warning
If the callback throws an exception, the behavior is undefined.
Parameters
topology_openingThe topology_opening monitoring callback.
Returns
A reference to the object on which this member function is being called. This facilitates method chaining.

◆ server_changed()

const std::function< void MONGOCXX_ABI_CDECL(const events::server_changed_event &)> & mongocxx::v_noabi::options::apm::server_changed ( ) const

Retrieves the server description changed monitoring callback.

Returns
The server description changed monitoring callback.

◆ server_closed()

const std::function< void MONGOCXX_ABI_CDECL(const events::server_closed_event &)> & mongocxx::v_noabi::options::apm::server_closed ( ) const

Retrieves the server closed monitoring callback.

Returns
The server closed monitoring callback.

◆ server_opening()

const std::function< void MONGOCXX_ABI_CDECL(const events::server_opening_event &)> & mongocxx::v_noabi::options::apm::server_opening ( ) const

Retrieves the server opening monitoring callback.

Returns
The server opening monitoring callback.

◆ topology_changed()

const std::function< void MONGOCXX_ABI_CDECL(const events::topology_changed_event &)> & mongocxx::v_noabi::options::apm::topology_changed ( ) const

Retrieves the topology description changed monitoring callback.

Returns
The topology description changed monitoring callback.

◆ topology_closed()

const std::function< void MONGOCXX_ABI_CDECL(const events::topology_closed_event &)> & mongocxx::v_noabi::options::apm::topology_closed ( ) const

Retrieves the topology closed monitoring callback.

Returns
The topology closed monitoring callback.

◆ topology_opening()

const std::function< void MONGOCXX_ABI_CDECL(const events::topology_opening_event &)> & mongocxx::v_noabi::options::apm::topology_opening ( ) const

Retrieves the topology_opening monitoring callback.

Returns
The topology_opening monitoring callback.

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