<?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: bad request API Synthetic monitoring in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Bad-request-API-Synthetic-monitoring/m-p/116128#M774</link>
    <description>&lt;P&gt;Where you have&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A target="_blank"&gt;&amp;amp;entitySelector=entityId%20%28%22SYNTHETIC_TEST-2EF18627DF791E16%22%29&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I use:&lt;/P&gt;&lt;P&gt;&amp;amp;entitySelector=type%28SYNTHETIC_TEST%29%2CentityId%28SYNTHETIC_TEST-170D13E391AB294E%29&lt;/P&gt;&lt;P&gt;Check if it works in your case, with your correct entityId.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2020 14:21:58 GMT</pubDate>
    <dc:creator>AntonioSousa</dc:creator>
    <dc:date>2020-08-24T14:21:58Z</dc:date>
    <item>
      <title>Bad request API Synthetic monitoring</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Bad-request-API-Synthetic-monitoring/m-p/116127#M773</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;
&lt;P&gt;When I run the query:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P style="font-size: 15px; margin: 0cm 0cm 8.0pt 0cm;"&gt;h&lt;EM&gt;ttps://yyyyyyyyyyy.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin%3Asynthetic.browser.availability.location.total&amp;amp;resolution=15m&amp;amp;from=-24h&amp;amp;to=now&amp;amp;entitySelector=entityId%20%28%22SYNTHETIC_TEST-2EF18627DF791E16%22%29&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 15px; margin: 0cm 0cm 8.0pt 0cm;"&gt;I get a bad request:&lt;/P&gt;
&lt;PRE&gt;{&lt;BR /&gt;&amp;nbsp; "error": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "code": 400,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "message": "Expected type(SYNTHETIC_TEST) to be present in the entitySelector, but no such predicate was found."&lt;BR /&gt;}&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I run it without filtering by the entity, it returns all the data of all the entities including the one from the filter ""&lt;EM&gt;SYNTHETIC_TEST-2EF18627DF791E16&lt;/EM&gt;") " (this is correct)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why can't I filter by the entity ID?&lt;/P&gt;
&lt;P&gt;Can't recieve only datapoint from one entity?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards!&lt;/P&gt;
&lt;P&gt;Jose A&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 10:31:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Bad-request-API-Synthetic-monitoring/m-p/116127#M773</guid>
      <dc:creator>jose-antonio_ra</dc:creator>
      <dc:date>2024-08-21T10:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: bad request API Synthetic monitoring</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Bad-request-API-Synthetic-monitoring/m-p/116128#M774</link>
      <description>&lt;P&gt;Where you have&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A target="_blank"&gt;&amp;amp;entitySelector=entityId%20%28%22SYNTHETIC_TEST-2EF18627DF791E16%22%29&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I use:&lt;/P&gt;&lt;P&gt;&amp;amp;entitySelector=type%28SYNTHETIC_TEST%29%2CentityId%28SYNTHETIC_TEST-170D13E391AB294E%29&lt;/P&gt;&lt;P&gt;Check if it works in your case, with your correct entityId.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 14:21:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Bad-request-API-Synthetic-monitoring/m-p/116128#M774</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2020-08-24T14:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: bad request API Synthetic monitoring</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Bad-request-API-Synthetic-monitoring/m-p/116129#M775</link>
      <description>&lt;P&gt;It´s working now!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks again &lt;A rel="user" href="https://answers.dynatrace.com/users/9493/view.html" nodeid="9493"&gt;@Antonio S.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 11:56:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Bad-request-API-Synthetic-monitoring/m-p/116129#M775</guid>
      <dc:creator>jose-antonio_ra</dc:creator>
      <dc:date>2020-08-25T11:56:37Z</dc:date>
    </item>
  </channel>
</rss>

