HealthCheck

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def const[F[_] : Applicative, H[_] : Applicative](health: Health): HealthCheck[F, H]

A healthcheck that always returns the supplied health value.

A healthcheck that always returns the supplied health value.

def either[F[_], H[_], I[_]](a: HealthCheck[F, H], b: HealthCheck[F, I])(implicit F: ApplicativeError[F, _]): HealthCheck[F, [_] =>> EitherK[H, I, _$20]]

Combines two healthchecks by running the first one and recovering with the second one in case of failure in F.

Combines two healthchecks by running the first one and recovering with the second one in case of failure in F.

If H and I are the same, the result's EitherK can be combined to a single H/I container using mods.mergeEitherK.

def liftF[F[_], H[_]](_check: F[HealthResult[H]]): HealthCheck[F, H]
def liftFBoolean[F[_] : Functor](fb: F[Boolean]): HealthCheck[F, Id]

Lifts a Boolean-returning action to a healthcheck that yields Sick if the action returns false.

Lifts a Boolean-returning action to a healthcheck that yields Sick if the action returns false.

def parTupled[F[_] : NonEmptyParallel, H[_], I[_]](a: HealthCheck[F, H], b: HealthCheck[F, I]): HealthCheck[F, [_] =>> Tuple2K[H, I, _$30]]

Combines two healthchecks by running them in parallel, then wrapping the result in a Tuple2K.

Combines two healthchecks by running them in parallel, then wrapping the result in a Tuple2K.

If H and I are the same, the result's Tuple2K can be combined to a single H/I container using mods.mergeTuple2K.

def race[F[_], H[_], I[_]](a: HealthCheck[F, H], b: HealthCheck[F, I])(implicit F: GenConcurrent[F, _]): HealthCheck[F, [_] =>> EitherK[H, I, _$34]]

Races two healthchecks against each other. The first one to complete with a result (regardless of whether healthy or sick) will cancel the other.

Races two healthchecks against each other. The first one to complete with a result (regardless of whether healthy or sick) will cancel the other.

If H and I are the same, the result's EitherK can be combined to a single H/I container using mods.mergeEitherK.

def tupled[F[_] : Apply, H[_], I[_]](a: HealthCheck[F, H], b: HealthCheck[F, I]): HealthCheck[F, [_] =>> Tuple2K[H, I, _$26]]

Combines two healthchecks by running them both, then wrapping the result in a Tuple2K.

Combines two healthchecks by running them both, then wrapping the result in a Tuple2K.

If H and I are the same, the result's Tuple2K can be combined to a single H/I container using mods.mergeTuple2K.

Implicits

Implicits

implicit def checkMonoid[F[_] : Applicative, H[_] : Applicative](implicit evidence$6: Applicative[F], evidence$7: Applicative[H], M: Monoid[Health]): Monoid[HealthCheck[F, H]]
implicit def healthCheckEq[F[_], H[_]](implicit F: Eq[F[HealthResult[H]]]): Eq[HealthCheck[F, H]]