onFire

fun onFire(callback: (Instant, Double) -> Unit)

Registers a listener to be invoked when this metric fires.

Parameters

callback

the function to invoke with the current time and metric value