|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|

Public Member Functions | |
| void | set_healthy (bool healthy) |
| kcenon::common::Result< std::string > | execute_query (const std::string &query) |
| int | get_query_count () const |
Private Attributes | |
| std::atomic< bool > | is_healthy_ {true} |
| std::atomic< int > | query_count_ {0} |
| std::mt19937 | rng_ {std::random_device{}()} |
Definition at line 34 of file health_reliability_example.cpp.
|
inline |
Definition at line 45 of file health_reliability_example.cpp.
References is_healthy_, query_count_, and rng_.
|
inline |
Definition at line 65 of file health_reliability_example.cpp.
References query_count_.
|
inline |
Definition at line 41 of file health_reliability_example.cpp.
References kcenon::monitoring::healthy, and is_healthy_.
|
private |
Definition at line 36 of file health_reliability_example.cpp.
Referenced by execute_query(), and set_healthy().
|
private |
Definition at line 37 of file health_reliability_example.cpp.
Referenced by execute_query(), and get_query_count().
|
private |
Definition at line 38 of file health_reliability_example.cpp.
Referenced by execute_query().