bur-cli
BUR-18Notify on every run (Discord)
Description
notify.py, built around an event model so new events are cheap to add: notify(event, payload) with event in {backup_success, backup_degraded, backup_failure, drill_success, drill_failure, ...}.
- Discord webhook (
BUR_DISCORD_WEBHOOK) subscribes to every event, so a message lands on every run, success and failure, with the per-database summary (which databases ran, the dumped and pushed booleans, sizes, a total, and any error). This is a channel webhook, not a bot. - Severity follows the state-file semantics:
backup_successis info,backup_degradedis a warning,backup_failureis an error. Discord gets all three.--quietsuppresses the success message for ad-hoc--onlyruns, but failures always notify.
Acceptance
- every completed run posts to Discord (success, degraded, and failure) with a per-database summary, and drill results post too.
- new event types can be added without touching existing senders; the channel is optional, and its absence falls back to log-only.
Sub-tickets
0No sub-tickets yet.
Links
No links.
Comments
0No comments yet.