I have an integration process running from another tool that is populating a Google Sheet every 15 minutes (00, 15, 30, 45).
Every night when the job runs at midnight, it will create a new tab with that date (e.g. 2021.06.18). Every 15 minutes, a row is added to the tab with the date, time, and an IP address of a machine that processed the actual job to populate the sheet. This is all working as I expected it to.
What I am looking to do is have a notification sent to me if that sheet has not been updated when it is supposed to be updated. My thought would be to run some job every 15 minutes but about 5 minutes after the sheet gets populated and look to see that the sheet was updated in the past 10 minutes. If yes, good. If not, notification. However, I am not sure how I would accomplish this. I know there is code that can notify you if the sheet has been updated, but I haven't seen anyone ask this question.
I am not familiar with Google scripting at all, and I'm not really familiar with any code. What I would normally do is as much research as possible which would hopefully give me enough bits and pieces that I can tie together. However, I haven't really seen anything similar to this. I know that Google Sheets can do time based triggers. I haven't tried anything because all of the stuff I had seen was about getting notifications if a sheet was changed. I have not seen anything about getting notified if a sheet is not changed.
In summary:
- Integration process updates Google Sheet @ 1:00pm (this is already happening every 15 minutes).
- At 1:05pm, a time driven script would run and verify the sheet was updated in the last 10 minutes.
- If the sheet has not been updated, a notification would be sent (email/text).
Any help is greatly appreciated.