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

User count from RUM API

Balamurugesh
Guide

hi, is it possible to get the number of users accessing a particular monitor/application in a month from RUM aPI?

1 REPLY 1

Mizső
DynaMight Leader
DynaMight Leader

Hi @Balamurugesh 

 

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ő

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

Featured Posts