|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Event for performance-related alerts. More...
#include <event_types.h>


Public Types | |
| enum class | alert_severity { info , warning , critical } |
| enum class | alert_type { high_cpu_usage , high_memory_usage , slow_response_time , high_error_rate , resource_exhaustion , threshold_exceeded } |
Public Member Functions | |
| performance_alert_event (alert_type type, alert_severity severity, const std::string &component, const std::string &message, std::optional< double > threshold=std::nullopt, std::optional< double > actual_value=std::nullopt) | |
| std::string | get_type_name () const override |
| Get the event type name. | |
| alert_type | get_alert_type () const |
| alert_severity | get_severity () const |
| const std::string & | get_component () const |
| const std::string & | get_message () const |
| std::optional< double > | get_threshold () const |
| std::optional< double > | get_actual_value () 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 | |
| alert_type | type_ |
| alert_severity | severity_ |
| std::string | component_ |
| std::string | message_ |
| std::optional< double > | threshold_ |
| std::optional< double > | actual_value_ |
Additional Inherited Members | |
Protected Member Functions inherited from kcenon::monitoring::event_base | |
| event_base () | |
Event for performance-related alerts.
Published when performance thresholds are exceeded or anomalies are detected. Includes severity, component information, and optional threshold/actual value details.
Definition at line 162 of file event_types.h.
|
strong |
| Enumerator | |
|---|---|
| info | |
| warning | |
| critical | |
Definition at line 164 of file event_types.h.
|
strong |
| Enumerator | |
|---|---|
| high_cpu_usage | |
| high_memory_usage | |
| slow_response_time | |
| high_error_rate | |
| resource_exhaustion | |
| threshold_exceeded | |
Definition at line 170 of file event_types.h.
|
inline |
Definition at line 179 of file event_types.h.
|
inline |
Definition at line 196 of file event_types.h.
References actual_value_.
|
inline |
Definition at line 191 of file event_types.h.
References type_.
|
inline |
Definition at line 193 of file event_types.h.
References component_.
|
inline |
Definition at line 194 of file event_types.h.
References message_.
|
inline |
Definition at line 192 of file event_types.h.
References severity_.
|
inline |
Definition at line 195 of file event_types.h.
References threshold_.
|
inlineoverridevirtual |
Get the event type name.
Implements kcenon::monitoring::event_base.
Definition at line 187 of file event_types.h.
|
private |
Definition at line 204 of file event_types.h.
Referenced by get_actual_value().
|
private |
Definition at line 201 of file event_types.h.
Referenced by get_component().
|
private |
Definition at line 202 of file event_types.h.
Referenced by get_message().
|
private |
Definition at line 200 of file event_types.h.
Referenced by get_severity().
|
private |
Definition at line 203 of file event_types.h.
Referenced by get_threshold().
|
private |
Definition at line 199 of file event_types.h.
Referenced by get_alert_type().