code: func (r *ReporterConfig) CheckAndSetDefaults() error {
  	if r.Backend == nil {
  		return trace.BadParameter("missing parameter Backend")
  	}
  	if r.Component == "" {
  		r.Component = teleport.ComponentBackend
  	}
  	return nil
  }
docs: // CheckAndSetDefaults checks and sets