Is there any alert API to get an alert in purecloud when Edge' onlineStatus and healthStatus have changed?
Note that I want to use '/api/v2/telephony/providers/edges/{edgeId}' to get onlineStaus and healthStatus metrics.
Use case: we want to get alert whenever Edges have disconnected or unhealthy so that we can respond to the outage/failure immediately.
I believe one way of doing that is to create a cronjob to run a script to check the edge status (using api) and trigger your alert (email) or something else
If your organization (or your client) already has relatively recent alerting platform it will mostly likely have support to REST API probes. I suggest you create an Oauth client just for that purpose. It's safer (because you can scope it just for your purpose) and will help you monitor if the polling is affecting your api usage quotas.