Notify of latency only if > 10 customers are experiencing it

So I have the following probe:

Name: latency
Type: Function
Agent: default
Available: device_property(“FirstAddress”) <> “”
Error: if(array_element(ping(device_property(“FirstAddress”)), 0) < 80, “”, “High Latency”)
Value: array_element(ping(device_property(“FirstAddress”)),0)
Unit: ms
Rate: none

This alerts me if ping times to a device are larger than 80ms. I love this for monitoring latency on each tower. Right now I have the same probe running on the customer’s equipment to monitor latency from tower to customer. But I don’t want to get paged if just one customer’s latency goes up. I’d rather somehow have some code check to see if 10 or more customers off one tower have high latency, if so then notify. Is that possible?

All I want to know is if this is even possible and if so then help point me in the right direction. Please help.

This might be a bit late but I don’t think you can actually achieve what you want, the way you want.
I would perhaps approach this by determining if the latency is above 80ms for a given period then you have a bigger problem.
Any connection will go up and down, but you might want to only alert on a connection that has high latency for 10 mins for example, so X amount of probes before it tells you it is actually high

Just a thought..

Paul