HealthCheckMagnet

Companion
class
class Object
trait Matchable
class Any

Implicits

Implicits

implicit
def fromBooleanCheck[T](checker: ByName[T])(implicit convert: T => Boolean): HealthCheckMagnet

Magnet for checkers returning a scala.Boolean (or convertible to Boolean).

Magnet for checkers returning a scala.Boolean (or convertible to Boolean).

implicit
def fromEitherChecker[T, U](checker: ByName[Either[T, U]]): HealthCheckMagnet

Magnet for checkers returning an scala.util.Either.

Magnet for checkers returning an scala.util.Either.

implicit
def fromFutureCheck[T](futureChecker: ByName[Future[T]])(implicit timeout: FiniteDuration): HealthCheckMagnet

Magnet for checkers returning a scala.concurrent.Future.

Magnet for checkers returning a scala.concurrent.Future.

The check will block waiting for the scala.concurrent.Future to complete. It is given a 3-second default timeout after which the scala.concurrent.Future will be considered a failure and the health check will consequently fail.

implicit

Magnet for checkers returning a com.codahale.metrics.health.HealthCheck.Result.

Magnet for checkers returning a com.codahale.metrics.health.HealthCheck.Result.

implicit
def fromTryChecker[T](checker: ByName[Try[T]]): HealthCheckMagnet

Magnet for checkers returning an scala.util.Try.

Magnet for checkers returning an scala.util.Try.

implicit

Magnet for checkers returning a scala.Unit.

Magnet for checkers returning a scala.Unit.

If the checker throws an exception the check is considered failed, otherwise a success.