kenya-jug/regression

Add Support for Custom Events in Regression

开放

#60 创建于 2025年5月21日

 (0 条评论) (0 个反应) (0 位负责人)Java (12 个派生)auto 404
APICoreUIgood first issuehelp wanted

仓库指标

星标
 (7 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Enhance Regression, by adding support for custom events. These events should be user-configurable and enable automatic detection based on the following log attributes:

  • Labels or specific string patterns
  • Log levels (e.g., ERROR, WARN, INFO)
  • threadName
  • ipAddress

Requirements:

  • Provide a configuration interface (JSON/YAML or UI-based) for defining custom event rules.

  • Allow rules to filter logs by:

    • Log level
    • Thread name
    • IP address
    • Custom labels or text patterns
  • Detect and tag logs that match any custom rule as a custom event.

  • Store detected events in a dedicated event store.

  • Expose matched events via existing or new API endpoints and UI components.

  • Implement basic unit and integration tests to validate matching logic and performance.


Acceptance Criteria:

  • Users can define and manage multiple custom event rules.
  • Matching logs are flagged and stored as discrete events.
  • Events can be queried and audited.
  • Minimal performance overhead under high-throughput conditions.

Additional Notes:

  • Design for extensibility (e.g., future time-window rules, correlation logic).
  • Consider integration with alerting or notification systems down the line. (Requires new separate issue)

贡献者指南