Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
kcenon::logger::analysis::anomaly_event Struct Reference

Represents an anomaly event detected during real-time analysis. More...

#include <realtime_log_analyzer.h>

Collaboration diagram for kcenon::logger::analysis::anomaly_event:
Collaboration graph

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_entryrelated_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.
 

Detailed Description

Represents an anomaly event detected during real-time analysis.

Since
3.2.0

Definition at line 69 of file realtime_log_analyzer.h.

Member Enumeration Documentation

◆ type

enum class kcenon::logger::analysis::anomaly_event::type : std::uint8_t
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.

73 : std::uint8_t {
78 };
@ rate_anomaly
Unusual log rate (too high or too low)
@ error_spike
Sudden increase in errors.
@ pattern_match
Configured pattern detected.
@ new_error_type
Previously unseen error message.

Member Data Documentation

◆ anomaly_type

◆ current_count

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.

◆ description

std::string kcenon::logger::analysis::anomaly_event::description

Human-readable description.

Definition at line 82 of file realtime_log_analyzer.h.

◆ detected_at

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.

◆ pattern

std::string kcenon::logger::analysis::anomaly_event::pattern

Pattern that triggered (for pattern_match)

Definition at line 84 of file realtime_log_analyzer.h.

◆ related_entries

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.

◆ threshold

size_t kcenon::logger::analysis::anomaly_event::threshold = 0

Threshold that was exceeded.

Definition at line 86 of file realtime_log_analyzer.h.


The documentation for this struct was generated from the following file: