04 Aug 2021 03:47 PM
Is there a way I can see all user actions via the API? Poked around the docs a bit but didn't see anything
Solved! Go to Solution.
05 Aug 2021 10:11 AM
Hi,
I believe the best way to get all user actions (and any RUM info) would be the USQL API endpoint. USQL is a SQL-like query language that lets you get all the info related to your user sessions.
Here is USQL documentation: https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/how-to-use-real-use...
And here's the API documentation for USQL: https://www.dynatrace.com/support/help/dynatrace-api/environment-api/user-sessions/
Regards,
Álvaro
05 Aug 2021 11:49 AM
Yes, it's quite easy, but you will have to do a script with an USQL "SELECT *" query.
Please beware that limits apply, so you have to be particularly careful so you don't miss data.
05 Aug 2021 01:35 PM
Here is a USQL statement that can achieve grabbing the user actions for you:
select name, domain, count(name) as "Count",sum(duration) as "Total time", sum(javascriptErrorCount)FROM useraction group by name, domain ORDER BY sum(duration) DESC
I actually just ran into this myself yesterday, props to James Kitson for building this query!