Required Simple Alert for Port UP/Down

hello,
i have just install librenms in my linuxmint everything is ok ,
i just need help in Alert
i want aler for my device port goes down and up in simple one line
eg device 192.168.1.100
port 3 down or up

https://docs.librenms.org/Alerting/Rules/#examples

I have integrated LibreNMS to Wavefront.

Is there a way I can see Device status there? I am unable to get the below via librenms metric.

  • Device goes down: devices.status != 1
  • Any port changes: ports.ifOperStatus != 'up'