Package ai.tock.bot.engine.monitoring
Interface RequestTimer
-
- All Implemented Interfaces:
public interface RequestTimer
-
-
Method Summary
Modifier and Type Method Description RequestTimerDatastart(String type)Called at the start of the request. Uniterror(String errorMessage, RequestTimerData data)Called when an an error is detected. Unitthrowable(Throwable throwable, RequestTimerData data)Called when exception is caught. Unitend(RequestTimerData data)Called at the end of the request. -
-
Method Detail
-
start
RequestTimerData start(String type)
Called at the start of the request.
-
error
Unit error(String errorMessage, RequestTimerData data)
Called when an an error is detected.
-
throwable
Unit throwable(Throwable throwable, RequestTimerData data)
Called when exception is caught.
-
end
Unit end(RequestTimerData data)
Called at the end of the request.
-
-
-
-