1.2. Stop a monitorΒΆ

Fast DDS Statistics Backend allows for a monitorization to be stopped at any time. Stopping a monitorization merely means that the internal statistics DataReaders are disabled, but the already received data is still accessible to applications through the query API (see Get statistical data). Is is important to note that:

// Init a monitor in DDS domain 0 with no listener associated
EntityId domain_monitor_id = StatisticsBackend::init_monitor(0);
// Stop the monitor
StatisticsBackend::stop_monitor(domain_monitor_id);