Customised Alerting for individual APIs

Hey Everyone. I have latency logs coming to opensearch dashboard from 30+ Apis. I have to setup alerting based on the latency of the APIs called. As you can imagine a single threshold for all APIs is meaningless and i want to create custom threshold and alerting for each API. Can someone tell if its possible. And if so how to do it.

The problem arises because i can only seem to do alerting based on one single latency value for all APIs instead of specific values for specific APIs.