hi, is it possible to get the number of users accessing a particular monitor/application in a month from RUM aPI?
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%20internalUserId%29%20FROM%20usersession%20WHERE%20%28%28useraction.application%3D%27your_application_name%27%20OR%20userevent.application%3D%27your_application_name%27%20OR%20usererror.application%3D%27your_application_name%27%29%29%20AND%20startTime%20%3E%3D%20%24NOW%20-%20DURATION%28%221M%22%29%20AND%20endTime%20%3C%3D%20%24NOW&addDeepLinkFields=false&explain=falseā -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Å