HealthCheckMagnet

nl.grons.metrics4.scala.HealthCheckMagnet
See theHealthCheckMagnet companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

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).

Attributes

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.

Attributes

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.

Attributes

implicit def fromMetricsResultCheck(checker: ByName[Result]): HealthCheckMagnet

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

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

Attributes

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.

Attributes

implicit def fromUnitCheck(checker: ByName[Unit]): HealthCheckMagnet

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.

Attributes