ServerMetrics beta
Interface of @v12-engine/engine/server
export interface ServerMetricsWhat a game server says of itself: the numbers of /metrics (GameServer.metrics)
Members
bytesSent
bytesSent: number;Bytes sent to those connected now, over the wire
connections
connections: number;Connections open, seated or not
draining
draining: boolean;It takes no new games: it is stopping, once the running one is over (close({ drain }))
games
games: {
running: number;
played: number;
};Games running now (0 or 1 for one server), and played to their end since it started
lastTickSeconds
lastTickSeconds: number;Seconds the most recent tick took
phase
phase: 'lobby' | 'game' | 'ended';In its lobby, playing, or showing a game that ended
players
players: number;Seats held by someone connected, and those watching
sends
sends: number;Rounds of sending everyone what changed, and the seconds they took
sendSeconds
sendSeconds: number;Total seconds the rounds of sending have taken since the server started
ticks
ticks: number;Ticks of the simulation stepped since it started, and the seconds they took; how long the last one took
tickSeconds
tickSeconds: number;Total seconds the simulation ticks have taken since the server started
uptime
uptime: number;Seconds since it started
watching
watching: number;Connections watching the game without a seat