|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Event for component lifecycle changes. More...
#include <event_types.h>


Public Types | |
| enum class | lifecycle_state { initializing , started , running , pausing , paused , resuming , stopping , stopped , error } |
Public Member Functions | |
| component_lifecycle_event (const std::string &component, lifecycle_state old_state, lifecycle_state new_state, const std::string &reason="") | |
| std::string | get_type_name () const override |
| Get the event type name. | |
| const std::string & | get_component () const |
| lifecycle_state | get_old_state () const |
| lifecycle_state | get_new_state () const |
| const std::string & | get_reason () const |
Public Member Functions inherited from kcenon::monitoring::event_base | |
| virtual | ~event_base ()=default |
| std::chrono::steady_clock::time_point | get_timestamp () const |
| Get timestamp when event was created. | |
| uint64_t | get_id () const |
| Get unique event ID. | |
Private Attributes | |
| std::string | component_ |
| lifecycle_state | old_state_ |
| lifecycle_state | new_state_ |
| std::string | reason_ |
Additional Inherited Members | |
Protected Member Functions inherited from kcenon::monitoring::event_base | |
| event_base () | |
Event for component lifecycle changes.
Definition at line 249 of file event_types.h.
|
strong |
| Enumerator | |
|---|---|
| initializing | |
| started | |
| running | |
| pausing | |
| paused | |
| resuming | |
| stopping | |
| stopped | |
| error | |
Definition at line 251 of file event_types.h.
|
inline |
Definition at line 263 of file event_types.h.
|
inline |
Definition at line 274 of file event_types.h.
References component_.
|
inline |
Definition at line 276 of file event_types.h.
References new_state_.
|
inline |
Definition at line 275 of file event_types.h.
References old_state_.
|
inline |
Definition at line 277 of file event_types.h.
References reason_.
|
inlineoverridevirtual |
Get the event type name.
Implements kcenon::monitoring::event_base.
Definition at line 270 of file event_types.h.
|
private |
Definition at line 280 of file event_types.h.
Referenced by get_component().
|
private |
Definition at line 282 of file event_types.h.
Referenced by get_new_state().
|
private |
Definition at line 281 of file event_types.h.
Referenced by get_old_state().
|
private |
Definition at line 283 of file event_types.h.
Referenced by get_reason().