MongoDB C++ Driver
mongocxx-3.10.2
|
Class representing MongoDB application performance monitoring. More...
#include <apm.hpp>
Public Member Functions | |
apm & | on_command_started (std::function< void(const events::command_started_event &)> command_started) |
Set the command started monitoring callback. More... | |
const std::function< void(const events::command_started_event &)> & | command_started () const |
Retrieves the command started monitoring callback. More... | |
apm & | on_command_failed (std::function< void(const events::command_failed_event &)> command_failed) |
Set the command failed monitoring callback. More... | |
const std::function< void(const events::command_failed_event &)> & | command_failed () const |
Retrieves the command failed monitoring callback. More... | |
apm & | on_command_succeeded (std::function< void(const events::command_succeeded_event &)> command_succeeded) |
Set the command succeeded monitoring callback. More... | |
const std::function< void(const events::command_succeeded_event &)> & | command_succeeded () const |
Retrieves the command succeeded monitoring callback. More... | |
apm & | on_server_opening (std::function< void(const events::server_opening_event &)> server_opening) |
Set the server opening monitoring callback. More... | |
const std::function< void(const events::server_opening_event &)> & | server_opening () const |
Retrieves the server opening monitoring callback. More... | |
apm & | on_server_closed (std::function< void(const events::server_closed_event &)> server_closed) |
Set the server closed monitoring callback. More... | |
const std::function< void(const events::server_closed_event &)> & | server_closed () const |
Retrieves the server closed monitoring callback. More... | |
apm & | on_server_changed (std::function< void(const events::server_changed_event &)> server_changed) |
Set the server description changed monitoring callback. More... | |
const std::function< void(const events::server_changed_event &)> & | server_changed () const |
Retrieves the server description changed monitoring callback. More... | |
apm & | on_topology_opening (std::function< void(const events::topology_opening_event &)> topology_opening) |
Set the topology_opening monitoring callback. More... | |
const std::function< void(const events::topology_opening_event &)> & | topology_opening () const |
Retrieves the topology_opening monitoring callback. More... | |
apm & | on_topology_closed (std::function< void(const events::topology_closed_event &)> topology_closed) |
Set the topology closed monitoring callback. More... | |
const std::function< void(const events::topology_closed_event &)> & | topology_closed () const |
Retrieves the topology closed monitoring callback. More... | |
apm & | on_topology_changed (std::function< void(const events::topology_changed_event &)> topology_changed) |
Set the topology description changed monitoring callback. More... | |
const std::function< void(const events::topology_changed_event &)> & | topology_changed () const |
Retrieves the topology description changed monitoring callback. More... | |
apm & | on_heartbeat_started (std::function< void(const events::heartbeat_started_event &)> heartbeat_started) |
Set the heartbeat started monitoring callback. More... | |
const std::function< void(const events::heartbeat_started_event &)> & | heartbeat_started () const |
Retrieves the heartbeat started monitoring callback. More... | |
apm & | on_heartbeat_failed (std::function< void(const events::heartbeat_failed_event &)> heartbeat_failed) |
Set the heartbeat failed monitoring callback. More... | |
const std::function< void(const events::heartbeat_failed_event &)> & | heartbeat_failed () const |
Retrieves the heartbeat failed monitoring callback. More... | |
apm & | on_heartbeat_succeeded (std::function< void(const events::heartbeat_succeeded_event &)> heartbeat_succeeded) |
Set the heartbeat succeeded monitoring callback. More... | |
const std::function< void(const events::heartbeat_succeeded_event &)> & | heartbeat_succeeded () const |
Retrieves the heartbeat succeeded monitoring callback. More... | |
Class representing MongoDB application performance monitoring.
const std::function<void(const events::command_failed_event&)>& mongocxx::v_noabi::options::apm::command_failed | ( | ) | const |
Retrieves the command failed monitoring callback.
const std::function<void(const events::command_started_event&)>& mongocxx::v_noabi::options::apm::command_started | ( | ) | const |
Retrieves the command started monitoring callback.
const std::function<void(const events::command_succeeded_event&)>& mongocxx::v_noabi::options::apm::command_succeeded | ( | ) | const |
Retrieves the command succeeded monitoring callback.
const std::function<void(const events::heartbeat_failed_event&)>& mongocxx::v_noabi::options::apm::heartbeat_failed | ( | ) | const |
Retrieves the heartbeat failed monitoring callback.
const std::function<void(const events::heartbeat_started_event&)>& mongocxx::v_noabi::options::apm::heartbeat_started | ( | ) | const |
Retrieves the heartbeat started monitoring callback.
const std::function<void(const events::heartbeat_succeeded_event&)>& mongocxx::v_noabi::options::apm::heartbeat_succeeded | ( | ) | const |
Retrieves the heartbeat succeeded monitoring callback.
apm& mongocxx::v_noabi::options::apm::on_command_failed | ( | std::function< void(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.
command_failed | The command failed monitoring callback. |
apm& mongocxx::v_noabi::options::apm::on_command_started | ( | std::function< void(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.
command_started | The command started monitoring callback. |
apm& mongocxx::v_noabi::options::apm::on_command_succeeded | ( | std::function< void(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.
command_succeeded | The command succeeded monitoring callback. |
apm& mongocxx::v_noabi::options::apm::on_heartbeat_failed | ( | std::function< void(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.
heartbeat_failed | The heartbeat failed monitoring callback. |
apm& mongocxx::v_noabi::options::apm::on_heartbeat_started | ( | std::function< void(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.
heartbeat_started | The heartbeat started monitoring callback. |
apm& mongocxx::v_noabi::options::apm::on_heartbeat_succeeded | ( | std::function< void(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.
heartbeat_succeeded | The heartbeat succeeded monitoring callback. |
apm& mongocxx::v_noabi::options::apm::on_server_changed | ( | std::function< void(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.
server_changed | The server description changed monitoring callback. |
apm& mongocxx::v_noabi::options::apm::on_server_closed | ( | std::function< void(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.
server_closed | The server closed monitoring callback. |
apm& mongocxx::v_noabi::options::apm::on_server_opening | ( | std::function< void(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.
server_opening | The server opening monitoring callback. |
apm& mongocxx::v_noabi::options::apm::on_topology_changed | ( | std::function< void(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.
topology_changed | The topology description changed monitoring callback. |
apm& mongocxx::v_noabi::options::apm::on_topology_closed | ( | std::function< void(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.
topology_closed | The topology closed monitoring callback. |
apm& mongocxx::v_noabi::options::apm::on_topology_opening | ( | std::function< void(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.
topology_opening | The topology_opening monitoring callback. |
const std::function<void(const events::server_changed_event&)>& mongocxx::v_noabi::options::apm::server_changed | ( | ) | const |
Retrieves the server description changed monitoring callback.
const std::function<void(const events::server_closed_event&)>& mongocxx::v_noabi::options::apm::server_closed | ( | ) | const |
Retrieves the server closed monitoring callback.
const std::function<void(const events::server_opening_event&)>& mongocxx::v_noabi::options::apm::server_opening | ( | ) | const |
Retrieves the server opening monitoring callback.
const std::function<void(const events::topology_changed_event&)>& mongocxx::v_noabi::options::apm::topology_changed | ( | ) | const |
Retrieves the topology description changed monitoring callback.
const std::function<void(const events::topology_closed_event&)>& mongocxx::v_noabi::options::apm::topology_closed | ( | ) | const |
Retrieves the topology closed monitoring callback.
const std::function<void(const events::topology_opening_event&)>& mongocxx::v_noabi::options::apm::topology_opening | ( | ) | const |
Retrieves the topology_opening monitoring callback.