|
Common System 0.2.0
Common interfaces and patterns for system integration
|
Result of a health check operation. More...
#include <monitoring_interface.h>

Public Member Functions | |
| health_check_result () | |
| bool | is_healthy () const |
| bool | is_operational () const |
Public Attributes | |
| health_status | status = health_status::unknown |
| std::string | message |
| std::chrono::system_clock::time_point | timestamp |
| std::chrono::milliseconds | check_duration {0} |
| std::unordered_map< std::string, std::string > | metadata |
Result of a health check operation.
Definition at line 236 of file monitoring_interface.h.
|
inline |
Definition at line 243 of file monitoring_interface.h.
|
inline |
Definition at line 246 of file monitoring_interface.h.
References kcenon::common::interfaces::healthy, and status.
|
inline |
Definition at line 250 of file monitoring_interface.h.
References kcenon::common::interfaces::degraded, kcenon::common::interfaces::healthy, and status.
| std::chrono::milliseconds kcenon::common::interfaces::health_check_result::check_duration {0} |
Definition at line 240 of file monitoring_interface.h.
Referenced by kcenon::common::interfaces::composite_health_check::check().
| std::string kcenon::common::interfaces::health_check_result::message |
Definition at line 238 of file monitoring_interface.h.
Referenced by app_liveness_check::check(), cache_readiness_check::check(), database_dependency_check::check(), kcenon::common::interfaces::composite_health_check::check(), kcenon::common::interfaces::lambda_health_check::check(), and kcenon::common::interfaces::health_dependency_graph::check_with_dependencies_internal().
| std::unordered_map<std::string, std::string> kcenon::common::interfaces::health_check_result::metadata |
Definition at line 241 of file monitoring_interface.h.
Referenced by kcenon::common::interfaces::composite_health_check::check(), and kcenon::common::interfaces::health_dependency_graph::check_with_dependencies_internal().
| health_status kcenon::common::interfaces::health_check_result::status = health_status::unknown |
Definition at line 237 of file monitoring_interface.h.
Referenced by app_liveness_check::check(), cache_readiness_check::check(), database_dependency_check::check(), kcenon::common::interfaces::composite_health_check::check(), kcenon::common::interfaces::lambda_health_check::check(), kcenon::common::interfaces::health_dependency_graph::check_with_dependencies_internal(), is_healthy(), is_operational(), and kcenon::common::interfaces::health_monitor::update_stats_after_check().
| std::chrono::system_clock::time_point kcenon::common::interfaces::health_check_result::timestamp |
Definition at line 239 of file monitoring_interface.h.