<?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: Setting time frame for USQL query in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-time-frame-for-USQL-query/m-p/253495#M6191</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/79002"&gt;@fumax&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I thnik there is not such API.&lt;/P&gt;&lt;P&gt;You can only use the API which uses USQL.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_0-1723755573573.png" style="width: 775px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21824i63D92CF841532A5A/image-dimensions/775x153?v=v2" width="775" height="153" role="button" title="Mizs_0-1723755573573.png" alt="Mizs_0-1723755573573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mizső&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2024 21:00:23 GMT</pubDate>
    <dc:creator>Mizső</dc:creator>
    <dc:date>2024-08-15T21:00:23Z</dc:date>
    <item>
      <title>Setting time frame for USQL query</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-time-frame-for-USQL-query/m-p/253325#M6188</link>
      <description>&lt;P&gt;I want to fetch all the xhr actions inside a web application. I am using following usql query(and sending it as a param in GET &lt;SPAN&gt;/api/v1/userSessionQueryLanguage/table&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;SELECT useraction.name, COUNT(*) AS action_count FROM usersession WHERE useraction.application = 'Temperstack-Local' AND useraction.type = 'Xhr' AND useraction.startTime &amp;gt;= $NOW - DURATION("1d") GROUP BY useraction.name ORDER BY action_count DESC&lt;BR /&gt;&lt;BR /&gt;Where I am facing issue is getting result based on timeframe.&lt;BR /&gt;Even if I use:&amp;nbsp;useraction.startTime &amp;gt;= 'yyyy-mm-dd', it won't work.&lt;BR /&gt;What works is selecting the desired timeframe in the dynatrace UI.&lt;BR /&gt;What exactly am I doing wrong?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 12:45:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-time-frame-for-USQL-query/m-p/253325#M6188</guid>
      <dc:creator>fumax</dc:creator>
      <dc:date>2024-08-21T12:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Setting time frame for USQL query</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-time-frame-for-USQL-query/m-p/253344#M6189</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/79002"&gt;@fumax&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have tired many options without any success. Maybe our synthax is woring.&lt;/P&gt;&lt;P&gt;This option works only form me (becuase $NOW $TIME_FRAME_START are time variables) and&amp;nbsp; but I think it will not a solution for you which is similar to $NOW:&lt;/P&gt;&lt;P&gt;SELECT useraction.name, COUNT(*) AS action_count FROM usersession WHERE ((useraction.application='Phoenix' OR userevent.application='Phoenix' OR usererror.application='Phoenix')) AND useraction.startTime &amp;gt;=$TIME_FRAME_START - DURATION("1d") GROUP BY useraction.name&lt;/P&gt;&lt;P&gt;Next oprion was the unix time, I have not received any error message (because it a numeric number) but did not work...&lt;/P&gt;&lt;P&gt;SELECT useraction.name, COUNT(*) AS action_count FROM usersession WHERE ((useraction.application='Phoenix' OR userevent.application='Phoenix' OR usererror.application='Phoenix')) AND useraction.startTime &amp;gt;=1723327200 - DURATION("1d") GROUP BY useraction.name&lt;/P&gt;&lt;P&gt;Third option was where the error message clear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_0-1723584299773.png" style="width: 1295px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21760i3AFDA644934A5CEE/image-dimensions/1295x82?v=v2" width="1295" height="82" role="button" title="Mizs_0-1723584299773.png" alt="Mizs_0-1723584299773.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Maybe other community members have any other ideas.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mizső&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 21:26:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-time-frame-for-USQL-query/m-p/253344#M6189</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2024-08-13T21:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting time frame for USQL query</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-time-frame-for-USQL-query/m-p/253354#M6190</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47783"&gt;@Mizső&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for your valuable effort and response.&lt;BR /&gt;&lt;BR /&gt;Do you know of any direct api to fetch actions from a web app instead of usql query?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 04:16:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-time-frame-for-USQL-query/m-p/253354#M6190</guid>
      <dc:creator>fumax</dc:creator>
      <dc:date>2024-08-14T04:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting time frame for USQL query</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-time-frame-for-USQL-query/m-p/253495#M6191</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/79002"&gt;@fumax&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I thnik there is not such API.&lt;/P&gt;&lt;P&gt;You can only use the API which uses USQL.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_0-1723755573573.png" style="width: 775px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21824i63D92CF841532A5A/image-dimensions/775x153?v=v2" width="775" height="153" role="button" title="Mizs_0-1723755573573.png" alt="Mizs_0-1723755573573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mizső&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 21:00:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Setting-time-frame-for-USQL-query/m-p/253495#M6191</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2024-08-15T21:00:23Z</dc:date>
    </item>
  </channel>
</rss>

