29 Aug 2022 10:12 PM - last edited on 27 Mar 2023 10:24 AM by MaciejNeumann
hi, I am looking for an API which will provide monthwise RUM details like "apdexCategory",
Solved! Go to Solution.
04 Sep 2022 02:21 PM
You should use the startTimestamp & endTimestamp parameters. Please check it out at:
https://www.dynatrace.com/support/help/dynatrace-api/environment-api/rum/user-sessions/table
19 Sep 2022 06:20 PM
hi Antonio,
Can you please share the sample request? i am not sure about the parmaters to be passed to get monthwise details.
Thanks,
Dingu
19 Sep 2022 07:46 PM - last edited on 27 Mar 2023 10:24 AM by MaciejNeumann
You can do it by something like the following line of curl. Please change abc12345 for your tenant and DYNATRACE.TOKEN for the auth token. As you can see, you will have to give the corresponding UTC time in milliseconds:
curl -X GET "https://abc12345.live.dynatrace.com/api/v1/userSessionQueryLanguage/table?query=select%20apdexcategory%2C%20count%28%2A%29%20from%20useraction%20group%20by%20apdexcategory&startTimestamp=1659315600000&endTimestamp=1661994000000&addDeepLinkFields=false&explain=false " -H "accept: application/json" -H "Authorization: Api-Token DYNATRACE.TOKEN"
It's easier if you test it in the UI first. Change abd12345 for your tenant and give it a try:
https://abc12345.live.dynatrace.com/rest-api-doc/index.jsp?urls.primaryName=Environment%20API%20v1#/RUM%20-%20User%20sessions/getDTAQLResultAsTable
22 Sep 2022 03:03 PM
thanks @AntonioSousa for the details. i am looking for a field which provides availability % of monitors or application from RUM API. I tried querying usersession and useraction tables but could not figure the field. Can you provide info on this?
22 Sep 2022 07:59 PM
Please notice that availability might be very difficult to get from RUM data, and thus USQL. Better done with synthetic monitoring, which I believe are the monitors you are referring to. For these, there is a different synthetic API, that you might use.