diff --git a/AppImage/scripts/notification_templates.py b/AppImage/scripts/notification_templates.py index 4f97052e..f89dc665 100644 --- a/AppImage/scripts/notification_templates.py +++ b/AppImage/scripts/notification_templates.py @@ -1461,104 +1461,138 @@ A blank line must be completely empty β€” no emoji, no spaces. - VM events with a reason: after the main status line, before Reason / Node / Target lines - Health events: after the category/status line, before duration or detail lines - EXAMPLE β€” CT shutdown: - [TITLE] - πŸ”½ amd: CT alpine (101) shut down - [BODY] - 🏷️ Container alpine (ID: 101) - βœ”οΈ Cleanly shut down + EXAMPLE β€” update_summary (no important packages): + [TITLE] + πŸ“¦ amd: Updates available + [BODY] + πŸ“¦ Total updates: 62 + πŸ”’ Security updates: 2 + πŸ”„ Proxmox updates: 5 + βš™οΈ Kernel updates: 0 + + πŸ—‚οΈ Important packages: 0 + + EXAMPLE β€” update_summary (with packages): + [TITLE] + πŸ“¦ amd: Updates available + [BODY] + πŸ“¦ Total updates: 90 + πŸ”’ Security updates: 6 + πŸ”„ Proxmox updates: 14 + βš™οΈ Kernel updates: 1 + + πŸ—‚οΈ Important packages: + β€’ pve-manager (9.1.4 -> 9.1.6) + β€’ qemu-server (9.1.3 -> 9.1.4) - EXAMPLE β€” VM started: - [TITLE] - πŸš€ pve01: VM arch-linux (100) started - [BODY] - 🏷️ Virtual machine arch-linux (ID: 100) - βœ”οΈ Now running + EXAMPLE β€” CT shutdown: + [TITLE] + πŸ”½ amd: CT alpine (101) shut down + [BODY] + 🏷️ Container alpine (ID: 101) + βœ”οΈ Cleanly shut down - EXAMPLE β€” updates message (no important packages): - [TITLE] - πŸ“¦ amd: Updates available - [BODY] - πŸ“¦ Total updates: 55 - πŸ”’ Security updates: 0 - πŸ”„ Proxmox updates: 0 - βš™οΈ Kernel updates: 0 + EXAMPLE β€” VM started: + [TITLE] + πŸš€ pve01: VM arch-linux (100) started + [BODY] + 🏷️ Virtual machine arch-linux (ID: 100) + βœ”οΈ Now running - πŸ—‚οΈ Important packages: 0 + EXAMPLE β€” updates message (no important packages): + [TITLE] + πŸ“¦ amd: Updates available + [BODY] + πŸ“¦ Total updates: 55 + πŸ”’ Security updates: 0 + πŸ”„ Proxmox updates: 0 + βš™οΈ Kernel updates: 0 - EXAMPLE β€” updates message (with important packages): - [TITLE] - πŸ“¦ amd: Updates available - [BODY] - πŸ“¦ Total updates: 90 - πŸ”’ Security updates: 6 - πŸ”„ Proxmox updates: 14 - βš™οΈ Kernel updates: 1 + πŸ—‚οΈ Important packages: 0 - πŸ—‚οΈ Important packages: - β€’ pve-manager (9.1.4 -> 9.1.6) - β€’ qemu-server (9.1.3 -> 9.1.4) - β€’ pve-container (6.0.18 -> 6.1.2) - - EXAMPLE β€” pve_update (new Proxmox VE version): - [TITLE] - πŸ†• pve01: Proxmox VE 9.1.6 available - [BODY] - πŸš€ A new Proxmox VE release is available. + EXAMPLE β€” updates message (with important packages): + [TITLE] + πŸ“¦ amd: Updates available + [BODY] + πŸ“¦ Total updates: 90 + πŸ”’ Security updates: 6 + πŸ”„ Proxmox updates: 14 + βš™οΈ Kernel updates: 1 - πŸ”Ή Current: 9.1.4 - 🟒 New: 9.1.6 + πŸ—‚οΈ Important packages: + β€’ pve-manager (9.1.4 -> 9.1.6) + β€’ qemu-server (9.1.3 -> 9.1.4) + β€’ pve-container (6.0.18 -> 6.1.2) + + EXAMPLE β€” pve_update (new Proxmox VE version): + [TITLE] + πŸ†• pve01: Proxmox VE 9.1.6 available + [BODY] + πŸš€ A new Proxmox VE release is available. - πŸ—‚οΈ Important packages: - πŸ“Œ pve-manager (v9.1.4 ➜ v9.1.6) + πŸ”Ή Current: 9.1.4 + 🟒 New: 9.1.6 - EXAMPLE β€” backup complete with multiple VMs: - [TITLE] - πŸ’Ύβœ… pve01: Backup complete - [BODY] - Backup job finished on storage local-bak. + πŸ—‚οΈ Important packages: + πŸ“Œ pve-manager (v9.1.4 ➜ v9.1.6) - 🏷️ VM web01 (ID: 100) - βœ”οΈ Status: ok - πŸ’½ Size: 12.3 GiB - ⏱️ Duration: 00:04:21 - πŸ—„οΈ Storage: vm/100/2026-03-17T22:00:08Z + EXAMPLE β€” backup complete with multiple VMs: + [TITLE] + πŸ’Ύβœ… pve01: Backup complete + [BODY] + Backup job finished on storage local-bak. - 🏷️ CT db (ID: 101) - βœ”οΈ Status: ok - πŸ’½ Size: 4.1 GiB - ⏱️ Duration: 00:01:10 - πŸ—„οΈ Storage: ct/101/2026-03-17T22:04:29Z + 🏷️ VM web01 (ID: 100) + βœ”οΈ Status: ok + πŸ’½ Size: 12.3 GiB + ⏱️ Duration: 00:04:21 + πŸ—„οΈ Storage: vm/100/2026-03-17T22:00:08Z - πŸ“Š Total: 2 backups | πŸ’Ύ 16.4 GiB | ⏱️ 00:05:31 + 🏷️ CT db (ID: 101) + βœ”οΈ Status: ok + πŸ’½ Size: 4.1 GiB + ⏱️ Duration: 00:01:10 + πŸ—„οΈ Storage: ct/101/2026-03-17T22:04:29Z - EXAMPLE β€” backup partially failed (some ok, some failed): - [TITLE] - πŸ’ΎβŒ pve01: Backup partially failed - [BODY] - Backup job finished with errors on storage PBS2. + πŸ“Š Total: 2 backups | πŸ’Ύ 16.4 GiB | ⏱️ 00:05:31 - 🏷️ VM web01 (ID: 100) - βœ”οΈ Status: ok - πŸ’½ Size: 12.3 GiB - ⏱️ Duration: 00:04:21 - πŸ—„οΈ Storage: vm/100/2026-03-17T22:00:08Z + EXAMPLE β€” backup partially failed (some ok, some failed): + [TITLE] + πŸ’ΎβŒ pve01: Backup partially failed + [BODY] + Backup job finished with errors on storage PBS2. - 🏷️ VM broken (ID: 102) - ❌ Status: error - πŸ’½ Size: 0 B - ⏱️ Duration: 00:00:37 + 🏷️ VM web01 (ID: 100) + βœ”οΈ Status: ok + πŸ’½ Size: 12.3 GiB + ⏱️ Duration: 00:04:21 + πŸ—„οΈ Storage: vm/100/2026-03-17T22:00:08Z - πŸ“Š Total: 2 backups | ❌ 1 failed | πŸ’Ύ 12.3 GiB | ⏱️ 00:04:58 + 🏷️ VM broken (ID: 102) + ❌ Status: error + πŸ’½ Size: 0 B + ⏱️ Duration: 00:00:37 - EXAMPLE β€” disk I/O health warning: - [TITLE] - πŸ’₯ amd: Health warning β€” Disk I/O errors - [BODY] - πŸ’Ώ Device: /dev/sda + πŸ“Š Total: 2 backups | ❌ 1 failed | πŸ’Ύ 12.3 GiB | ⏱️ 00:04:58 - ⚠️ 1 sector currently unreadable (pending) - πŸ“ Disk reports sectors in pending reallocation state""" + EXAMPLE β€” disk I/O health warning: + [TITLE] + πŸ’₯ amd: Health warning β€” Disk I/O errors + [BODY] + πŸ’Ώ Device: /dev/sda + + ⚠️ 1 sector currently unreadable (pending) + πŸ“ Disk reports sectors in pending reallocation state + + EXAMPLE β€” health degraded (multiple issues): + [TITLE] + ⚠️ amd: 2 health checks degraded + [BODY] + πŸ’₯ Disk I/O error on /dev/sda: 1 sector currently unreadable (pending) + + 🏷️ Container CT 9005: ❌ failed to start + 🏷️ Container CT 9004: ❌ failed to start + 🏷️ Container CT 9002: ❌failed to start""" # No emoji instructions for email/plain text channels