Link Packet Loss

Hi, I want to be notified when my link is at 5% Packet Loss during 1minute.
Now I have this :

macros.packet_loss_5m >= 10 AND macros.device_up = 1

But it is possible to specify a link packet loss like this one :
librenms

Thank’s