|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Result of a health check operation. More...
#include <monitoring_core.h>

Public Member Functions | |
| health_check_result () | |
| bool | is_healthy () const |
| bool | is_operational () const |
Static Public Member Functions | |
| static health_check_result | healthy (const std::string &msg="OK") |
| static health_check_result | unhealthy (const std::string &msg) |
| static health_check_result | degraded (const std::string &msg) |
Public Attributes | |
| health_status | status = health_status::unknown |
| std::string | message |
| std::vector< std::string > | issues |
| std::chrono::system_clock::time_point | check_time |
| std::chrono::system_clock::time_point | timestamp |
| std::chrono::milliseconds | check_duration {0} |
| std::unordered_map< std::string, std::string > | metadata |
| std::optional< std::exception_ptr > | error |
Result of a health check operation.
Definition at line 124 of file monitoring_core.h.
|
inline |
Definition at line 134 of file monitoring_core.h.
|
inlinestatic |
Definition at line 165 of file monitoring_core.h.
References check_time, kcenon::monitoring::degraded, message, status, and timestamp.
Referenced by kcenon::monitoring::composite_health_check::check_all_required(), kcenon::monitoring::health_dependency_graph::check_with_dependencies(), demonstrate_health_monitoring(), and TEST_F().

|
inlinestatic |
Definition at line 147 of file monitoring_core.h.
References check_time, kcenon::monitoring::healthy, message, status, and timestamp.
Referenced by database_health_check::check(), external_api_health_check::check(), kcenon::monitoring::composite_health_check::check(), kcenon::monitoring::functional_health_check::check(), kcenon::monitoring::composite_health_check::check_all_required(), kcenon::monitoring::composite_health_check::check_any_required(), demonstrate_health_monitoring(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

|
inline |
Definition at line 138 of file monitoring_core.h.
References kcenon::monitoring::healthy, and status.
Referenced by TEST_F().

|
inline |
Definition at line 142 of file monitoring_core.h.
References kcenon::monitoring::degraded, kcenon::monitoring::healthy, and status.
|
inlinestatic |
Definition at line 156 of file monitoring_core.h.
References check_time, message, status, timestamp, and kcenon::monitoring::unhealthy.
Referenced by kcenon::monitoring::composite_health_check::check_all_required(), kcenon::monitoring::composite_health_check::check_any_required(), kcenon::monitoring::health_dependency_graph::check_with_dependencies(), demonstrate_health_monitoring(), TEST_F(), and TEST_F().

| std::chrono::milliseconds kcenon::monitoring::health_check_result::check_duration {0} |
| std::chrono::system_clock::time_point kcenon::monitoring::health_check_result::check_time |
Definition at line 128 of file monitoring_core.h.
Referenced by degraded(), healthy(), and unhealthy().
| std::optional<std::exception_ptr> kcenon::monitoring::health_check_result::error |
Definition at line 132 of file monitoring_core.h.
| std::vector<std::string> kcenon::monitoring::health_check_result::issues |
Definition at line 127 of file monitoring_core.h.
Referenced by TEST_F().
| std::string kcenon::monitoring::health_check_result::message |
Definition at line 126 of file monitoring_core.h.
Referenced by test_health_check::check(), aggregating_monitor::check_health(), kcenon::monitoring::health_monitor::check_health(), degraded(), console_logger::health_check(), healthy(), TEST(), and unhealthy().
| std::unordered_map<std::string, std::string> kcenon::monitoring::health_check_result::metadata |
Definition at line 131 of file monitoring_core.h.
Referenced by console_logger::health_check().
| health_status kcenon::monitoring::health_check_result::status = health_status::unknown |
Definition at line 125 of file monitoring_core.h.
Referenced by test_health_check::check(), aggregating_monitor::check_health(), kcenon::monitoring::health_monitor::check_health(), degraded(), console_logger::health_check(), healthy(), is_healthy(), is_operational(), TEST(), TEST_F(), unhealthy(), and kcenon::monitoring::health_monitor::update_stats().
| std::chrono::system_clock::time_point kcenon::monitoring::health_check_result::timestamp |
Definition at line 129 of file monitoring_core.h.
Referenced by test_health_check::check(), aggregating_monitor::check_health(), kcenon::monitoring::health_monitor::check_health(), degraded(), healthy(), and unhealthy().