mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
3d859ec5f3
This is basic implementation for alerts feature, where you can define a simple rule on the last query result to send an alert. As part of the implementation added Flask-Mail to the project, to send emails. Should be useful to make re:dash more "self aware" (notify users about potential issues, when queries done executing and more).
9 lines
210 B
Python
9 lines
210 B
Python
from redash.models import db, Alert, AlertSubscription
|
|
|
|
if __name__ == '__main__':
|
|
with db.database.transaction():
|
|
Alert.create_table()
|
|
AlertSubscription.create_table()
|
|
|
|
db.close_db(None)
|