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


Public Member Functions | |
| cache_readiness_check (bool warmed) | |
| 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. | |
| std::chrono::milliseconds | get_timeout () const override |
| Get timeout duration for this health check. | |
| 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 |
Private Attributes | |
| bool | cache_warmed_ |
Definition at line 45 of file health_check_example.cpp.
|
inlineexplicit |
Definition at line 48 of file health_check_example.cpp.
|
inlineoverridevirtual |
Perform the health check.
Implements kcenon::common::interfaces::health_check.
Definition at line 59 of file health_check_example.cpp.
References cache_warmed_, kcenon::common::interfaces::health_check_result::message, and kcenon::common::interfaces::health_check_result::status.
|
inlineoverridevirtual |
Get the unique name of this health check.
Implements kcenon::common::interfaces::health_check.
Definition at line 50 of file health_check_example.cpp.
|
inlineoverridevirtual |
Get timeout duration for this health check.
Implements kcenon::common::interfaces::health_check.
Definition at line 54 of file health_check_example.cpp.
|
inlineoverridevirtual |
Get the type of this health check.
Implements kcenon::common::interfaces::health_check.
Definition at line 51 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 52 of file health_check_example.cpp.
|
private |
Definition at line 76 of file health_check_example.cpp.
Referenced by check().