mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-28 15:37:14 +00:00
feat(dashboard): track the UGC server like auth and chat
Online state with the time it came up, down/up alerts, a UGC column in the health history, /api/servers (every server with its process memory and CPU) and /api/servers/ugc, and UGC gauges for Prometheus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -60,7 +60,8 @@ void RegisterWSRoutes() {
|
||||
void BroadcastDashboardUpdate() {
|
||||
// Sent to every signed-in account, so it only has what players may see; staff load /api/worlds for details
|
||||
nlohmann::json status = ServerState::PlayerSafe(ServerState::GetServerStateJson());
|
||||
Alerts::ServerStatus(status["auth"].value("online", false), status["chat"].value("online", false));
|
||||
Alerts::ServerStatus(status["auth"].value("online", false), status["chat"].value("online", false),
|
||||
status["ugc"].value("enabled", false), status["ugc"].value("online", false));
|
||||
status["restart"] = LiveWorld::RestartStatus();
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user