Hey,
For the duration, it would look something like this:
fetch user.events
| filter dt.rum.user_type == "real_user"
| fields duration, dt.rum.user_type, view.name, view.url.full
| summarize avg(duration), by:{view.name, view.url.full}
That said, based on my own experience, the whole new RUM experience still has quite a few gaps and inconsistencies that make it difficult to use in many cases.
The data is also not live and can have significant delays. Sessions first need to end, and even then, the data can take up to 35 minutes to become available.
For example, if a normal user starts working at 08:30, works until 12:00, takes a break until 13:00, and then works until 17:00, I might only see their first actions from 08:30 around 12:35.
If they encounter an issue during their session, we would have to wait until they finish their session and then another ~35 minutes before we can investigate it. In the example above, that means potentially waiting until around 17:35 — or simply looking at the data the next day.
So for investigating issues with today’s sessions, the new RUM is currently not very practical.
For visually complete time, I haven’t been able to find a working metric myself.
documentInteractiveTime looks like it should correspond to performance.dom_interactive, but that one doesn’t seem to work for me. Maybe you’ll have more luck with it.
Note: page.groups doesn’t seem to exist anymore(or Can’t find them).
Also, keep in mind that any action naming rules you configured in Dynatrace settings won’t be available in the new RUM. To use action Naming rules/clean names you will need to do this in application source code.