Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate the aggregation functionnality in another plugin #34

Open
frantz45 opened this issue Nov 30, 2021 · 1 comment
Open

Separate the aggregation functionnality in another plugin #34

frantz45 opened this issue Nov 30, 2021 · 1 comment

Comments

@frantz45
Copy link
Collaborator

The architecture of this plugin is too complex.
The aggregation functionnality should be put in another plugin (a pipeline function for example).

@c8y3
Copy link
Collaborator

c8y3 commented Dec 1, 2021

Here are some raw ideas on how we could do that.
The pipeline function would be set on a stream to compute a new field (what is currently called the "alert identifier"). It would take every new incoming message in the stream and check if there is a previous message in the same stream with an already computed alert identifier. If no message is found, it would compute a new identifier, otherwise it would keep the identifier found on the other message.
Moreover, so called "split field" (maybe we should rather call them "aggregation field"), would help refine the search even more: only messages in the time window, with the same value of their aggregation fields would be considered during a search.

A totally different alternative could be to add a new kind of custom field to be used in the events definition.

@c8y3 c8y3 added enhancement New feature or request and removed enhancement New feature or request labels Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants