19 #include <mongocxx/options/apm-fwd.hpp>
21 #include <mongocxx/events/command_failed_event.hpp>
22 #include <mongocxx/events/command_started_event.hpp>
23 #include <mongocxx/events/command_succeeded_event.hpp>
24 #include <mongocxx/events/heartbeat_failed_event.hpp>
25 #include <mongocxx/events/heartbeat_started_event.hpp>
26 #include <mongocxx/events/heartbeat_succeeded_event.hpp>
27 #include <mongocxx/events/server_changed_event.hpp>
28 #include <mongocxx/events/server_closed_event.hpp>
29 #include <mongocxx/events/server_opening_event.hpp>
30 #include <mongocxx/events/topology_changed_event.hpp>
31 #include <mongocxx/events/topology_closed_event.hpp>
32 #include <mongocxx/events/topology_opening_event.hpp>
34 #include <mongocxx/config/prelude.hpp>
352 #include <mongocxx/config/postlude.hpp>
An event notification sent when the driver fails to execute a MongoDB command.
Definition: command_failed_event.hpp:37
An event notification sent when the driver begins executing a MongoDB command.
Definition: command_started_event.hpp:37
An event notification sent when the driver successfully executes a MongoDB command.
Definition: command_succeeded_event.hpp:37
An event notification sent when the driver failed to send an "hello" command to check the status of a...
Definition: heartbeat_failed_event.hpp:36
An event notification sent when the driver begins executing a "hello" command to check the status of ...
Definition: heartbeat_started_event.hpp:36
An event notification sent when the driver completes a "hello" command to check the status of a serve...
Definition: heartbeat_succeeded_event.hpp:35
An event notification sent when the driver observes a change in the status of a server it is connecte...
Definition: server_changed_event.hpp:36
An event notification sent when the driver stops monitoring a MongoDB server and removes it from the ...
Definition: server_closed_event.hpp:37
An event notification sent when the driver adds a MongoDB server to the topology description and begi...
Definition: server_opening_event.hpp:36
An event notification sent when the driver observes a change in any of the servers it is connected to...
Definition: topology_changed_event.hpp:35
An event notification sent when the driver stops monitoring a server topology and destroys its descri...
Definition: topology_closed_event.hpp:34
An event notification sent when the driver initializes a server topology.
Definition: topology_opening_event.hpp:34
Class representing MongoDB application performance monitoring.
Definition: apm.hpp:43
apm & on_server_opening(std::function< void(const events::server_opening_event &)> server_opening)
Set the server opening monitoring callback.
const std::function< void(const events::topology_opening_event &)> & topology_opening() const
Retrieves the topology_opening monitoring callback.
apm & on_topology_changed(std::function< void(const events::topology_changed_event &)> topology_changed)
Set the topology description changed monitoring callback.
const std::function< void(const events::server_changed_event &)> & server_changed() const
Retrieves the server description changed monitoring callback.
const std::function< void(const events::server_opening_event &)> & server_opening() const
Retrieves the server opening monitoring callback.
const std::function< void(const events::topology_closed_event &)> & topology_closed() const
Retrieves the topology closed monitoring callback.
apm & on_heartbeat_failed(std::function< void(const events::heartbeat_failed_event &)> heartbeat_failed)
Set the heartbeat failed monitoring callback.
apm & on_server_closed(std::function< void(const events::server_closed_event &)> server_closed)
Set the server closed monitoring callback.
apm & on_topology_closed(std::function< void(const events::topology_closed_event &)> topology_closed)
Set the topology closed monitoring callback.
const std::function< void(const events::heartbeat_succeeded_event &)> & heartbeat_succeeded() const
Retrieves the heartbeat succeeded monitoring callback.
const std::function< void(const events::heartbeat_failed_event &)> & heartbeat_failed() const
Retrieves the heartbeat failed monitoring callback.
apm & on_command_started(std::function< void(const events::command_started_event &)> command_started)
Set the command started monitoring callback.
apm & on_command_succeeded(std::function< void(const events::command_succeeded_event &)> command_succeeded)
Set the command succeeded monitoring callback.
apm & on_command_failed(std::function< void(const events::command_failed_event &)> command_failed)
Set the command failed monitoring callback.
const std::function< void(const events::heartbeat_started_event &)> & heartbeat_started() const
Retrieves the heartbeat started monitoring callback.
apm & on_heartbeat_succeeded(std::function< void(const events::heartbeat_succeeded_event &)> heartbeat_succeeded)
Set the heartbeat succeeded monitoring callback.
apm & on_heartbeat_started(std::function< void(const events::heartbeat_started_event &)> heartbeat_started)
Set the heartbeat started monitoring callback.
const std::function< void(const events::topology_changed_event &)> & topology_changed() const
Retrieves the topology description changed monitoring callback.
const std::function< void(const events::server_closed_event &)> & server_closed() const
Retrieves the server closed monitoring callback.
const std::function< void(const events::command_failed_event &)> & command_failed() const
Retrieves the command failed monitoring callback.
apm & on_server_changed(std::function< void(const events::server_changed_event &)> server_changed)
Set the server description changed monitoring callback.
const std::function< void(const events::command_started_event &)> & command_started() const
Retrieves the command started monitoring callback.
apm & on_topology_opening(std::function< void(const events::topology_opening_event &)> topology_opening)
Set the topology_opening monitoring callback.
const std::function< void(const events::command_succeeded_event &)> & command_succeeded() const
Retrieves the command succeeded monitoring callback.
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19