Laravel’s Envoyer provides a service called Heartbeats. It’s a peculiar little feature that seems to be incredibly hard to find an alternative to in other services. This kind of feature in Sentry would be an amazing bonus for users. Here is a simple design outline:
- Users create a new token in their project area. It needs to be given a name by the user and a timeframe that it should recur between. This can be like a cron job where you can get very specific, down to it should happen on the 5th our of the 2nd day of each month. Or you can KISS with simple Minute/Hour/Day type spans broken down.
- Tokens then are a parameter on a URL endpoint. This can be requested with either GET or POST.
- Users can then request to the endpoint in their scripts. And the application will track whether or not it has received an update in the specified timeframe. If it has, all is good. If not, alert the user (email or in-dash notification) that the heartbeat isn’t happening.
Of course, dealing with time is much trickier than writing about the feature. But in essence this is the fundamentals of what is needed. If provided it could help sys admins and developers keep a much better eye on their internals more easily.