|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Represents an anomaly event detected during real-time analysis. More...
#include <realtime_log_analyzer.h>

Public Types | |
| enum class | type : std::uint8_t { error_spike , pattern_match , rate_anomaly , new_error_type } |
| Type of anomaly detected. More... | |
Public Attributes | |
| type | anomaly_type = type::error_spike |
| Type of the anomaly. | |
| std::chrono::system_clock::time_point | detected_at |
| When the anomaly was detected. | |
| std::string | description |
| Human-readable description. | |
| std::vector< analyzed_log_entry > | related_entries |
| Log entries related to this anomaly. | |
| std::string | pattern |
| Pattern that triggered (for pattern_match) | |
| size_t | current_count = 0 |
| Current count (for spike/rate anomalies) | |
| size_t | threshold = 0 |
| Threshold that was exceeded. | |
Represents an anomaly event detected during real-time analysis.
Definition at line 69 of file realtime_log_analyzer.h.
|
strong |
Type of anomaly detected.
| Enumerator | |
|---|---|
| error_spike | Sudden increase in errors. |
| pattern_match | Configured pattern detected. |
| rate_anomaly | Unusual log rate (too high or too low) |
| new_error_type | Previously unseen error message. |
Definition at line 73 of file realtime_log_analyzer.h.
| type kcenon::logger::analysis::anomaly_event::anomaly_type = type::error_spike |
Type of the anomaly.
Definition at line 80 of file realtime_log_analyzer.h.
Referenced by kcenon::logger::analysis::realtime_log_analyzer::check_error_spike(), kcenon::logger::analysis::realtime_log_analyzer::check_new_error_type(), kcenon::logger::analysis::realtime_log_analyzer::check_pattern_alerts(), and kcenon::logger::analysis::realtime_log_analyzer::check_rate_anomaly().
| size_t kcenon::logger::analysis::anomaly_event::current_count = 0 |
Current count (for spike/rate anomalies)
Definition at line 85 of file realtime_log_analyzer.h.
| std::string kcenon::logger::analysis::anomaly_event::description |
Human-readable description.
Definition at line 82 of file realtime_log_analyzer.h.
| std::chrono::system_clock::time_point kcenon::logger::analysis::anomaly_event::detected_at |
When the anomaly was detected.
Definition at line 81 of file realtime_log_analyzer.h.
| std::string kcenon::logger::analysis::anomaly_event::pattern |
Pattern that triggered (for pattern_match)
Definition at line 84 of file realtime_log_analyzer.h.
| std::vector<analyzed_log_entry> kcenon::logger::analysis::anomaly_event::related_entries |
Log entries related to this anomaly.
Definition at line 83 of file realtime_log_analyzer.h.
| size_t kcenon::logger::analysis::anomaly_event::threshold = 0 |
Threshold that was exceeded.
Definition at line 86 of file realtime_log_analyzer.h.