Ddm monitoring on optical ports

Hello!
I would like to implement Monitoring of the ddm signal level on the optical ports of the switches. Eltex equipment. I know oid.
In theory, the function is simple [oid (“1.3.6.1.4.1.89.90.1.2.1.3.XX.8”) / 100] dBm, where XX is the port (interface) index. How do I get the Dude to supply the ports index when creating a link?

It’s a pity no one answered …
I found a way to implement this, I will write a tutu, suddenly it will help someone.

oid(concatenate(“1.3.6.1.4.1.89.90.1.2.1.3.”,link_index(),“.9”))/100