Skip to content
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

send notification to webhook before, after backup #15

Open
ithiru opened this issue Oct 4, 2022 · 1 comment
Open

send notification to webhook before, after backup #15

ithiru opened this issue Oct 4, 2022 · 1 comment

Comments

@ithiru
Copy link

ithiru commented Oct 4, 2022

Can you send notification before/after with information like, total number of backups, size, etc., to Webhook, you can do curl to webhook (discord, for example).

@vijayabharathib
Copy link
Contributor

vijayabharathib commented Oct 6, 2022

Just figured out the base format. will try scripting it.

delete ➤ curl -X POST <url> \
-H 'Content-Type: application/json' \
-d '{"embeds":[{"color":"14365807","title":"cron","type":"rich","description":"Cron executed","fields":[{"name":"source","value":"db"},{"name":"time","value":"2022-10-06 12:00:00"},{"name":"status","value":"failed"},{"name":"size","value":"450MB"},{"name":"frequency","value":"hourly"}]}]}'

curl -X POST <url> \
-H 'Content-Type: application/json' \
-d '{"embeds":[{"color":"1226002","title":"cron","type":"rich","description":"Cron executed","fields":[{"name":"source","value":"db"},{"name":"time","value":"2022-10-06 12:00:00"},{"name":"status","value":"SUCCESS"},{"name":"size","value":"450MB"},{"name":"frequency","value":"hourly"}]}]}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants