<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic User count from RUM API in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/User-count-from-RUM-API/m-p/195921#M2086</link>
    <description>&lt;P&gt;hi, is it possible to get the number of users accessing a particular monitor/application in a month from RUM aPI?&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 14:39:08 GMT</pubDate>
    <dc:creator>Balamurugesh</dc:creator>
    <dc:date>2022-10-05T14:39:08Z</dc:date>
    <item>
      <title>User count from RUM API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/User-count-from-RUM-API/m-p/195921#M2086</link>
      <description>&lt;P&gt;hi, is it possible to get the number of users accessing a particular monitor/application in a month from RUM aPI?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 14:39:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/User-count-from-RUM-API/m-p/195921#M2086</guid>
      <dc:creator>Balamurugesh</dc:creator>
      <dc:date>2022-10-05T14:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: User count from RUM API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/User-count-from-RUM-API/m-p/195942#M2087</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51242"&gt;@Balamurugesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can be a solution. Try this curl (API token is required with DTAQLAccess&lt;SPAN&gt;&amp;nbsp;(User sessions) scope)&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"curl -X GET "&lt;A href="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&amp;amp;addDeepLinkFields=false&amp;amp;explain=false" target="_blank" rel="noopener"&gt;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&amp;amp;addDeepLinkFields=false&amp;amp;explain=false&lt;/A&gt;" -H "accept: application/json" -H "Authorization: Api-Token dt01.your_access_token""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the USQL example:&lt;/P&gt;&lt;P&gt;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 &amp;gt;= $NOW - DURATION("1M") AND endTime &amp;lt;= $NOW&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need other time frame selection please check the documnetation.&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/how-to-use-real-user-monitoring/cross-application-user-session-analytics/custom-queries-segmentation-and-aggregation-of-session-data#query-relative-timeframe" target="_blank" rel="noopener"&gt;Custom queries, segmentation, and aggregation of session data | Dynatrace Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br, Mizső&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 18:24:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/User-count-from-RUM-API/m-p/195942#M2087</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2022-10-05T18:24:31Z</dc:date>
    </item>
  </channel>
</rss>

