|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Event grouping and clustering system for v1.10.0 Phase 10. More...
#include <EventGroupManager.hpp>

Classes | |
| struct | EventGroup |
Public Types | |
| enum class | GroupStrategy { ByLevel , ByMessage , ByPattern , ByActor , ByTimeBucket } |
Public Member Functions | |
| std::vector< EventGroup > | generateGroups (const std::vector< db::LogEvent * > &events, GroupStrategy strategy) |
| Generate event groups using specified strategy. | |
| double | calculateSimilarity (const QString &msg1, const QString &msg2) const |
| Get similarity score between two messages (0.0 to 1.0) | |
| void | setSimilarityThreshold (double threshold) |
| Set similarity threshold for pattern matching (0.0 to 1.0) | |
| double | similarityThreshold () const |
| std::vector< int > | flattenGroups (const std::vector< EventGroup > &groups) const |
| Flatten groups back to individual events. | |
Static Public Member Functions | |
| static EventGroupManager & | getInstance () |
| static std::vector< QString > | getAvailableStrategies () |
| Get available grouping strategies. | |
Private Member Functions | |
| EventGroupManager () | |
| std::vector< EventGroup > | GroupByLevel (const std::vector< db::LogEvent * > &events) |
| std::vector< EventGroup > | GroupByMessage (const std::vector< db::LogEvent * > &events) |
| std::vector< EventGroup > | GroupByPattern (const std::vector< db::LogEvent * > &events) |
| std::vector< EventGroup > | GroupByActor (const std::vector< db::LogEvent * > &events) |
| std::vector< EventGroup > | GroupByTimeBucket (const std::vector< db::LogEvent * > &events) |
| QString | ExtractPattern (const QString &message) const |
| QString | NormalizeMessage (const QString &message) const |
Private Attributes | |
| double | m_similarityThreshold {0.8} |
| int | m_timeBucketMinutes {5} |
Event grouping and clustering system for v1.10.0 Phase 10.
Features:
|
strong |
|
private |
| double ui::qt::utils::EventGroupManager::calculateSimilarity | ( | const QString & | msg1, |
| const QString & | msg2 | ||
| ) | const |
Get similarity score between two messages (0.0 to 1.0)


|
private |

| std::vector< int > ui::qt::utils::EventGroupManager::flattenGroups | ( | const std::vector< EventGroup > & | groups | ) | const |
Flatten groups back to individual events.
| std::vector< EventGroupManager::EventGroup > ui::qt::utils::EventGroupManager::generateGroups | ( | const std::vector< db::LogEvent * > & | events, |
| GroupStrategy | strategy | ||
| ) |
Generate event groups using specified strategy.

|
static |
Get available grouping strategies.
|
static |
|
private |


|
private |


|
private |


|
private |


|
private |


|
private |

| void ui::qt::utils::EventGroupManager::setSimilarityThreshold | ( | double | threshold | ) |
Set similarity threshold for pattern matching (0.0 to 1.0)

|
inline |
|
private |
|
private |