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

Public Member Functions | |
| resource_quota ()=default | |
| resource_quota (resource_type t, size_t max, throttling_strategy s=throttling_strategy::reject) | |
| bool | validate () const |
| Validate configuration. | |
Public Attributes | |
| resource_type | type = resource_type::memory |
| size_t | max_value = 0 |
| Maximum allowed resource usage. | |
| size_t | warning_threshold = 0 |
| Warning level threshold. | |
| size_t | critical_threshold = 0 |
| Critical level threshold. | |
| throttling_strategy | strategy = throttling_strategy::reject |
Configuration for resource quotas.
Definition at line 103 of file resource_manager.h.
|
default |
|
inline |
Definition at line 111 of file resource_manager.h.
|
inline |
Validate configuration.
Definition at line 119 of file resource_manager.h.
References critical_threshold, max_value, and warning_threshold.
Referenced by TEST_F().

| size_t kcenon::monitoring::resource_quota::critical_threshold = 0 |
Critical level threshold.
Definition at line 107 of file resource_manager.h.
Referenced by kcenon::monitoring::memory_quota_manager::is_over_critical_threshold(), TEST_F(), TEST_F(), and validate().
| size_t kcenon::monitoring::resource_quota::max_value = 0 |
Maximum allowed resource usage.
Definition at line 105 of file resource_manager.h.
Referenced by kcenon::monitoring::memory_quota_manager::allocate(), TEST_F(), and validate().
| throttling_strategy kcenon::monitoring::resource_quota::strategy = throttling_strategy::reject |
Definition at line 108 of file resource_manager.h.
| resource_type kcenon::monitoring::resource_quota::type = resource_type::memory |
Definition at line 104 of file resource_manager.h.
Referenced by TEST_F().
| size_t kcenon::monitoring::resource_quota::warning_threshold = 0 |
Warning level threshold.
Definition at line 106 of file resource_manager.h.
Referenced by kcenon::monitoring::memory_quota_manager::is_over_warning_threshold(), TEST_F(), TEST_F(), and validate().