Returns metrics for the given service id. If the service id is nullish, or there is no history for the given service, empty service metrics will be returned.
The returned object is static at the time of request.
Returns true if the event host has any listeners.
Returns true if the event host has any listeners for the given type.
Adds an event handler for the given typed event.
The key representing the event type to listen for.
A callback to invoke when the event with the given type is dispatched.
Optionaloptions: SignalOptionsOptions for changing listening behavior.
Returns a method, when invoked, removes the handler.
The current metrics state. The returned object is static at the time of request.