<?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: Cannot access timeseries data via REST API getting error:  {&amp;quot;error&amp;quot;:{&amp;quot;code&amp;quot;:400,&amp;quot;message&amp;quot;:&amp;quot;The timeframe is missing.&amp;quot;}} in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69541#M289</link>
    <description>&lt;P&gt;Hey Eric,&lt;/P&gt;&lt;P&gt;The metric you are looking at does not accept the aggregation parameter. See the &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/timeseries/how-do-i-fetch-the-metrics-of-monitored-entities/?&amp;amp;_ga=2.119012874.2094012742.1526494845-132949890.1526494845#get-data-points-of-timeseries"&gt;doc &lt;/A&gt;on that. Please take that out and let me know if it works for you. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;NJ&lt;/P&gt;</description>
    <pubDate>Wed, 16 May 2018 19:08:27 GMT</pubDate>
    <dc:creator>nj_njoku</dc:creator>
    <dc:date>2018-05-16T19:08:27Z</dc:date>
    <item>
      <title>Cannot access timeseries data via REST API getting error:  {"error":{"code":400,"message":"The timeframe is missing."}}</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69538#M286</link>
      <description>&lt;P&gt;I am trying to access time series data using Powershell:&lt;/P&gt;
&lt;P&gt;$Uri = "https://&amp;lt;my_tenant&amp;gt;.live.dynatrace.com/api/v1/timeseries?timeseriesId=com.dynatrace.builtin:host.availability?relativeTime=hour?queryMode=total?aggregationType=avg"&lt;/P&gt;
&lt;P&gt;$headers = @{}&lt;/P&gt;
&lt;P&gt;$headers.Add("Authorization", "&amp;lt;my tenant token")&lt;/P&gt;
&lt;P&gt;$headers.Add("Content-Type", "application/json")&lt;/P&gt;
&lt;P&gt;$headers.Add("Method", "POST")&lt;/P&gt;
&lt;P&gt;Invoke-RestMethod -Headers $headers $Uri&lt;/P&gt;
&lt;P&gt;I get this error: Invoke-RestMethod : {"error":{"code":400,"message":"The timeframe is missing."}}&lt;/P&gt;
&lt;P&gt;I know it isn't an authorization issue since I can get other API URLs to work such as: "https://&amp;lt;my_tenant&amp;gt;.live.dynatrace.com/api/v1/entity/infrastructure/hosts"&lt;/P&gt;
&lt;P&gt;and "https://&amp;lt;my_tenant&amp;gt;.live.dynatrace.com/api/v1/timeseries" without any parameters.&lt;/P&gt;
&lt;P&gt;timeframe is also obviously in the URL :relativeTime=hour&lt;/P&gt;
&lt;P&gt;(I have tried week and day also with the same error)&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 13:50:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69538#M286</guid>
      <dc:creator>eric_schwartz</dc:creator>
      <dc:date>2021-05-25T13:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access timeseries data via REST API getting error:  {"error":{"code":400,"message":"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69539#M287</link>
      <description>&lt;P&gt;You have question marks between your parameters, I think you want ampersands '&amp;amp;'. Like this:&lt;/P&gt;
&lt;P data-unlink="true"&gt;https:// .&amp;nbsp; live.dynatrace.com/api/v1/timeseries?timeseriesId=com.dynatrace.builtin:host.availability&amp;amp;relativeTime=hour&amp;amp;queryMode=total&amp;amp;aggregationType=avg&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can refer to examples here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/timeseries/how-do-i-fetch-the-metrics-of-monitored-entities/#get-data-points-of-timeseries" target="_blank"&gt;https://www.dynatrace.com/support/help/dynatrace-a...&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 13:45:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69539#M287</guid>
      <dc:creator>JamesKitson</dc:creator>
      <dc:date>2023-05-29T13:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access timeseries data via REST API getting error:  {"error":{"code":400,"message":"The timeframe is missing."}}</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69540#M288</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.dynatrace.com/users/3513/view.html" nodeid="3513"&gt;@James K.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I got the same error when I changed the '?' to '&amp;amp;'.&lt;/P&gt;&lt;P&gt;I also tried providing startTimestap and endTimestamp instead of relativeTime, still received the same error.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 18:31:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69540#M288</guid>
      <dc:creator>eric_schwartz</dc:creator>
      <dc:date>2018-05-16T18:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access timeseries data via REST API getting error:  {"error":{"code":400,"message":"The timeframe is missing."}}</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69541#M289</link>
      <description>&lt;P&gt;Hey Eric,&lt;/P&gt;&lt;P&gt;The metric you are looking at does not accept the aggregation parameter. See the &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/timeseries/how-do-i-fetch-the-metrics-of-monitored-entities/?&amp;amp;_ga=2.119012874.2094012742.1526494845-132949890.1526494845#get-data-points-of-timeseries"&gt;doc &lt;/A&gt;on that. Please take that out and let me know if it works for you. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;NJ&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 19:08:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69541#M289</guid>
      <dc:creator>nj_njoku</dc:creator>
      <dc:date>2018-05-16T19:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access timeseries data via REST API getting error:  {"error":{"code":400,"message":"The timeframe is missing."}}</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69542#M290</link>
      <description>&lt;P&gt;NJ,&lt;/P&gt;&lt;P&gt;I got it to work by moving all of the needed URL parameters to a $Body variable and including that in the method Invocation: Invoke-RestMethod -Headers $headers $Uri -Body $Body&lt;/P&gt;&lt;P&gt;I was still getting the same error of ,"The timeframe is missing." after I removed the aggregation and mode parameters.  Thank you for the advice, it sent me down the right path to get it to work.&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 12:49:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69542#M290</guid>
      <dc:creator>eric_schwartz</dc:creator>
      <dc:date>2018-05-17T12:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access timeseries data via REST API getting error:  {"error":{"code":400,"message":"The timeframe is missing."}}</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69543#M291</link>
      <description>&lt;P&gt;I am getting simmilar error for the timeseries API. Could you please help how to resolve this. I am trying the below URL.&lt;/P&gt;&lt;P&gt;curl -H "Content-Type: application/json" -k --insecure -H "Authorization: Api-Token xxxxxxxxx" -X GET https://MyHost/e/8f1b215f-79f1-4a9d-b76a-25da9ce3394f/api/v1/timeseries/com.dynatrace.builtin:service.responsetime?includeData=true&amp;amp;relativeTime=hour&amp;amp;aggregationType=avg&amp;amp;entity=SERVICE&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Feb 2019 07:16:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Cannot-access-timeseries-data-via-REST-API-getting-error-quot/m-p/69543#M291</guid>
      <dc:creator>surajkumar_pand</dc:creator>
      <dc:date>2019-02-11T07:16:59Z</dc:date>
    </item>
  </channel>
</rss>

