📜 ⬆️ ⬇️

Configure push notifications for your service

In this publication, we will look at an example of integrating the PushAll push notification subscription platform with the HostTracker site monitoring service . This information will be useful to those who need to quickly set up push for their services, and there is no desire to reinvent the wheel.



What is the matter?


The question is rather rhetorical. Earlier we published a detailed overview of the alert methods that HostTracker uses when fixing errors on client sites. It contained a link to specific studies that seemed to tell us that push notifications are not so relevant in our case. However, customer inquiries first. In addition, there was an easy way to set them up.

To each - on Push-in


So, thanks to the PushAll service, it is possible to easily fasten a push to anything. Consider our example. We have kindly created a microservice that accepts a POST request and sends push notifications. Well, then there is a matter of technology. In our case, you need to send a request to the URL:
')
https://pushall.ru/channels/host-tracker/callback.php?uid=47920&key=0cfd2f05b7442aeb988a326f7adadb06

we already have POST request templates for different cases (crash and recovery of sites):



Below you can also make a test request or put a delay in notifications if they are needed only for long-term site crashes.

That is, if you need to receive notifications about the status of sites (uptime, crashes, domain or certificate updates, getting into Roskomnadzor lists, etc.) by Push - then three clicks are done. If you need to fasten a push to your service - PushAll will also give you this opportunity. To three clicks and ready.


And, by the way, this is another example of how HostTracker is evolving due to client requests. It is unlikely that someone knows better than the clients themselves what they need. Therefore, if you have any questions, suggestions or criticism - always happy!

Source: https://habr.com/ru/post/334038/


All Articles