|
Common System 0.2.0
Common interfaces and patterns for system integration
|


Public Member Functions | |
| database_dependency_check (bool connected) | |
| std::string | get_name () const override |
| Get the unique name of this health check. | |
| health_check_type | get_type () const override |
| Get the type of this health check. | |
| bool | is_critical () const override |
| Check if this health check is critical. | |
| health_check_result | check () override |
| Perform the health check. | |
Public Member Functions inherited from kcenon::common::interfaces::health_check | |
| health_check ()=default | |
| virtual | ~health_check ()=default |
| health_check (const health_check &)=delete | |
| health_check & | operator= (const health_check &)=delete |
| health_check (health_check &&)=delete | |
| health_check & | operator= (health_check &&)=delete |
| virtual std::chrono::milliseconds | get_timeout () const |
| Get timeout duration for this health check. | |
Private Attributes | |
| bool | connected_ |
Definition at line 80 of file health_check_example.cpp.
|
inlineexplicit |
Definition at line 83 of file health_check_example.cpp.
|
inlineoverridevirtual |
Perform the health check.
Implements kcenon::common::interfaces::health_check.
Definition at line 89 of file health_check_example.cpp.
References connected_, kcenon::common::interfaces::health_check_result::message, and kcenon::common::interfaces::health_check_result::status.
Referenced by main().

|
inlineoverridevirtual |
Get the unique name of this health check.
Implements kcenon::common::interfaces::health_check.
Definition at line 85 of file health_check_example.cpp.
Referenced by main().

|
inlineoverridevirtual |
Get the type of this health check.
Implements kcenon::common::interfaces::health_check.
Definition at line 86 of file health_check_example.cpp.
|
inlineoverridevirtual |
Check if this health check is critical.
Critical health checks affect the overall system health status. Non-critical checks are reported but don't impact system health.
Implements kcenon::common::interfaces::health_check.
Definition at line 87 of file health_check_example.cpp.
|
private |
Definition at line 106 of file health_check_example.cpp.
Referenced by check().