|
Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
|
Alert system for performance thresholds. More...
#include <performance_monitor.h>

Public Types | |
| enum class | alert_type { high_latency , high_error_rate , connection_pool_exhaustion , slow_query , memory_usage , cpu_usage } |
Public Member Functions | |
| performance_alert (alert_type type, const std::string &message, std::chrono::steady_clock::time_point timestamp) | |
| alert_type | type () const |
| const std::string & | message () const |
| std::chrono::steady_clock::time_point | timestamp () const |
Private Attributes | |
| alert_type | type_ |
| std::string | message_ |
| std::chrono::steady_clock::time_point | timestamp_ |
Alert system for performance thresholds.
Definition at line 140 of file performance_monitor.h.
|
strong |
| Enumerator | |
|---|---|
| high_latency | |
| high_error_rate | |
| connection_pool_exhaustion | |
| slow_query | |
| memory_usage | |
| cpu_usage | |
Definition at line 143 of file performance_monitor.h.
| database::monitoring::performance_alert::performance_alert | ( | alert_type | type, |
| const std::string & | message, | ||
| std::chrono::steady_clock::time_point | timestamp ) |
Definition at line 15 of file performance_monitor.cpp.
|
inline |
Definition at line 156 of file performance_monitor.h.
References message_.
Referenced by TEST_F().

|
inline |
Definition at line 157 of file performance_monitor.h.
References timestamp_.
Referenced by TEST_F().

|
inline |
|
private |
Definition at line 161 of file performance_monitor.h.
Referenced by message().
|
private |
Definition at line 162 of file performance_monitor.h.
Referenced by timestamp().
|
private |
Definition at line 160 of file performance_monitor.h.
Referenced by type().