-
Notifications
You must be signed in to change notification settings - Fork 21
Collect samples for attack wave detection #827
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
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| export class AttackWaveDetector { | ||
| private suspiciousRequestsMap: LRUMap<string, number>; | ||
| private suspiciousRequestsMap: LRUMap<string, SuspiciousRequest[]>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only an idea: If we would use a separate Set, we would not store or show duplicates and we can keep the amount of samples independent from the count needed for triggering the event, if needed in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't use a Set because they don't work on objects :(
+ Store samples in new map
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
No description provided.