20 Oct 2022 02:47 PM
hi Team, i am looking for an API which will provide the problems link of an monitor.
Solved! Go to Solution.
20 Oct 2022 03:12 PM
Hi @Balamurugesh,
Maybe I missunderstand you. I have not found the problem URL in the enviroment v2 problem api.
I think you can have it in the problem notification integration if this way is OK with you (eg. with custom integration).
I hope it helps. Have a nice day.
Best regards,
Mizső
20 Oct 2022 07:13 PM
You need to get the list of problems using /api/v2/problems call and extract the problem ID. Use the "text" problem selector criteria to search for problems with your monitor title. The URL to your problem is:
Managed:
https://{your-domain}/e/{your-environment-id}/#problems/problemdetails;pid={ProblemID}
SaaS
https://{your-environment-id}.live.dynatrace.com/#problems/problemdetails;pid={ProblemID}
20 Oct 2022 08:43 PM
Hi @mgome,
Clean and simple solution. Composition of URL is a great idea. Address bar always contains relevant ids. Nice job!
Best regards,
Mizső