RTC Toolkit
2.0.0
|
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 | |
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.
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.
service | Telemetry service to configure. |
repo | Repository to read configuration from. |
root | Root path where configuration is stored. |
logger | Logger instance to use. |
interval | interval between polling for configuration changes. |
|
noexcept |