问题
For example, to automate the process of producing a daily report for selected events and the duration of time that unique users spend on some specific event. And it is even better if I can customize the reporting information and have it generated in excel sheet automatically. Any suggestions or ideas would be much appreciated.
回答1:
You could use a Cloud Function to generate you excel report, for example by using excel4node (https://www.npmjs.com/package/excel4node)
And to call this Cloud Function regularly, you have to trigger it via http through a cron-job.
Have a look at:
https://firebase.google.com/docs/functions/http-events).
and
https://www.youtube.com/watch?v=CbE2PzvAMxA
Note: What works quite well too is to generate some PDFs via the Cloud Function, using pdfmake.
来源:https://stackoverflow.com/questions/49432889/how-to-automate-the-process-of-generating-daily-report-from-firebase