#include <mongocxx/v1/apm.hpp>
Options related to Application Performance Monitoring (APM) configuration.
Public Member Functions | |
| apm () | |
| Default initialization. | |
| apm (apm &&other) noexcept | |
| Move constructor. | |
| apm (apm const &other) | |
| Copy construction. | |
| ~apm () | |
| Destroy this object. | |
| std::function< void(v1::events::command_failed const &)> | command_failed () const |
| Return the current the "CommandFailedEvent" handler. | |
| std::function< void(v1::events::command_started const &)> | command_started () const |
| Return the current "CommandStartedEvent" handler. | |
| std::function< void(v1::events::command_succeeded const &)> | command_succeeded () const |
| Return the current the "CommandSucceededEvent" handler. | |
| apm & | on_command_failed (std::function< void(v1::events::command_failed const &)> fn) |
| Set the "CommandFailedEvent" handler. | |
| apm & | on_command_started (std::function< void(v1::events::command_started const &)> fn) |
| Set the "CommandStartedEvent" handler. | |
| apm & | on_command_succeeded (std::function< void(v1::events::command_succeeded const &)> fn) |
| Set the "CommandSucceededEvent" handler. | |
| apm & | on_server_closed (std::function< void(v1::events::server_closed const &)> fn) |
| Set the "ServerClosedEvent" handler. | |
| apm & | on_server_description_changed (std::function< void(v1::events::server_description_changed const &)> fn) |
| Set the "ServerDescriptionChangedEvent" handler. | |
| apm & | on_server_heartbeat_failed (std::function< void(v1::events::server_heartbeat_failed const &)> fn) |
| Set the "ServerHeartbeatFailedEvent" handler. | |
| apm & | on_server_heartbeat_started (std::function< void(v1::events::server_heartbeat_started const &)> fn) |
| Set the "ServerHeartbeatStartedEvent" handler. | |
| apm & | on_server_heartbeat_succeeded (std::function< void(v1::events::server_heartbeat_succeeded const &)> fn) |
| Set the "ServerHeartbeatSucceededEvent" handler. | |
| apm & | on_server_opening (std::function< void(v1::events::server_opening const &)> fn) |
| Set the "ServerOpeningEvent" handler. | |
| apm & | on_topology_closed (std::function< void(v1::events::topology_closed const &)> fn) |
| Set the "TopologyClosedEvent" handler. | |
| apm & | on_topology_description_changed (std::function< void(v1::events::topology_description_changed const &)> fn) |
| Set the "TopologyDescriptionChangedEvent" handler. | |
| apm & | on_topology_opening (std::function< void(v1::events::topology_opening const &)> fn) |
| Set the "TopologyOpeningEvent" handler. | |
| apm & | operator= (apm &&other) noexcept |
| Move assignment. | |
| apm & | operator= (apm const &other) |
| Copy assignment. | |
| std::function< void(v1::events::server_closed const &)> | server_closed () const |
| Return the current the "ServerClosedEvent" handler. | |
| std::function< void(v1::events::server_description_changed const &)> | server_description_changed () const |
| Return the current the "ServerDescriptionChangedEvent" handler. | |
| std::function< void(v1::events::server_heartbeat_failed const &)> | server_heartbeat_failed () const |
| Return the current the "ServerHeartbeatFailedEvent" handler. | |
| std::function< void(v1::events::server_heartbeat_started const &)> | server_heartbeat_started () const |
| Return the current the "ServerHeartbeatStartedEvent" handler. | |
| std::function< void(v1::events::server_heartbeat_succeeded const &)> | server_heartbeat_succeeded () const |
| Return the current the "ServerHeartbeatSucceededEvent" handler. | |
| std::function< void(v1::events::server_opening const &)> | server_opening () const |
| Return the current the "ServerOpeningEvent" handler. | |
| std::function< void(v1::events::topology_closed const &)> | topology_closed () const |
| Return the current the "TopologyClosedEvent" handler. | |
| std::function< void(v1::events::topology_description_changed const &)> | topology_description_changed () const |
| Return the current the "TopologyDescriptionChangedEvent" handler. | |
| std::function< void(v1::events::topology_opening const &)> | topology_opening () const |
| Return the current the "TopologyOpeningEvent" handler. | |
| mongocxx::v1::apm::~apm | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::apm::apm | ( | apm const & | other | ) |
Copy construction.
| mongocxx::v1::apm::apm | ( | ) |
Default initialization.
| std::function< void(v1::events::command_failed const &)> mongocxx::v1::apm::command_failed | ( | ) | const |
Return the current the "CommandFailedEvent" handler.
| std::function< void(v1::events::command_started const &)> mongocxx::v1::apm::command_started | ( | ) | const |
Return the current "CommandStartedEvent" handler.
| std::function< void(v1::events::command_succeeded const &)> mongocxx::v1::apm::command_succeeded | ( | ) | const |
Return the current the "CommandSucceededEvent" handler.
| apm & mongocxx::v1::apm::on_command_failed | ( | std::function< void(v1::events::command_failed const &)> | fn | ) |
Set the "CommandFailedEvent" handler.
| apm & mongocxx::v1::apm::on_command_started | ( | std::function< void(v1::events::command_started const &)> | fn | ) |
Set the "CommandStartedEvent" handler.
| apm & mongocxx::v1::apm::on_command_succeeded | ( | std::function< void(v1::events::command_succeeded const &)> | fn | ) |
Set the "CommandSucceededEvent" handler.
| apm & mongocxx::v1::apm::on_server_closed | ( | std::function< void(v1::events::server_closed const &)> | fn | ) |
Set the "ServerClosedEvent" handler.
| apm & mongocxx::v1::apm::on_server_description_changed | ( | std::function< void(v1::events::server_description_changed const &)> | fn | ) |
Set the "ServerDescriptionChangedEvent" handler.
| apm & mongocxx::v1::apm::on_server_heartbeat_failed | ( | std::function< void(v1::events::server_heartbeat_failed const &)> | fn | ) |
Set the "ServerHeartbeatFailedEvent" handler.
| apm & mongocxx::v1::apm::on_server_heartbeat_started | ( | std::function< void(v1::events::server_heartbeat_started const &)> | fn | ) |
Set the "ServerHeartbeatStartedEvent" handler.
| apm & mongocxx::v1::apm::on_server_heartbeat_succeeded | ( | std::function< void(v1::events::server_heartbeat_succeeded const &)> | fn | ) |
Set the "ServerHeartbeatSucceededEvent" handler.
| apm & mongocxx::v1::apm::on_server_opening | ( | std::function< void(v1::events::server_opening const &)> | fn | ) |
Set the "ServerOpeningEvent" handler.
| apm & mongocxx::v1::apm::on_topology_closed | ( | std::function< void(v1::events::topology_closed const &)> | fn | ) |
Set the "TopologyClosedEvent" handler.
| apm & mongocxx::v1::apm::on_topology_description_changed | ( | std::function< void(v1::events::topology_description_changed const &)> | fn | ) |
Set the "TopologyDescriptionChangedEvent" handler.
| apm & mongocxx::v1::apm::on_topology_opening | ( | std::function< void(v1::events::topology_opening const &)> | fn | ) |
Set the "TopologyOpeningEvent" handler.
Move assignment.
| std::function< void(v1::events::server_closed const &)> mongocxx::v1::apm::server_closed | ( | ) | const |
Return the current the "ServerClosedEvent" handler.
| std::function< void(v1::events::server_description_changed const &)> mongocxx::v1::apm::server_description_changed | ( | ) | const |
Return the current the "ServerDescriptionChangedEvent" handler.
| std::function< void(v1::events::server_heartbeat_failed const &)> mongocxx::v1::apm::server_heartbeat_failed | ( | ) | const |
Return the current the "ServerHeartbeatFailedEvent" handler.
| std::function< void(v1::events::server_heartbeat_started const &)> mongocxx::v1::apm::server_heartbeat_started | ( | ) | const |
Return the current the "ServerHeartbeatStartedEvent" handler.
| std::function< void(v1::events::server_heartbeat_succeeded const &)> mongocxx::v1::apm::server_heartbeat_succeeded | ( | ) | const |
Return the current the "ServerHeartbeatSucceededEvent" handler.
| std::function< void(v1::events::server_opening const &)> mongocxx::v1::apm::server_opening | ( | ) | const |
Return the current the "ServerOpeningEvent" handler.
| std::function< void(v1::events::topology_closed const &)> mongocxx::v1::apm::topology_closed | ( | ) | const |
Return the current the "TopologyClosedEvent" handler.
| std::function< void(v1::events::topology_description_changed const &)> mongocxx::v1::apm::topology_description_changed | ( | ) | const |
Return the current the "TopologyDescriptionChangedEvent" handler.
| std::function< void(v1::events::topology_opening const &)> mongocxx::v1::apm::topology_opening | ( | ) | const |
Return the current the "TopologyOpeningEvent" handler.