Readonly
Register a custom metric. Returns a remover.
Fires once per threshold crossing (re-armed when the metric recovers).
Fires when a metric drops back under its threshold.
Add/change a threshold live (null removes it).
Collect one snapshot now (measures real event-loop lag).
Register a custom metric. Returns a remover.