Perspective - Pinging external IP

Hi, anyone know how to ping an external IP from perspective? We are trying to monitor internet connectivity by intermittently pinging (google). In the case that it fails it would return a 0 or 1 which would trigger an alarm.

I tried using the “Device Status” from Ignition Exchange but it only seems to work for pinging internal IPs.

I tried pinging external IPs from the script console which works fine:
print ping(“”)
This returns “True”. Just not sure how to integrate that into perspective.

Let me know if you have something in mind!

All scripts run from a Perspective context will be executing on the Gateway, so really you would only be able to tell if the Gateway is able to connect to Google.