tock / ai.tock.shared.vertx / detailedHealthcheck

# detailedHealthcheck

`fun detailedHealthcheck(tasks: List<Pair<String, () -> Boolean>> = listOf(), selfCheck: () -> Boolean = { true }): (RoutingContext) -> Unit` (source)

Return an HTTP handler which calls lambdas and construct the HTTP response

Params
tasks list of lambda and resource's name that indicate the health of a resource

Params
selfCheck lambda that indicate the service health