serverless-website-analytics icon indicating copy to clipboard operation
serverless-website-analytics copied to clipboard

feat: Static anomaly detection for pr

Open kc0bfv opened this issue 1 year ago • 1 comments

This does not directly address issue #75, but does address some comments there.

This PR adds a minimumViews parameter which must be exceeded before the anomaly detection considers a set of views to be an anomaly. The default is 0, so by default this is off. An example is provided in the anomaly detection documentation.

kc0bfv avatar May 05 '24 17:05 kc0bfv

I ran the 'Simulate and predict' test in tests/application/backend/cron-anomaly-detection/index.ts with:

Value at 0: image

Value at 30: image

It does a good job of filtering out those small spikes that should not be considered anomalies, thanks!

rehanvdm avatar May 06 '24 03:05 rehanvdm

Updated! Sorry that took so long - vacation, work, blah blah. Actually I didn't realize GitHub made it so easy to commit recommendations like that!

kc0bfv avatar May 26 '24 21:05 kc0bfv

No problem, I know how it goes and this is open source, so no obligation. Thanks again.

rehanvdm avatar Jun 02 '24 12:06 rehanvdm

:tada: This PR is included in version 1.11.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Jun 02 '24 12:06 github-actions[bot]