2021-06-09 15:40:02 +00:00
|
|
|
package control
|
|
|
|
|
2023-03-07 13:38:26 +00:00
|
|
|
import control "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/control/ir"
|
2021-06-09 15:40:02 +00:00
|
|
|
|
|
|
|
// HealthChecker is component interface for calculating
|
|
|
|
// the current health status of a node.
|
|
|
|
type HealthChecker interface {
|
2024-10-14 15:05:55 +00:00
|
|
|
// HealthStatus must calculate and return current health status of the IR application.
|
2021-06-09 15:40:02 +00:00
|
|
|
//
|
|
|
|
// If status can not be calculated for any reason,
|
|
|
|
// control.HealthStatus_HEALTH_STATUS_UNDEFINED should be returned.
|
|
|
|
HealthStatus() control.HealthStatus
|
|
|
|
}
|