How to Alert on multiple changes within a timeframe

I’d like to be able to create an alarm based on the number of changes in a series within a period of time. My use case is monitoring the number of customer edge devices connected to our network. Ideally this number will not change, but power cycles or other transient issues can cause a device to go offline occasionally. I don’t care to alarm on someone bumping a power cord.

What I do case about is if they are bouncing over and over. So if the number of customer edge devices changes 5 times in 10 minutes, that’s something to look at.

Is this possible within grafana presently?