Event webhooks: game_server.started and game_server.stopped

Sent for every Fragnet game server seen turned on or off, whatever the notification switch says, with the server, game, account and, when a power signal sent from here caused it, which signal and who sent it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-14 22:59:40 +01:00
1 parent 2986734196
commit 25183c0320
10 files changed
+127 -9

No files matched your search

+3 -1
View File
@@ -16,6 +16,8 @@ const EVENT_WORDS: Record<WebhookEventName, string> = {
"alert.resolved": "A problem ends",
"maintenance.started": "Maintenance begins",
"maintenance.ended": "Maintenance ends",
"game_server.started": "A game server turns on",
"game_server.stopped": "A game server turns off",
};
const hostOf = (address: string) => {
@@ -354,7 +356,7 @@ export default function ApiSettings() {
))}
{hooks === null && <LoadingRow colSpan={4} />}
{hooks?.length === 0 && (
<EmptyRow colSpan={4} title="No webhooks yet" hint="A webhook tells another system when an alert opens or resolves, or when maintenance starts or ends." action={{ label: "Add a webhook", onClick: () => setAdding(true) }} />
<EmptyRow colSpan={4} title="No webhooks yet" hint="A webhook tells another system when an alert opens or resolves, when maintenance starts or ends, or when a game server is turned on or off." action={{ label: "Add a webhook", onClick: () => setAdding(true) }} />
)}
</tbody>
</table>