Yes I was thinking about it. I suppose DT is not able to resolve public domain, you can try as well 127.0.0.1 but I don’t know if this work. It’s only idea.
But there is no option to execute second request in synthetic monitor if first one has failed. You have option to use post execution script in JS but I don’t think you can place there HTTP request because it may be limited. I rather suggest custom WebHook integration for Problems raised from those synthetic monitors. You will have to create simple nodejs/python/php script that will receive payload with problem from DT and then send event to DT via API.
I haven’t tried this myself but you may be able to achieve this by using JavaScript events. Through the use of the JavaScript API you should have the ability to create a more dynamic workflow. I’ll provide a link with documentation on this below.
If condition in Request 1 is failed then then I will call skip request so that it wont execute the next request i.e event API step/request2 (post) and that the trick I’m planning to implement. (Let me know your thoughts on this)
Well, webhook integration could also be a workaround I will check on that too.
Well, when I tried the same in our production environment it worked like a charm.
It might be because, I was testing the test problem generation using my local machine which has active gate along with one agent. Although I’m not sure if one agent is causing this issue or not but yes it works.
Drafting my use case here, could be helpful for other if they have such similar requirements.
I was generating test problem generation because I have to add that as a step/request under one HTTP monitor.
The logic is, Request 1 will have some condition and Request 2 will have post request of event API to generate a problem.
If condition in Request 1 is true then Request 2 will be skipped else Request 2 will trigger a Problem notification. This generated problem notification will have some extra details which we need to pass to ticketing tool to cut a tickets.