|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Monitor factory and provider pattern examples for Phase 4. More...
#include <kcenon/monitoring/core/performance_monitor.h>#include <kcenon/monitoring/core/result_types.h>#include <kcenon/common/interfaces/logger_interface.h>#include <kcenon/common/interfaces/monitoring_interface.h>#include <iostream>#include <memory>#include <unordered_map>#include <mutex>#include <vector>
Go to the source code of this file.
Classes | |
| class | monitor_factory |
| Monitor factory implementing singleton pattern with DI. More... | |
| class | example_logger |
| Simple logger for examples. More... | |
| class | aggregating_monitor |
| Example 6: Aggregating monitor pattern. More... | |
Functions | |
| void | example_1_basic_factory () |
| Example 1: Basic factory pattern. | |
| void | example_2_named_monitors () |
| Example 2: Named monitors via factory. | |
| void | example_3_factory_with_logger () |
| Example 3: Factory with shared logger. | |
| void | example_4_monitor_reuse () |
| Example 4: Monitor reuse via factory. | |
| void | example_5_provider_interface () |
| Example 5: Provider interface usage. | |
| void | example_6_aggregating_pattern () |
| void | example_7_factory_lifecycle () |
| Example 7: Factory cleanup and reset. | |
| int | main () |
Monitor factory and provider pattern examples for Phase 4.
Definition in file monitor_factory_pattern_example.cpp.
| void example_1_basic_factory | ( | ) |
Example 1: Basic factory pattern.
Definition at line 163 of file monitor_factory_pattern_example.cpp.
References monitor_factory::instance().
Referenced by main().


| void example_2_named_monitors | ( | ) |
Example 2: Named monitors via factory.
Definition at line 187 of file monitor_factory_pattern_example.cpp.
References monitor_factory::instance().
Referenced by main().


| void example_3_factory_with_logger | ( | ) |
Example 3: Factory with shared logger.
Definition at line 215 of file monitor_factory_pattern_example.cpp.
References monitor_factory::instance().
Referenced by main().


| void example_4_monitor_reuse | ( | ) |
Example 4: Monitor reuse via factory.
Definition at line 241 of file monitor_factory_pattern_example.cpp.
References monitor_factory::instance().
Referenced by main().


| void example_5_provider_interface | ( | ) |
Example 5: Provider interface usage.
Definition at line 271 of file monitor_factory_pattern_example.cpp.
References monitor_factory::instance(), and kcenon::monitoring::to_string().
Referenced by main().


| void example_6_aggregating_pattern | ( | ) |
Definition at line 374 of file monitor_factory_pattern_example.cpp.
References monitor_factory::instance().
Referenced by main().


| void example_7_factory_lifecycle | ( | ) |
Example 7: Factory cleanup and reset.
Definition at line 408 of file monitor_factory_pattern_example.cpp.
References monitor_factory::instance().
Referenced by main().


| int main | ( | ) |
Definition at line 428 of file monitor_factory_pattern_example.cpp.
References example_1_basic_factory(), example_2_named_monitors(), example_3_factory_with_logger(), example_4_monitor_reuse(), example_5_provider_interface(), example_6_aggregating_pattern(), and example_7_factory_lifecycle().
