<?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: V2 Problem API List Problems - What if the tag is invalid? It still returns an empty set. in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164674#M1205</link>
    <description>&lt;P&gt;Maybe a better way of asking this question is "What is the best way to validate that a tag (normal or custom" is valid?" through the V2 API?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Apr 2021 17:35:40 GMT</pubDate>
    <dc:creator>louis_gallo</dc:creator>
    <dc:date>2021-04-20T17:35:40Z</dc:date>
    <item>
      <title>V2 Problem API List Problems - What if the tag is invalid? It still returns an empty set.</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164550#M1202</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I notice if I list the problems for a certain entity like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;type(process_group_instance),tag(MyApplication:AppName)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The JSON returns information like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;"totalCount": 10,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"pageSize": 50,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"problems": [&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That total count can be 0 or greater.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my question - If the tag name is invalid, totalCount will be 0. I HAVE NO WAY TO DISTINGUISH BETWEEN A GOOD TAG WITH NO PROBLEMS AND A BAD TAG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should I be making an API call beforehand to validate that a tag name is valid?? How do I do that? I have heard that managed tags are stored in one place and other tags in another.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help!! I am trying to pull problems for a tag, and that works great. I just have no way to flag if the tag was actually valid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lou&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 06:44:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164550#M1202</guid>
      <dc:creator>louis_gallo</dc:creator>
      <dc:date>2021-04-20T06:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: V2 Problem API List Problems - What if the tag is invalid? It still returns an empty set.</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164674#M1205</link>
      <description>&lt;P&gt;Maybe a better way of asking this question is "What is the best way to validate that a tag (normal or custom" is valid?" through the V2 API?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 17:35:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164674#M1205</guid>
      <dc:creator>louis_gallo</dc:creator>
      <dc:date>2021-04-20T17:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: V2 Problem API List Problems - What if the tag is invalid? It still returns an empty set.</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164773#M1206</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/34149"&gt;@louis_gallo&lt;/a&gt;&amp;nbsp;I do not fully understand what you would like to implement with the problems API endpoint. Can you give me more context on why the problems endpoint should verify if a given tag exists? For us the endpoint does return the list of entities that show a problem with a given tag. In case there is no entity with that given tag, the result is of course empty. On the other hand, the tag could exist on other entity types of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Wolfgang&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 05:50:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164773#M1206</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2021-04-22T05:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: V2 Problem API List Problems - What if the tag is invalid? It still returns an empty set.</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164775#M1207</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/34149"&gt;@louis_gallo&lt;/a&gt;&amp;nbsp;You can use the tag endpoint to query for the number of entities of a given type and how many assignments the tag has, see here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/custom-tags/get-tags/" target="_blank"&gt;https://www.dynatrace.com/support/help/dynatrace-api/environment-api/custom-tags/get-tags/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 05:56:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164775#M1207</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2021-04-22T05:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: V2 Problem API List Problems - What if the tag is invalid? It still returns an empty set.</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164859#M1208</link>
      <description>&lt;P&gt;Hi Wolfgang. My idea, which I actually have a POC built, is to automate pulling back problems by a tag for a particular time, in most cases the time of a PVS test. Hence why I want to validate the tag beforehand as valid because both an invalid tag OR a valid tag with no problems return the same result. Hopefully that makes sense. I am going to try your idea above. Just have to get read entities privs with my token. If I am off base here, please let me know.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 19:54:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164859#M1208</guid>
      <dc:creator>louis_gallo</dc:creator>
      <dc:date>2021-04-22T19:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: V2 Problem API List Problems - What if the tag is invalid? It still returns an empty set.</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164924#M1210</link>
      <description>&lt;P&gt;It works as a validator for the tags!!! Thanks Wolfgang!!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 22:50:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164924#M1210</guid>
      <dc:creator>louis_gallo</dc:creator>
      <dc:date>2021-04-23T22:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: V2 Problem API List Problems - What if the tag is invalid? It still returns an empty set.</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164925#M1211</link>
      <description>&lt;P&gt;Great that it worked, have a great weekend!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;</description>
      <pubDate>Sat, 24 Apr 2021 06:16:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/V2-Problem-API-List-Problems-What-if-the-tag-is-invalid-It-still/m-p/164925#M1211</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2021-04-24T06:16:44Z</dc:date>
    </item>
  </channel>
</rss>

