This repo analyzes the latest data, and detects any anomalies (if found). If an anomaly is detected, it sends an email to a registered email address. Also, provided with a very handy file deploy_to_aws_lambda.py to run this on your own at absolutely fraction of a cost.
- Provide maintainance and hosting of this.
- Select custom Anomaly detection algorithms
- Plug & Play their own Anomaly detection algorithms
To use this script, you will need the following:
- A database to store the timeseries data. You can use any database of your choice like MySQL, PostgreSQL, SQLite, etc.
- A registered email address to receive alerts.
- Dev Setup
git clone https://github.com/your-username/api-request-anomaly-detector.git
python -m venv venv
source venv/bin/activate
pip install requests pandas sqlite3 smtplib
- Edit the config.py file to set the following variables:
- Deploy to AWS Lambda
python deploy_to_aws_lambda.py
THAT'S IT!
The script will start pinging the API endpoint every 6 minutes and storing the data in the database. If an anomaly is detected, it will send an email to the registered email address.
If you find a bug or want to contribute to this project, please create a pull request or submit an issue.
This project is licensed under the MIT License - see the LICENSE file for details.