|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Health check result. More...
#include <monitoring_interface.h>

Public Member Functions | |
| health_check_result (health_status status=health_status::healthy) | |
| void | set_status (health_status status) |
| Set health status. | |
| health_status | get_status () const |
| Get health status. | |
| void | add_issue (const std::string &issue) |
| Add an issue. | |
| const std::vector< std::string > & | get_issues () const |
| Get all issues. | |
| void | set_message (const std::string &message) |
| Set status message. | |
| const std::string & | get_message () const |
| Get status message. | |
| bool | is_healthy () const |
| Check if healthy. | |
| std::chrono::system_clock::time_point | get_check_time () const |
| Get check timestamp. | |
Private Attributes | |
| health_status | status_ |
| std::string | message_ |
| std::vector< std::string > | issues_ |
| std::chrono::system_clock::time_point | check_time_ |
Health check result.
Definition at line 127 of file monitoring_interface.h.
|
inline |
Definition at line 135 of file monitoring_interface.h.
|
inline |
Add an issue.
| issue | Description of the issue |
Definition at line 158 of file monitoring_interface.h.
|
inline |
Get check timestamp.
Definition at line 202 of file monitoring_interface.h.
References check_time_.
|
inline |
Get all issues.
Definition at line 170 of file monitoring_interface.h.
References issues_.
|
inline |
Get status message.
Definition at line 186 of file monitoring_interface.h.
References message_.
|
inline |
Get health status.
Definition at line 150 of file monitoring_interface.h.
References status_.
|
inline |
Check if healthy.
Definition at line 194 of file monitoring_interface.h.
References status_.
|
inline |
Set status message.
| message | Status message |
Definition at line 178 of file monitoring_interface.h.
References message_.
|
inline |
Set health status.
| status | The health status |
Definition at line 142 of file monitoring_interface.h.
References status_.
|
private |
Definition at line 132 of file monitoring_interface.h.
Referenced by get_check_time().
|
private |
Definition at line 131 of file monitoring_interface.h.
Referenced by add_issue(), and get_issues().
|
private |
Definition at line 130 of file monitoring_interface.h.
Referenced by get_message(), and set_message().
|
private |
Definition at line 129 of file monitoring_interface.h.
Referenced by add_issue(), get_status(), is_healthy(), and set_status().