RTC Toolkit 5.0.0
Loading...
Searching...
No Matches
fakeComponentMetrics.hpp
Go to the documentation of this file.
1
12#ifndef RTCTK_COMPONENTFRAMEWORK_FAKECOMPONENTMETRICS_HPP
13#define RTCTK_COMPONENTFRAMEWORK_FAKECOMPONENTMETRICS_HPP
14
16
18
22
23 void StartMonitoring() override {
24 }
25
26 void StopMonitoring() noexcept override {
27 }
28
29 bool IsMonitoring() noexcept override {
30 return true;
31 }
32
33 void UpdateParams() override {
34 }
35
36 [[nodiscard]] virtual perfc::ScopedRegistration
38 return {};
39 }
40
42 return true;
43 }
44};
45
46} // namespace rtctk::componentFramework
47
48#endif // RTCTK_COMPONENTFRAMEWORK_FAKECOMPONENTMETRICS_HPP
Component metrics interface.
Definition componentMetricsIf.hpp:85
typename CounterTypes::CounterVariant CounterVariant
std::variant of pointers to each supported type in CounterTypes.
Definition componentMetricsIf.hpp:142
perfc::CounterTypes< perfc::CounterDouble, perfc::CounterU64, perfc::CounterI64 > CounterTypes
Defines standard performance counter types:
Definition componentMetricsIf.hpp:135
Defines auxiliary information associated with each counter registered with ComponentMetricsIf.
Definition componentMetricsIf.hpp:46
Header file for ComponentMetricsIf.
Definition commandReplier.cpp:22
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23
Definition fakeComponentMetrics.hpp:19
typename CounterTypes::CounterVariant CounterVariant
std::variant of pointers to each supported type in CounterTypes.
Definition componentMetricsIf.hpp:142
bool RemoveCounter(CounterVariant counter) override
Remove counter from register.
Definition fakeComponentMetrics.hpp:41
bool IsMonitoring() noexcept override
Query whether monitoring is active.
Definition fakeComponentMetrics.hpp:29
void StartMonitoring() override
Start monitoring and publishing metrics.
Definition fakeComponentMetrics.hpp:23
virtual perfc::ScopedRegistration AddCounter(CounterVariant counter, CounterMetricInfo info) override
Add a counter to be included in component metrics, identified by its address, together with info to t...
Definition fakeComponentMetrics.hpp:37
void UpdateParams() override
Reloads parameters.
Definition fakeComponentMetrics.hpp:33
void StopMonitoring() noexcept override
Stop monitoring.
Definition fakeComponentMetrics.hpp:26