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

Synthetic API does not give aggregated availability

DynaMight Guru
DynaMight Guru

Synthetic API gives availability by location, but not the aggregated value. I think the following image explains the idea:

Antonio Sousa

It would be great to get this!

Dynatrace Pro
Dynatrace Pro

Hi Antonio, did you have a look at the metrics API? I think this should be possible with the merge transformation. See for details.

Kind regards, Philipp

Yes, you are right!. Just changed my script and it's not splitting the value any more.

Now, this is not an RFE anymore. Can this be changed to a question?

Antonio Sousa

Done 😉

If you have any questions about the Community, you can contact me at

@Antonio, Could you please share the sample script which worked for you to get the above details?

Also, am looking to get the synthetics= monitors availabaility based on months/weeks/year. Can you sahre sample curl request for the same?



The curl is the one I referenced in my post on 19 May 2020. To do what I was asking for, you have to add the merge transformation, as referenced in the link that Philipp_Kastner referenced.

Antonio Sousa


@Antonio S. , Could you help me fetching synthetic monitor availability and response time using API method ? where shall I find the list of metric selector to fetch the above 2 metrics ?

I mainly use v2 of the API:

One example would be like the following, which is for yesterday's values (mind you have to put your environment as yyyyyy and your API as zzzzzzzzzzzzzzzzzzzzzzzzz):

curl -X GET "" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token zzzzzzzzzzzzzzzzzzzzzzzzz"

Antonio Sousa

Thank you so much @Antonio S. This is really helpful.

How to get the details of a particular synthetic , by executing the above query we are getting all the synthetic availability and also only the latest availaility


Featured Posts