There is a ask to create reports from the synthetic URL monitoring done in out env. So I checked DYT docs and tried executing the command
https://<URL>.live.dynatrace.com/.live.dynatrace.com/api/v1/synthetic/monitors it is returning value 200 but no output. is there any way I can input username and passwd because I suspect there is an auth failure but as the repose is returned I am getting 200.
Solved! Go to Solution.
First, if no token is being sent to get the info you should be getting a 401.
You need to validate with a token, as you suspect. You can add with ?Api-Token=TOKEN to the URL and info should show up.
Also, you edited the text of the hotlink but still show the real tenant id, I would remove the link and keep the text.
This will get all the synthetic test that you have created:
|name||"Name of Synthetic"|
You would not get the metrics, only the data of the setup tests.
If you want to know which metrics are being used by the synthetic, you could use the metric browser via UI:
And you can also do a Metric query via the entity or via the list of synthetic and loop through it.