I have a requirement to pass the numeric ID returned from the DTRUM.enterAction method that is being called in a logon web page provided by one of our authentication systems to a web page of another system. Since there is no way for us to pass the value via a cookie, JS variable etc. without making extensive system changes, I am hoping that use can be made of the new User Session Properties features of version 164. Whether this is going to be possible, however, isn’t clear to me from the documentation.
I can see that DTRUM provides a sendSessionProperties method that, I suspect, could be used to add the numeric ID to the user session (?), but I am not clear whether Dynatrace provides any mechanism that would allow the JS in our destination web page to retrieve the value. Looking at the DTRUM documentation I don’t see any such capability. Can anyone clarify whether we can achieve what we want using a User Session variable? What I had hoped to do is illustrated by the following:
// Step 1 – In web page of the user authentication system call dtrum.enterAction to start a custom user action
LogonTimerAction = dtrum.enterAction('Logon Time', 'LogonTimer', null, 'info');
// Step 2 – In web page of the user authentication, put the return value of the above API call into a User Session Property via the sendSessionProperties API (?)
// Step 3 – In the destination systems web page, retrieve the variable from the user session attribute.
// Step 4 – In the destination systems web page, pass the variable to dtrum.leaveAction to close the action and obtain its timing.
Answer by Julius L. ·
As far as I know, there is no option to retrieve any user session property values from the dtrum js api. User session properties can be only set in dtrum. The architecture of beacons is "send only". Session data are processed on the server.
I'm afraid you will have to find another solution using cookie seems to be a straightforward idea.
Values of user session properties can be only used within session analysis (you can filter on them or display them). Also, they can be used in USQL queries as well.
More on this topic in this blog post.
Check what has changed for SaaS, Managed, and Dynatrace API in version 170.
See release notes
Join our hands-on introduction to Dynatrace's brand new IBM System z Mainframe Support!
Wednesday, June 12, 2019
Learn how to set business hours per application, manage report users from a single dashboard, use the configuration REST API, and many more!
Wednesday, June 12, 2019