67 explicit operator
v1::
apm()
const {
112 return _command_started;
140 return _command_failed;
169 return _command_succeeded;
197 return _server_opening;
225 return _server_closed;
254 return _server_changed;
283 return _topology_opening;
312 return _topology_closed;
342 return _topology_changed;
371 return _heartbeat_started;
400 return _heartbeat_failed;
431 return _heartbeat_succeeded;
460 return {std::move(v)};
apm()=default
Default initialization.
Options related to Application Performance Monitoring (APM) configuration.
Definition apm.hpp:51
apm & on_server_description_changed(std::function< void(v1::events::server_description_changed const &)> fn)
Set the "ServerDescriptionChangedEvent" handler.
apm & on_server_opening(std::function< void(v1::events::server_opening const &)> fn)
Set the "ServerOpeningEvent" handler.
apm & on_server_closed(std::function< void(v1::events::server_closed const &)> fn)
Set the "ServerClosedEvent" handler.
apm & on_topology_opening(std::function< void(v1::events::topology_opening const &)> fn)
Set the "TopologyOpeningEvent" handler.
apm & on_command_started(std::function< void(v1::events::command_started const &)> fn)
Set the "CommandStartedEvent" 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_server_heartbeat_failed(std::function< void(v1::events::server_heartbeat_failed const &)> fn)
Set the "ServerHeartbeatFailedEvent" handler.
apm & on_server_heartbeat_succeeded(std::function< void(v1::events::server_heartbeat_succeeded const &)> fn)
Set the "ServerHeartbeatSucceededEvent" handler.
apm & on_server_heartbeat_started(std::function< void(v1::events::server_heartbeat_started const &)> fn)
Set the "ServerHeartbeatStartedEvent" handler.
apm & on_command_succeeded(std::function< void(v1::events::command_succeeded const &)> fn)
Set the "CommandSucceededEvent" handler.
apm & on_command_failed(std::function< void(v1::events::command_failed const &)> fn)
Set the "CommandFailedEvent" handler.
The failed execution of a MongoDB command.
Definition command_failed_event.hpp:43
The start of the execution of a MongoDB command.
Definition command_started_event.hpp:43
The successful execution of a MongoDB command.
Definition command_succeeded_event.hpp:43
The failed execution of a heartbeat ("hello") command.
Definition heartbeat_failed_event.hpp:40
The start of the execution of a heartbeat ("hello") command.
Definition heartbeat_started_event.hpp:40
The successful execution of a heartbeat ("hello") command.
Definition heartbeat_succeeded_event.hpp:40
A change in the description of a connected MongoDB server.
Definition server_changed_event.hpp:42
The closing of a connection to a shutdown MongoDB server.
Definition server_closed_event.hpp:42
The addition of a new MongoDB server to the topology description.
Definition server_opening_event.hpp:40
A change in the topology description (including its server descriptions).
Definition topology_changed_event.hpp:39
The closing of connections to a topology of shutdown MongoDB servers.
Definition topology_closed_event.hpp:37
A new connection to a topology of MongoDB servers.
Definition topology_opening_event.hpp:39
Used by mongocxx::v_noabi::options::client::apm_opts.
Definition apm.hpp:52
std::function< void(events::heartbeat_started_event const &)> const & heartbeat_started() const
Retrieves the heartbeat started monitoring callback.
Definition apm.hpp:370
apm()=default
Default initialization.
apm & on_server_opening(std::function< void(events::server_opening_event const &)> server_opening)
Set the server opening monitoring callback. The callback takes a reference to a server_opening_event ...
Definition apm.hpp:186
apm & on_heartbeat_started(std::function< void(events::heartbeat_started_event const &)> heartbeat_started)
Set the heartbeat started monitoring callback. The callback takes a reference to a heartbeat_started_...
Definition apm.hpp:359
std::function< void(events::topology_opening_event const &)> const & topology_opening() const
Retrieves the topology_opening monitoring callback.
Definition apm.hpp:282
std::function< void(events::command_succeeded_event const &)> const & command_succeeded() const
Retrieves the command succeeded monitoring callback.
Definition apm.hpp:168
apm & on_heartbeat_failed(std::function< void(events::heartbeat_failed_event const &)> heartbeat_failed)
Set the heartbeat failed monitoring callback. The callback takes a reference to a heartbeat_failed_ev...
Definition apm.hpp:388
apm & on_server_changed(std::function< void(events::server_changed_event const &)> server_changed)
Set the server description changed monitoring callback. The callback takes a reference to a server_ch...
Definition apm.hpp:243
apm & on_heartbeat_succeeded(std::function< void(events::heartbeat_succeeded_event const &)> heartbeat_succeeded)
Set the heartbeat succeeded monitoring callback. The callback takes a reference to a heartbeat_succee...
Definition apm.hpp:418
std::function< void(events::server_closed_event const &)> const & server_closed() const
Retrieves the server closed monitoring callback.
Definition apm.hpp:224
std::function< void(events::command_failed_event const &)> const & command_failed() const
Retrieves the command failed monitoring callback.
Definition apm.hpp:139
std::function< void(events::server_opening_event const &)> const & server_opening() const
Retrieves the server opening monitoring callback.
Definition apm.hpp:196
std::function< void(events::heartbeat_succeeded_event const &)> const & heartbeat_succeeded() const
Retrieves the heartbeat succeeded monitoring callback.
Definition apm.hpp:429
std::function< void(events::heartbeat_failed_event const &)> const & heartbeat_failed() const
Retrieves the heartbeat failed monitoring callback.
Definition apm.hpp:399
std::function< void(events::command_started_event const &)> const & command_started() const
Retrieves the command started monitoring callback.
Definition apm.hpp:111
apm & on_server_closed(std::function< void(events::server_closed_event const &)> server_closed)
Set the server closed monitoring callback. The callback takes a reference to a server_closed_event wh...
Definition apm.hpp:214
apm & on_topology_opening(std::function< void(events::topology_opening_event const &)> topology_opening)
Set the topology_opening monitoring callback. The callback takes a reference to a topology_opening_ev...
Definition apm.hpp:271
std::function< void(events::topology_changed_event const &)> const & topology_changed() const
Retrieves the topology description changed monitoring callback.
Definition apm.hpp:341
std::function< void(events::topology_closed_event const &)> const & topology_closed() const
Retrieves the topology closed monitoring callback.
Definition apm.hpp:311
apm & on_command_succeeded(std::function< void(events::command_succeeded_event const &)> command_succeeded)
Set the command succeeded monitoring callback. The callback takes a reference to a command_succeeded_...
Definition apm.hpp:157
apm & on_topology_closed(std::function< void(events::topology_closed_event const &)> topology_closed)
Set the topology closed monitoring callback. The callback takes a reference to a topology_closed_even...
Definition apm.hpp:300
std::function< void(events::server_changed_event const &)> const & server_changed() const
Retrieves the server description changed monitoring callback.
Definition apm.hpp:253
apm & on_command_failed(std::function< void(events::command_failed_event const &)> command_failed)
Set the command failed monitoring callback. The callback takes a reference to a command_failed_event ...
Definition apm.hpp:129
apm & on_command_started(std::function< void(events::command_started_event const &)> command_started)
Set the command started monitoring callback. The callback takes a reference to a command_started_even...
Definition apm.hpp:100
apm & on_topology_changed(std::function< void(events::topology_changed_event const &)> topology_changed)
Set the topology description changed monitoring callback. The callback takes a reference to a topolog...
Definition apm.hpp:330
Provides mongocxx::v_noabi::events::command_failed_event.
Provides mongocxx::v_noabi::events::command_started_event.
Provides mongocxx::v_noabi::events::command_succeeded_event.
Provides mongocxx::v_noabi::events::heartbeat_failed_event.
Provides mongocxx::v_noabi::events::heartbeat_started_event.
Provides mongocxx::v_noabi::events::heartbeat_succeeded_event.
#define MONGOCXX_ABI_CDECL
Expands to __cdecl when built with MSVC on Windows.
Definition export.hpp:49
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
Declares entities whose ABI stability is guaranteed for documented symbols.
Declares entities representing options to use with various commands.
Declares entities whose ABI stability is NOT guaranteed.
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Provides mongocxx::v_noabi::events::server_changed_event.
Provides mongocxx::v_noabi::events::server_closed_event.
Provides mongocxx::v_noabi::events::server_opening_event.
Provides mongocxx::v_noabi::events::topology_changed_event.
Provides mongocxx::v_noabi::events::topology_closed_event.
Provides mongocxx::v_noabi::events::topology_opening_event.
Provides mongocxx::v1::apm.
Declares mongocxx::v_noabi::options::apm.