Update notification_templates.py

This commit is contained in:
MacRimi
2026-03-20 19:16:36 +01:00
parent 4750ff8cd5
commit 979a7e5d18

View File

@@ -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 - 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 - Health events: after the category/status line, before duration or detail lines
EXAMPLE — CT shutdown: EXAMPLE — update_summary (no important packages):
[TITLE] [TITLE]
🔽 amd: CT alpine (101) shut down 📦 amd: Updates available
[BODY] [BODY]
🏷️ Container alpine (ID: 101) 📦 Total updates: 62
✔️ Cleanly shut down 🔒 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: EXAMPLE — CT shutdown:
[TITLE] [TITLE]
🚀 pve01: VM arch-linux (100) started 🔽 amd: CT alpine (101) shut down
[BODY] [BODY]
🏷️ Virtual machine arch-linux (ID: 100) 🏷️ Container alpine (ID: 101)
✔️ Now running ✔️ Cleanly shut down
EXAMPLE — updates message (no important packages): EXAMPLE — VM started:
[TITLE] [TITLE]
📦 amd: Updates available 🚀 pve01: VM arch-linux (100) started
[BODY] [BODY]
📦 Total updates: 55 🏷️ Virtual machine arch-linux (ID: 100)
🔒 Security updates: 0 ✔️ Now running
🔄 Proxmox updates: 0
⚙️ Kernel updates: 0
🗂️ 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): 🗂️ Important packages: 0
[TITLE]
📦 amd: Updates available
[BODY]
📦 Total updates: 90
🔒 Security updates: 6
🔄 Proxmox updates: 14
⚙️ Kernel updates: 1
🗂️ Important packages: EXAMPLE — updates message (with important packages):
• pve-manager (9.1.4 -> 9.1.6) [TITLE]
• qemu-server (9.1.3 -> 9.1.4) 📦 amd: Updates available
• pve-container (6.0.18 -> 6.1.2) [BODY]
📦 Total updates: 90
EXAMPLE — pve_update (new Proxmox VE version): 🔒 Security updates: 6
[TITLE] 🔄 Proxmox updates: 14
🆕 pve01: Proxmox VE 9.1.6 available ⚙️ Kernel updates: 1
[BODY]
🚀 A new Proxmox VE release is available.
🔹 Current: 9.1.4 🗂️ Important packages:
🟢 New: 9.1.6 • 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: 🔹 Current: 9.1.4
📌 pve-manager (v9.1.4 ➜ v9.1.6) 🟢 New: 9.1.6
EXAMPLE — backup complete with multiple VMs: 🗂️ Important packages:
[TITLE] 📌 pve-manager (v9.1.4 ➜ v9.1.6)
💾✅ pve01: Backup complete
[BODY]
Backup job finished on storage local-bak.
🏷️ VM web01 (ID: 100) EXAMPLE — backup complete with multiple VMs:
✔️ Status: ok [TITLE]
💽 Size: 12.3 GiB 💾✅ pve01: Backup complete
⏱️ Duration: 00:04:21 [BODY]
🗄️ Storage: vm/100/2026-03-17T22:00:08Z Backup job finished on storage local-bak.
🏷️ CT db (ID: 101) 🏷️ VM web01 (ID: 100)
✔️ Status: ok ✔️ Status: ok
💽 Size: 4.1 GiB 💽 Size: 12.3 GiB
⏱️ Duration: 00:01:10 ⏱️ Duration: 00:04:21
🗄️ Storage: ct/101/2026-03-17T22:04:29Z 🗄️ 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): 📊 Total: 2 backups | 💾 16.4 GiB | ⏱️ 00:05:31
[TITLE]
💾❌ pve01: Backup partially failed
[BODY]
Backup job finished with errors on storage PBS2.
🏷️ VM web01 (ID: 100) EXAMPLE — backup partially failed (some ok, some failed):
✔️ Status: ok [TITLE]
💽 Size: 12.3 GiB 💾❌ pve01: Backup partially failed
⏱️ Duration: 00:04:21 [BODY]
🗄️ Storage: vm/100/2026-03-17T22:00:08Z Backup job finished with errors on storage PBS2.
🏷️ VM broken (ID: 102) 🏷️ VM web01 (ID: 100)
Status: error ✔️ Status: ok
💽 Size: 0 B 💽 Size: 12.3 GiB
⏱️ Duration: 00:00:37 ⏱️ 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: 📊 Total: 2 backups | ❌ 1 failed | 💾 12.3 GiB | ⏱️ 00:04:58
[TITLE]
💥 amd: Health warning — Disk I/O errors
[BODY]
💿 Device: /dev/sda
⚠️ 1 sector currently unreadable (pending) EXAMPLE — disk I/O health warning:
📝 Disk reports sectors in pending reallocation state""" [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 # No emoji instructions for email/plain text channels