Is there a way I can see all user actions via the API? Poked around the docs a bit but didn’t see anything
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-user-monitoring/cross-application-user-session-analytics/custom-queries-segmentation-and-aggregation-of-session-data
And here’s the API documentation for USQL: User sessions API — Dynatrace Docs
Regards,
Álvaro
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.
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!