healthCheck

fun healthCheck(block: HealthCheck.() -> HealthCheck.Result): HealthCheck

Creates a HealthCheck whose HealthCheck.check method is defined by the given lambda.

Return

a new HealthCheck instance.

Parameters

block

a lambda with HealthCheck as the receiver that returns a HealthCheck.Result.