cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

rest command to check all the Synthetic metrics that are gathered.

Vikram_Mawinka1
Newcomer

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.


Please suggest.

1 REPLY 1

Anonymous
Not applicable

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:

monitors
0
name"Name of Synthetic"
entityId"SYNTHETIC_TEST-ID"
type"BROWSER"
enabledfalse


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.

Cheers.

Featured Posts