code: func (s *APIServer) getSessionEvents(auth ClientI, w http.ResponseWriter, r *http.Request, p httprouter.Params, version string) (interface{}, error) {
  	sid, err := session.ParseID(p.ByName("id"))
  	if err != nil {
  		return nil, trace.Wrap(err)
  	}
  	namespace := p.ByName("namespace")
  	if !services.IsValidNamespace(namespace) {
  		return nil, trace.BadParameter("invalid namespace %q", namespace)
  	}
  	afterN, err := strconv.Atoi(r.URL.Query().Get("after"))
  	if err != nil {
  		afterN = 0
  	}
  	includePrintEvents, err := strconv.ParseBool(r.URL.Query().Get("print"))
  	if err != nil {
  		includePrintEvents = false
  	}
  
  	return auth.GetSessionEvents(namespace, *sid, afterN, includePrintEvents)
  }
docs: // HTTP GET /:version/sessions/:id/events?maxage=n
  // Query:
  //    'after' : cursor value to return events newer than N. Defaults to 0, (return all)