05 Oct 2022 03:39 PM
hi, is it possible to get the number of users accessing a particular monitor/application in a month from RUM aPI?
Solved! Go to Solution.
05 Oct 2022 07:24 PM
It can be a solution. Try this curl (API token is required with DTAQLAccess (User sessions) scope):
"curl -X GET "https://your_tenant/api/v1/userSessionQueryLanguage/table?query=SELECT%20COUNT%28DISTINCT%20internal..." -H "accept: application/json" -H "Authorization: Api-Token dt01.your_access_token""
This is the USQL example:
SELECT COUNT(DISTINCT internalUserId) FROM usersession WHERE ((useraction.application='your_application_name' OR userevent.application='your_application_name' OR usererror.application='your_application_name')) AND startTime >= $NOW - DURATION("1M") AND endTime <= $NOW
If you need other time frame selection please check the documnetation. Custom queries, segmentation, and aggregation of session data | Dynatrace Docs
I hope it helps.
Br, Mizső