We have a requirement where we need to capture user actions which takes more than 10seconds in dynatrace managed.
This was quite easily achievable in dynatrace appmon by defining a threshold in measure but not sure how to get this data in dynatrace managed.
Answer by Suraj G. ·
I've used below query to pull >= 10 seconds user action duration. Please have a look and let me know if this would fulfill my requirement.
SELECT useraction.application, count(useraction.name) as UserActionCount FROM usersession WHERE userType = "REAL_USER" AND useraction.duration >= 10000 GROUP BY useraction.application ORDER BY useraction.application
Answer by Julius L. ·
If you need to display/chart user actions taking longer than 10s, you can do that using USQL or using custom chart. But for custom chart you need to have those actions defined as key user action.
With USQL you will can get a "session oriented" view, with custom chart only an "application oriented" view.
Answer by Sebastian K. ·
You can define thresholds in anomaly detection settings for application:
You can set static thresholds here and when action duration will be longer than 10s, problem will be raised in dynatrace.
It’s not possible for filtering custom chart just to display user actions longer than 10s. There is no filtering option there. But you can make it using USQL tile: