|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Base class for all events in the system. More...
#include <event_bus_interface.h>


Public Member Functions | |
| virtual | ~event_base ()=default |
| virtual std::string | get_type_name () const =0 |
| Get the event type name. | |
| std::chrono::steady_clock::time_point | get_timestamp () const |
| Get timestamp when event was created. | |
| uint64_t | get_id () const |
| Get unique event ID. | |
Protected Member Functions | |
| event_base () | |
Static Private Member Functions | |
| static uint64_t | generate_id () |
Private Attributes | |
| std::chrono::steady_clock::time_point | timestamp_ |
| uint64_t | id_ |
Base class for all events in the system.
Provides common functionality for all events including automatic timestamp generation and unique ID assignment. All custom events should inherit from this class.
Definition at line 106 of file event_bus_interface.h.
|
virtualdefault |
|
inlineprotected |
Definition at line 133 of file event_bus_interface.h.
|
inlinestaticprivate |
Definition at line 138 of file event_bus_interface.h.
References kcenon::monitoring::counter.
|
inline |
Get unique event ID.
Definition at line 128 of file event_bus_interface.h.
References id_.
|
inline |
Get timestamp when event was created.
Definition at line 120 of file event_bus_interface.h.
References timestamp_.
|
pure virtual |
Get the event type name.
Implemented in kcenon::monitoring::component_lifecycle_event, kcenon::monitoring::configuration_change_event, kcenon::monitoring::health_check_event, kcenon::monitoring::logging_metric_event, kcenon::monitoring::metric_collection_event, kcenon::monitoring::performance_alert_event, kcenon::monitoring::system_resource_event, and kcenon::monitoring::thread_pool_metric_event.
|
private |
Definition at line 144 of file event_bus_interface.h.
Referenced by get_id().
|
private |
Definition at line 143 of file event_bus_interface.h.
Referenced by get_timestamp().