<?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 Re: How can DynaTrace API be used to calculate the total duration of a user session? in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/How-can-DynaTrace-API-be-used-to-calculate-the-total-duration-of/m-p/116989#M1622</link>
    <description>&lt;P&gt;This API is not intended to be used to serve as export of all individual sessions. You should use session export for that. It should be used to retrieve aggregated values or individual sessions.&lt;BR /&gt;&lt;BR /&gt;Not sure what you are trying to accomplish, but you can use aggregation functions such as avg and group by clause to get meaningul output. For example - get average session duration by country and city:&lt;/P&gt;&lt;PRE&gt;select avg(duration),city,country from usersession group by country,city&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 15 Apr 2019 18:53:03 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2019-04-15T18:53:03Z</dc:date>
    <item>
      <title>How can DynaTrace API be used to calculate the total duration of a user session?</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/How-can-DynaTrace-API-be-used-to-calculate-the-total-duration-of/m-p/116986#M1619</link>
      <description>&lt;P&gt;I have been trying the following DynaTrace user session query:&lt;/P&gt;&lt;P&gt;Select userid, usersessionid from usersession&lt;/P&gt;&lt;P&gt;adding duration to the above query retrieves the duration for the visually completeness of the useraction.&lt;/P&gt;&lt;P&gt;May be we can fetch the timestamp for the first useraction in the session and subtract it from the last useraction of the session.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Apr 2019 10:46:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/How-can-DynaTrace-API-be-used-to-calculate-the-total-duration-of/m-p/116986#M1619</guid>
      <dc:creator>dparkar</dc:creator>
      <dc:date>2019-04-15T10:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can DynaTrace API be used to calculate the total duration of a user session?</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/How-can-DynaTrace-API-be-used-to-calculate-the-total-duration-of/m-p/116987#M1620</link>
      <description>&lt;P&gt;Why are you not using the duration field for usersession? &lt;BR /&gt;&lt;BR /&gt;You should query the usersession.duration, not the useraction.duration (that will be the selected key metric for user actions).&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Apr 2019 11:05:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/How-can-DynaTrace-API-be-used-to-calculate-the-total-duration-of/m-p/116987#M1620</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2019-04-15T11:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can DynaTrace API be used to calculate the total duration of a user session?</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/How-can-DynaTrace-API-be-used-to-calculate-the-total-duration-of/m-p/116988#M1621</link>
      <description>&lt;P&gt;Thanks Julius that helped&lt;/P&gt;&lt;P&gt;But I can only retrieve 1000 rows&lt;/P&gt;&lt;P&gt;Tried adding LIMIT 10000 to the query&lt;/P&gt;&lt;P&gt;Doesn't help?&lt;/P&gt;&lt;P&gt;Can you please advise?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Apr 2019 16:52:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/How-can-DynaTrace-API-be-used-to-calculate-the-total-duration-of/m-p/116988#M1621</guid>
      <dc:creator>dparkar</dc:creator>
      <dc:date>2019-04-15T16:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can DynaTrace API be used to calculate the total duration of a user session?</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/How-can-DynaTrace-API-be-used-to-calculate-the-total-duration-of/m-p/116989#M1622</link>
      <description>&lt;P&gt;This API is not intended to be used to serve as export of all individual sessions. You should use session export for that. It should be used to retrieve aggregated values or individual sessions.&lt;BR /&gt;&lt;BR /&gt;Not sure what you are trying to accomplish, but you can use aggregation functions such as avg and group by clause to get meaningul output. For example - get average session duration by country and city:&lt;/P&gt;&lt;PRE&gt;select avg(duration),city,country from usersession group by country,city&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Apr 2019 18:53:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/How-can-DynaTrace-API-be-used-to-calculate-the-total-duration-of/m-p/116989#M1622</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2019-04-15T18:53:03Z</dc:date>
    </item>
  </channel>
</rss>

