tock / ai.tock.bot.engine.monitoring / RequestTimer

# RequestTimer

`interface RequestTimer` (source)

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

### Functions

#### end | Called at the end of the request. `open fun end(data: RequestTimerData): Unit`
#### error | Called when an an error is detected. `open fun error(errorMessage: String, data: RequestTimerData): Unit`
#### start | Called at the start of the request. `open fun start(type: String): RequestTimerData`
#### throwable | Called when exception is caught. `open fun throwable(throwable: Throwable, data: RequestTimerData): Unit`