|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Event fired when system state changes. More...
#include <observer_interface.h>

Public Types | |
| enum class | state { healthy , degraded , critical , unknown } |
Public Member Functions | |
| state_change_event (const std::string &component, state old_state, state new_state) | |
| const std::string & | component () const |
| state | old_state () const |
| state | new_state () const |
| std::chrono::steady_clock::time_point | timestamp () const |
Private Attributes | |
| std::string | component_ |
| state | old_state_ |
| state | new_state_ |
| std::chrono::steady_clock::time_point | timestamp_ |
Event fired when system state changes.
Represents a transition from one health state to another for a specific component. Useful for tracking system health over time and triggering alerts on degradation.
Definition at line 141 of file observer_interface.h.
|
strong |
|
inline |
Definition at line 150 of file observer_interface.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 160 of file observer_interface.h.
Referenced by component().
|
private |
Definition at line 162 of file observer_interface.h.
Referenced by new_state().
|
private |
Definition at line 161 of file observer_interface.h.
Referenced by old_state().
|
private |
Definition at line 163 of file observer_interface.h.
Referenced by timestamp().