I have a http request. https://server:port//get_somthing?x=10
.
Assume that it is expected to respond within 1 second. I notice this in newrelic that, sometimes it takes 1.5, 2 seconds. I would like to look into the logs and investigate whenever it takes more time than 1 second. So I want to set up alerts on a slack channel whenever request takes more time than the prescribed time.
How to achieve this?? I am using newrelic's java agent.