Wan port interface monitor

Hi, Is it possible to monitor the wan interface of the firewall? my firewall is fortinet/fortigate 100d.
what i want to do is that if the wan port is down or doesn’t receive any packets, it will notify or alert me.

Alert rule like this

%ports.ifName = "portname" && %ports.ifOperStatus = "down" && %ports.ifOperStatus_prev = "up" && %macros.device_up = "1"
and maybe if you like
&& devices.hostname = "hostname"

Will try this, will update if it’s working, thank you