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