andrewm4894 / anomstack

Anomstack - Painless open source anomaly detection for your metrics 📈📉🚀
https://andrewm4894.github.io/anomstack/
MIT License
83 stars 6 forks source link

Add metric summary email functionality #85

Closed andrewm4894 closed 5 months ago

andrewm4894 commented 5 months ago

Sends a daily summary of metrics, scores and alerts.

This commit adds a new function called send_df to the send.py file in the anomstack.alerts module. The send_df function allows sending alerts with a DataFrame using the specified alert methods, such as email and Slack. The function takes a title, a DataFrame, and optional parameters like alert methods and description. It converts the DataFrame to HTML and sends the alert using the specified methods.