Alert template recovery: how to get actual value instead of alerted one

I would like to get the actual value of port utilization.
It seems to be able to get with the following code. It’s OK?

Input : {{ \App\Models\Port::find($value['port_id'])->ifInOctets_rate *8 / $value['ifSpeed'] *100 }} %
Output: {{ \App\Models\Port::find($value['port_id'])->ifOutOctets_rate *8 / $value['ifSpeed'] *100 }} %