06 Mar 2019 06:55 AM - last edited on 12 Mar 2021 09:16 AM by laima_vainina
Hello,
When trying to get all synthetic monitors via API: /api/v1/synthetic/monitors
only Browser type synthetic monitors are being returned, and none else. There are no HTTP monitors being returned in the API call even though we have some configured and are visible via the web UI.
Is this behavior on purpose?
Thanks.
Solved! Go to Solution.
06 Mar 2019 07:26 AM
I am not aware if it meant to return on browser monitor, but as per my understanding it should return you with HTTP monitor.
Can you try once to get specified monitor - You can pass monitorID of your http monitor to see what it results into -
Also, I checked the POST API, from which we can create a monitor - From POST api we can also create an HTTP monitor.
Post API
06 Mar 2019 07:39 AM
Thanks @Akshay M.
Using the Web UI, I selected one HTTP monitor and one Browser monitor, their URLs were respectively:
HTTP Monitor: https://{environment-id}.live.dynatrace.com/#httpcheckdetails;id=HTTP_CHECK-{random-string};gtf=l_2_HOURS;gf=all
Browser Monitor: https://{environment-id}.live.dynatrace.com/#monitordetail;webcheckId=SYNTHETIC_TEST-{random-string};gtf=l_2_HOURS;gf=all
So I obtained two monitorIds:
I made two API calls to:
{"error":{"code":400,"message":"Unsupported monitor type found: HTTP_CHECK"}}
06 Mar 2019 08:22 AM
Hi @Harpreet D.,
HTTP monitors are not yet supported via the API.
We will release that functionality with the next update of Dynatrace. (164)
Kind regards, Philipp
06 Mar 2019 08:28 AM
Thank you @Philipp K. .
On that note, is there a planned date for the release of the next update, 1.164 ?
22 Oct 2020 04:23 PM
Hi Philipp,
We are running managed 1.202, but I cannot see this functionality?