Is there a way to set up a custom alert for slow transactions?

Is there a way to set up a custom alert for slow transactions?

For e.g: Send an alert if slow transactions are > certain threshold.

Yes, is possible.

Look this

Documentation page