mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
feat(status): implement public status channel system with live telemetry, automated incident tracking, and multi-language support
- StatusChannelManager Service:
• Implement dedicated public status channel manager with periodic self-updating live telemetry card.
• Report real-time Fluxer gateway latency, uptime, active music sessions, listener counts, guild footprint, and subsystem statuses.
• Add visual Unicode progress bars for RAM (process RSS vs. system total) and CPU utilization across CPU cores.
• Add dual-color incident lifecycle management:
- 🔴 Incident Outage embeds with start timestamp, severity level, investigating status, and optional role mentions.
- ✅ Incident Resolution embeds with automatic downtime duration calculation and stable verification.
• Wire automated incident triggers into Bot lifecycle (Lavalink node disconnect/reconnect, process shutdown) and GatewayHandler (gateway drops and ready/resumed reconnects).
- Owner Diagnostic Command:
• Add `statustest` owner-only command with subcommands:
- `refresh`: Force an immediate update and edit of the live status card.
- `incident <target> [reason]`: Simulate subsystem outage alerts.
- `resolve <target> [note]`: Simulate incident resolution with calculated downtime.
- Complete Multi-Language Localization:
• Add full translations for `statustest` and `statusChannel` across all 6 supported locales:
- English (`en.json`)
- German (`de-DE.json`)
- Portuguese (`pt-BR.json`)
- Turkish (`tr.json`)
- Arabic (`ar-SA.json`)
- Central Kurdish (`ckb.json`)
• Wire `StatusChannelManager` and `statustest` to dynamically resolve translated strings via `remix.locale.translate`.
This commit is contained in:
1 parent
e3dd7ad914
commit
36139837ba
11 files changed
+986
-7
No files matched your search
@@ -91,7 +91,8 @@
|
||||
"pitch": "Tonhöhe (Pitch) des aktuellen Tracks anpassen (0.5× bis 2.0×).",
|
||||
"previous": "Den vorherigen Titel aus dem Wiedergabeverlauf abspielen.",
|
||||
"replay": "Den aktuellen Titel von vorne starten.",
|
||||
"skipto": "Direkt zu einem bestimmten Titel in der Warteschlange springen."
|
||||
"skipto": "Direkt zu einem bestimmten Titel in der Warteschlange springen.",
|
||||
"statustest": "Öffentliche Statuskanal-Aktualisierungen, Live-Karten und Vorfälle testen."
|
||||
},
|
||||
"options": {
|
||||
"debug": {
|
||||
@@ -1322,6 +1323,50 @@
|
||||
"floodTitle": "Protokollnachrichten verworfen",
|
||||
"floodDesc": "⚠️ **{{count}}** zusätzliche Protokollnachricht(en) wurden während einer Flut verworfen, um API-Ratenbegrenzungen zu schützen.",
|
||||
"floodFooter": "Ratenbegrenzungsschutz • ErrorChannel"
|
||||
},
|
||||
"statustest": {
|
||||
"author": "Remix · Statuskanal-Diagnose",
|
||||
"disabledAuthor": "Remix Status-Hub",
|
||||
"disabledTitle": "Statuskanal deaktiviert",
|
||||
"disabledDesc": "❌ Der Statuskanal ist derzeit **deaktiviert** oder es fehlt eine `channelId`.\n\nKonfiguriere `statusChannel` in `config.json`:\n```json\n\"statusChannel\": {\n \"enabled\": true,\n \"channelId\": \"DEINE_KANAL_ID\",\n \"mentionRoleId\": \"OPTIONALE_ROLLEN_ID\",\n \"updateIntervalSeconds\": 300\n}\n```",
|
||||
"refreshedTitle": "✅ Live-Karte aktualisiert",
|
||||
"refreshedDesc": "Live-Telemetrie-Update an <#{{channelId}}> gesendet.\nKarten-Nachrichten-ID: `{{messageId}}`",
|
||||
"incidentTitle": "🔴 Test-Vorfall ausgelöst",
|
||||
"incidentDesc": "Vorfallsausfall für **{{target}}** in <#{{channelId}}> veröffentlicht.\nFühre `{{prefix}}statustest resolve {{target}}` aus, um ihn zu beheben.",
|
||||
"resolvedTitle": "✅ Test-Vorfall behoben",
|
||||
"resolvedDesc": "Vorfallsbehebung für **{{target}}** in <#{{channelId}}> veröffentlicht.",
|
||||
"helpTitle": "Statuskanal-Befehle",
|
||||
"helpDesc": "Statuskanal ist **aktiv** in <#{{channelId}}>.\nAktuelle Live-Karte: `{{cardId}}`\n\n**Nutzungsoptionen:**\n• `{{prefix}}statustest refresh` — Live-Status-Embed erzwingen.\n• `{{prefix}}statustest incident <target>` — Test-Ausfall-Embed auslösen.\n• `{{prefix}}statustest resolve <target>` — Ausfall beheben und Ausfallzeit posten.\n\n*Gültige Ziele:* `gateway`, `audioNode`, `database`, `dashboard`, `api`"
|
||||
},
|
||||
"statusChannel": {
|
||||
"liveCardTitle": "Live-Systemstatus",
|
||||
"liveCardAuthor": "Remix · System-Telemetrie & Status",
|
||||
"operationalDesc": "🟢 **Alle Systeme betriebsbereit**\nRemix läuft auf allen Servern reibungslos.",
|
||||
"degradedDesc": "🟡 **Teilausfall**\nEinige unkritische Subsysteme weisen Störungen auf.",
|
||||
"criticalDesc": "🔴 **Schwerer Ausfall festgestellt**\nEin oder mehrere Hauptdienste sind offline.",
|
||||
"gatewayField": "🏓 Gateway-Latenz",
|
||||
"uptimeField": "⏱️ Betriebszeit",
|
||||
"sessionsField": "🎵 Aktive Sitzungen",
|
||||
"ramField": "📟 Arbeitsspeicher (RAM)",
|
||||
"cpuField": "⚙️ CPU-Auslastung",
|
||||
"guildsField": "🏰 Server-Präsenz",
|
||||
"subsystemsField": "🛡️ Subsystem-Status",
|
||||
"incidentAuthor": "🔴 Vorfall festgestellt",
|
||||
"incidentTitle": "🔴 {{name}} ist ausgefallen",
|
||||
"incidentDefaultDesc": "{{name}} weist Störungen auf. Unser Team untersucht den Vorfall.",
|
||||
"resolvedAuthor": "✅ Vorfall behoben",
|
||||
"resolvedTitle": "✅ {{name}} ist wieder online",
|
||||
"resolvedDefaultDesc": "Die Verbindung zu {{name}} wurde vollständig wiederhergestellt und als stabil verifiziert.",
|
||||
"downtimeField": "Ausfallzeit",
|
||||
"startedField": "Begonnen",
|
||||
"resolvedField": "Behoben",
|
||||
"statusField": "Status",
|
||||
"severityField": "Schweregrad",
|
||||
"investigating": "Untersuchung läuft",
|
||||
"stable": "Stabil",
|
||||
"operational": "Betriebsbereit",
|
||||
"outage": "Störungen",
|
||||
"disabled": "Deaktiviert"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user