Open ithiru opened 2 years ago
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"}]}]}'
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).