RTC Toolkit  2.0.0
Public Member Functions | List of all members
rtctk::componentFramework::ComponentMetricsConfigurator Class Reference

Configures ComponentMetrics from a runtime repository. More...

#include <componentMetrics.hpp>

Public Member Functions

 ComponentMetricsConfigurator (std::weak_ptr< ComponentMetricsIf > service, std::shared_ptr< RepositoryIf > repo, DataPointPath root, log4cplus::Logger logger, std::chrono::seconds interval=std::chrono::seconds(10))
 Constructs configuration with provided arguments. More...
 
 ~ComponentMetricsConfigurator () noexcept
 

Detailed Description

Configures ComponentMetrics from a runtime repository.

From the specified root path / the following attributes are read:

Int64 /counter_poll_interval_ms Int64 /thread_poll_interval_ms Int8 /monitor_thread_nice

If configuration data points are missing or have the wrong type they will be ignored.

Constructor & Destructor Documentation

◆ ComponentMetricsConfigurator()

rtctk::componentFramework::ComponentMetricsConfigurator::ComponentMetricsConfigurator ( std::weak_ptr< ComponentMetricsIf service,
std::shared_ptr< RepositoryIf repo,
DataPointPath  root,
log4cplus::Logger  logger,
std::chrono::seconds  interval = std::chrono::seconds(10) 
)

Constructs configuration with provided arguments.

Parameters
serviceTelemetry service to configure.
repoRepository to read configuration from.
rootRoot path where configuration is stored.
loggerLogger instance to use.
intervalinterval between polling for configuration changes.

◆ ~ComponentMetricsConfigurator()

rtctk::componentFramework::ComponentMetricsConfigurator::~ComponentMetricsConfigurator ( )
noexcept

The documentation for this class was generated from the following files: