code: func (h *ServerHealth) IsHealthy(lastTerm uint64, leaderLastIndex uint64, autopilotConf *Config) bool {
  	if h.SerfStatus != serf.StatusAlive {
  		return false
  	}
  
  	if h.LastContact > autopilotConf.LastContactThreshold || h.LastContact < 0 {
  		return false
  	}
  
  	if h.LastTerm != lastTerm {
  		return false
  	}
  
  	if leaderLastIndex > autopilotConf.MaxTrailingLogs && h.LastIndex < leaderLastIndex-autopilotConf.MaxTrailingLogs {
  		return false
  	}
  
  	return true
  }
docs: // IsHealthy determines whether this ServerHealth is considered healthy
  // based on the given Autopilot config