<?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: API Request, disappearance of data in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/API-Request-disappearance-of-data/m-p/113611#M647</link>
    <description>&lt;P&gt;Did you set the startTimestamp and endTimestamp appropriately to avoid the default of the current time minus 2 hours being used?&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Feb 2019 17:11:33 GMT</pubDate>
    <dc:creator>dave_mauney</dc:creator>
    <dc:date>2019-02-13T17:11:33Z</dc:date>
    <item>
      <title>API Request, disappearance of data</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-Request-disappearance-of-data/m-p/113610#M646</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I have a question, did you know why my request didn't return any data after few hours after end of an error? Here startDate is equal to the Timestamp in the begin of a specific error and endDate is the end of this specific error, applicationID is the ID of application receive with endDate and startDate when we interrogate Problem API . If data have a long duration of the lifetime, why evening I can't get information of impact of a specific error which had takes place the morning of same date?&lt;/P&gt;
&lt;P&gt;Request :&lt;/P&gt;
&lt;P&gt;SELECT count(*) as count, userAction.name as name, userAction.targetUrl as targetURL, applicationType, matchingConversionGoals , bounce, userAction.apdexCategory AS apdex&lt;/P&gt;
&lt;P&gt;FROM userSession&lt;/P&gt;
&lt;P&gt;WHERE totalErrorCount &amp;gt; 0 and userType = "REAL_USER"&lt;/P&gt;
&lt;P&gt;AND userId = null&lt;/P&gt;
&lt;P&gt;AND ((startTime &amp;lt;= " + startDate + " AND endTime &amp;gt;= " + endDate + ")&lt;/P&gt;
&lt;P&gt;OR (startTime &amp;lt;= " + startDate + " AND endTime &amp;lt;= " + endDate + ")&lt;/P&gt;
&lt;P&gt;OR (startTime &amp;lt;= " + endDate + " AND startTime &amp;gt;= " + startDate + " AND endTime &amp;gt;= " + endDate + ")&lt;/P&gt;
&lt;P&gt;OR (startTime &amp;lt;= " + endDate + " AND startTime &amp;gt;= " + startDate + " AND endTime &amp;gt;= "+ startDate + " AND endTime &amp;lt;= "+ endDate +"))&lt;/P&gt;
&lt;P&gt;AND userAction.internalApplicationId=\" " + applicationID + " \"&lt;/P&gt;
&lt;P&gt;GROUP BY userAction.name, userAction.targetUrl, applicationType, matchingConversionGoals, bounce, userAction.apdexCategory&lt;/P&gt;
&lt;P&gt;ORDER BY count(*) desc&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Bastien T.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 13:52:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-Request-disappearance-of-data/m-p/113610#M646</guid>
      <dc:creator>bastien_tebbani</dc:creator>
      <dc:date>2021-05-25T13:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: API Request, disappearance of data</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-Request-disappearance-of-data/m-p/113611#M647</link>
      <description>&lt;P&gt;Did you set the startTimestamp and endTimestamp appropriately to avoid the default of the current time minus 2 hours being used?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Feb 2019 17:11:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-Request-disappearance-of-data/m-p/113611#M647</guid>
      <dc:creator>dave_mauney</dc:creator>
      <dc:date>2019-02-13T17:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: API Request, disappearance of data</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-Request-disappearance-of-data/m-p/113612#M648</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;In my app you can choose an interval to check every errors that may have taken place during this time slot. &lt;BR /&gt;You choose one specific error afterwards. The app interrogates Dynatrace API to find startTime and endTime of this error. I use both of these values to set startTimestamp and endTimestamp variables.&lt;/P&gt;&lt;P&gt;My question is : Why when I interrogate Dynatrace API for a specific error with specific startTimestamp and endTimestamp I "lose" userSession impacted after a certain amount of time ? For example, I may have 500 userSession impacted at 10 am, 300 at 2pm and 0 after 6pm.&lt;BR /&gt;If I'm not wrong, in my previous example, at 2pm I should have a number of userSession impacted greater than or equals to 500 because I already received 500 at 10 am.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards, &lt;/P&gt;&lt;P&gt;Bastien T.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Feb 2019 09:14:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-Request-disappearance-of-data/m-p/113612#M648</guid>
      <dc:creator>bastien_tebbani</dc:creator>
      <dc:date>2019-02-14T09:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: API Request, disappearance of data</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-Request-disappearance-of-data/m-p/113613#M649</link>
      <description>&lt;P&gt;I would try setting the startTimestamp to midnight of the current date and set the endTimestamp to "now" to see if that helps.  I think your window might be too small. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Feb 2019 17:11:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-Request-disappearance-of-data/m-p/113613#M649</guid>
      <dc:creator>dave_mauney</dc:creator>
      <dc:date>2019-02-14T17:11:43Z</dc:date>
    </item>
  </channel>
</rss>

