How many days since an index was updated

Here’s a little script a threw together the other day to monitor how long it’s been since an @algolia index was lat updated. I thought it might be useful to others.

Its not fix time or day, Its up to him that what time they index

The use case was monitoring automated processes for index content refresh – a scheduled pipeline or rebuilding indices as part of a CI/CD process. You could use a script like this to send a notification if you go past a certain threshold without a refresh.

That’s definitely more challenging if you don’t control when the index is refreshed, but still might be useful for monitoring.