add instance metrics to server

This commit is contained in:
ppc
2024-09-04 10:17:14 +01:00
parent 20577f76f0
commit cff5989a8d
4 changed files with 31 additions and 4 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ namespace AMNet.Server;
public record SystemState(
[property: JsonPropertyName("apiVersion")] int ApiVersion,
[property: JsonPropertyName("gameId")] string GameId,
[property: JsonPropertyName("serverName")] string ServerName);
[property: JsonPropertyName("serverName")] string ServerName,
[property: JsonPropertyName("sessionUptime")] long SessionUptime,
[property: JsonPropertyName("timeSinceLastPoll")] long? TimeSinceLastPoll);
public record CardReadRequest(
[property: JsonPropertyName("cardId")] string MatrixCode);