|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Configuration for CPU throttling. More...
#include <resource_manager.h>

Public Member Functions | |
| bool | validate () const |
| Validate configuration. | |
Public Attributes | |
| double | max_cpu_usage = 0.8 |
| Maximum CPU usage (0.0 to 1.0) | |
| double | warning_threshold = 0.7 |
| Warning threshold (0.0 to 1.0) | |
| throttling_strategy | strategy = throttling_strategy::reject |
| std::chrono::milliseconds | check_interval = std::chrono::milliseconds(100) |
Configuration for CPU throttling.
Definition at line 139 of file resource_manager.h.
|
inline |
Validate configuration.
Definition at line 149 of file resource_manager.h.
References max_cpu_usage, and warning_threshold.
Referenced by TEST_F().

| std::chrono::milliseconds kcenon::monitoring::cpu_throttle_config::check_interval = std::chrono::milliseconds(100) |
Definition at line 143 of file resource_manager.h.
Referenced by TEST_F().
| double kcenon::monitoring::cpu_throttle_config::max_cpu_usage = 0.8 |
Maximum CPU usage (0.0 to 1.0)
Definition at line 140 of file resource_manager.h.
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and validate().
| throttling_strategy kcenon::monitoring::cpu_throttle_config::strategy = throttling_strategy::reject |
Definition at line 142 of file resource_manager.h.
| double kcenon::monitoring::cpu_throttle_config::warning_threshold = 0.7 |
Warning threshold (0.0 to 1.0)
Definition at line 141 of file resource_manager.h.
Referenced by TEST_F(), and validate().