Package net.targetr.rc.monitoring.health
package net.targetr.rc.monitoring.health
Server health sampling, recent history and JSON monitoring responses.
Health samples JVM memory and
threads, transport counters, cache activity and room/client counts on a
background virtual thread. HealthStat
holds each sample, including calculated traffic rates. Recent history is
represented as an initial state followed by changed fields, with time offsets
relative to retrieval.
HealthCheckHandler returns the
latest snapshot over HTTP and includes room state when its authorization check
succeeds. WebSocketHealth streams
history and subsequent changes to a monitoring browser.
- Author:
- Dr Michael Gardiner
-
ClassesClassDescriptionMonitors the server health and stores a history of stats.Returns a response about the current server health as JSON.Represents the health of the server at a specific time.Streams server health history and subsequent changes over a WebSocket.