
com.github.vonnagy.service.container.health.HealthInfo.scala Maven / Gradle / Ivy
The newest version!
package com.github.vonnagy.service.container.health
object HealthState extends Enumeration {
type HealthState = Value
val OK, DEGRADED, CRITICAL = Value
}
import com.github.vonnagy.service.container.health.HealthState._
/**
* This message is used to ask for health information
*/
case class CheckHealth()
/**
* The health check is used to define a subset of functionality that
* can be asked of it's state. It can contain optional child checks.
* @param name The name of the check
* @param state The current state of the check (defaults to OK)
* @param extra Any extra information
*/
case class HealthInfo(name: String,
state: HealthState = HealthState.OK,
details: String,
extra: Option[AnyRef] = None,
checks: List[HealthInfo] = List.empty)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy