This PR adds a new core event that is sent via event handlers, to provide, on a regular basis, short info on the status of the Janus server. At the moment, this includes:
the number of active sessions
the number of active handles (across all sessions)
the number of active PeerConnections (across all sessions)
the interval at which event handlers are currently configured to send media reports for each PC
While I may add more stuff in the future, this is basically it for now, as it should provide some very basic health state information that can be consumed without having to poll the Admin API or track all events that flow through.
In this PR, I hardcoded the frequency of this event to 15 seconds. Not sure if it makes sense to make this configurable too, but in case it should be easy to do. Feedback welcome!
This PR adds a new core event that is sent via event handlers, to provide, on a regular basis, short info on the status of the Janus server. At the moment, this includes:
While I may add more stuff in the future, this is basically it for now, as it should provide some very basic health state information that can be consumed without having to poll the Admin API or track all events that flow through.
This is an example of how the event looks like:
In this PR, I hardcoded the frequency of this event to 15 seconds. Not sure if it makes sense to make this configurable too, but in case it should be easy to do. Feedback welcome!