I have a controller action method in .NET Web API where at the beginning of method there's a log statement that simply logs Started which means that the execution has started.
Then, just before returning the response, there's another log statement that logs Finished which means that execution has completed.
Now, I want to setup a Sumo Logic notification alert if the time difference between the two log events exceeds a specific number e.g. 10 seconds.
Basically, what I want to achieve from this is that if my API endpoint takes time more than a specific duration to send response, I want to get notified.