Package 

Interface RequestTimer


  • 
    public interface RequestTimer
    
                        

    To track time for requests received and sent. start and end are guaranteed to be called.

    • Method Summary

      Modifier and Type Method Description
      RequestTimerData start(String type) Called at the start of the request.
      Unit error(String errorMessage, RequestTimerData data) Called when an an error is detected.
      Unit throwable(Throwable throwable, RequestTimerData data) Called when exception is caught.
      Unit end(RequestTimerData data) Called at the end of the request.
      • Methods inherited from class ai.tock.bot.engine.monitoring.RequestTimer

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait