cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What entity does com.dynatrace.builtin:appmethod.useractionduration require?

callum
Participant

What entity does com.dynatrace.builtin:appmethod.useractionduration require?

I've tried APPLICATION-METHOD-67A5C3629C900C6F and APPLICATION_METHOD-67A5C3629C900C6F but they both don't appear to work, causing a 400 error.

Am i using the correct entity?

3 REPLIES 3

Philipp_Kastner
Dynatrace Pro
Dynatrace Pro


Hi Callum,


in order to access the user action duration of a specific user action you first need to mark the user action as key user action. Only then Dynatrace stores timerseries data for this action which can be accessed via the API.



Example API queries


Returns data for a specific key user action



https://{id}.live.dynatrace.com/api/v1/timeseries/?Api-Token={token}timeseriesId=com.dynatrace.builtin:appmethod.useractionduration&relativeTime=6hours&entity=APPLICATION_METHOD-451F2D7A308CA66E&aggregationType=AVG


Returns data for all key user actions



https://{id}.live.dynatrace.com/api/v1/timeseries/?Api-Token={token}timeseriesId=com.dynatrace.builtin:appmethod.useractionduration&relativeTime=6hours&aggregationType=AVG


Kind regards, Philipp

callum
Participant

@Philipp K. How long will i need to wait for the data to be accessible? And is there a limit of how many user actions i can mark as a key action?

It should only take a couple of minutes depending on how much traffic the user action is receiving. There is no limit for key user actions.

Kind regards, Philipp

Featured Posts