Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
kcenon::monitoring::cpu_throttle_config Struct Reference

Configuration for CPU throttling. More...

#include <resource_manager.h>

Collaboration diagram for kcenon::monitoring::cpu_throttle_config:
Collaboration graph

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)
 

Detailed Description

Configuration for CPU throttling.

Definition at line 139 of file resource_manager.h.

Member Function Documentation

◆ validate()

bool kcenon::monitoring::cpu_throttle_config::validate ( ) const
inline

Validate configuration.

Returns
true if configuration is valid

Definition at line 149 of file resource_manager.h.

149 {
151 return false;
152 }
154 return false;
155 }
157 return false;
158 }
159 return true;
160 }
double max_cpu_usage
Maximum CPU usage (0.0 to 1.0)
double warning_threshold
Warning threshold (0.0 to 1.0)

References max_cpu_usage, and warning_threshold.

Referenced by TEST_F().

Here is the caller graph for this function:

Member Data Documentation

◆ check_interval

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().

◆ max_cpu_usage

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().

◆ strategy

throttling_strategy kcenon::monitoring::cpu_throttle_config::strategy = throttling_strategy::reject

Definition at line 142 of file resource_manager.h.

Referenced by TEST_F(), TEST_F(), and TEST_F().

◆ warning_threshold

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().


The documentation for this struct was generated from the following file: