<?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 What is the best method to work with API extracted data? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/What-is-the-best-method-to-work-with-API-extracted-data/m-p/176576#M1595</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I hope I will make my question clear;&lt;/P&gt;&lt;P&gt;I want to extract data using Dynatrace API, to look for hosts that are listed as "Monitoring Candidate" and so on...&lt;/P&gt;&lt;P&gt;I find it hard to work with the extracted data from the API, for example, if I'm extracting the list of hosts, I see many parameters I don't need. I want for example to filter only the "Monitoring Candidates" but I don't know how.&lt;/P&gt;&lt;P&gt;You guys have any tips? a software I can use to work with?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Sun, 28 Nov 2021 09:45:03 GMT</pubDate>
    <dc:creator>YuvalKonstanti</dc:creator>
    <dc:date>2021-11-28T09:45:03Z</dc:date>
    <item>
      <title>What is the best method to work with API extracted data?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/What-is-the-best-method-to-work-with-API-extracted-data/m-p/176576#M1595</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I hope I will make my question clear;&lt;/P&gt;&lt;P&gt;I want to extract data using Dynatrace API, to look for hosts that are listed as "Monitoring Candidate" and so on...&lt;/P&gt;&lt;P&gt;I find it hard to work with the extracted data from the API, for example, if I'm extracting the list of hosts, I see many parameters I don't need. I want for example to filter only the "Monitoring Candidates" but I don't know how.&lt;/P&gt;&lt;P&gt;You guys have any tips? a software I can use to work with?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 09:45:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/What-is-the-best-method-to-work-with-API-extracted-data/m-p/176576#M1595</guid>
      <dc:creator>YuvalKonstanti</dc:creator>
      <dc:date>2021-11-28T09:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best method to work with API extracted data?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/What-is-the-best-method-to-work-with-API-extracted-data/m-p/176577#M1596</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41788"&gt;@YuvalKonstanti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to make the output more useful you can:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Convert the json to csv with some online converters and work on the CSV.&lt;/LI&gt;&lt;LI&gt;Use &lt;A href="https://docs.google.com/spreadsheets/d/1ggWi_LtZPXjLLzOs_UoiHry8Jn4C2F8Qzc9DgrDJAZc/edit#gid=1453612701" target="_self"&gt;Host Report (by Erik Landsness)&lt;/A&gt;&amp;nbsp;just save it to your google drive, add your tenant id and token in config tab and run it from the dynatrace menu entry.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Connect your rest API with your company BI tools and play with data as you like.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Yos&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 10:29:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/What-is-the-best-method-to-work-with-API-extracted-data/m-p/176577#M1596</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2021-11-28T10:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best method to work with API extracted data?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/What-is-the-best-method-to-work-with-API-extracted-data/m-p/176584#M1597</link>
      <description>&lt;P&gt;The new /api/v2 "monitored entities" set of endpoints make this easier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, have a look at the possible properties for a particular entity (eg. HOST)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;GET https://abc12345.live.dynatrace.com/api/v2/entityTypes/ENTITY-TYPE&lt;BR /&gt;eg.&lt;BR /&gt;GET https://abc12345.live.dynatrace.com/api/v2/entityTypes/HOST&lt;/PRE&gt;
&lt;P&gt;Gives:&lt;/P&gt;
&lt;PRE&gt;{
  "type": "HOST",
  "displayName": "Host",
  "dimensionKey": "dt.entity.host",
  "entityLimitExceeded": false,
  "properties": [&lt;BR /&gt;    ...&lt;/PRE&gt;
&lt;PRE&gt;{
      "id": "isMonitoringCandidate",
      "type": "Boolean",
      "displayName": "isMonitoringCandidate"
    }&lt;BR /&gt;    ...&lt;BR /&gt;  ]&lt;/PRE&gt;
&lt;P&gt;Now get the hosts and ask for that additional property:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;GET https://abc12345.live.dynatrace.com/api/v2/entities?entitySelector=type(HOST)&amp;amp;fields=properties.isMonitoringCandidate&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Gives&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;
  &lt;SPAN&gt;"totalCount"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;
  &lt;SPAN&gt;"pageSize"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;50&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;
  &lt;SPAN&gt;"entities"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;
      &lt;SPAN&gt;"entityId"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"HOST-1234706CD0451ABC"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;
      &lt;SPAN&gt;"displayName"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"myHostname"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;
      &lt;SPAN&gt;"properties"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;
        &lt;SPAN&gt;"isMonitoringCandidate"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;false&lt;/SPAN&gt;
      &lt;SPAN&gt;}&lt;/SPAN&gt;
    &lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;
&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 May 2023 12:32:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/What-is-the-best-method-to-work-with-API-extracted-data/m-p/176584#M1597</guid>
      <dc:creator>adam_gardner</dc:creator>
      <dc:date>2023-05-29T12:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best method to work with API extracted data?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/What-is-the-best-method-to-work-with-API-extracted-data/m-p/176585#M1598</link>
      <description>&lt;LI-CODE lang="markup"&gt;GET https://abc12345.live.dynatrace.com/api/v2/entities?entitySelector=type(HOST)&amp;amp;fields=properties.isMonitoringCandidate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To see all valid properties for an entity:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://abc12345.live.dynatrace.com/api/v2/entityTypes/HOST&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Nov 2021 02:04:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/What-is-the-best-method-to-work-with-API-extracted-data/m-p/176585#M1598</guid>
      <dc:creator>adam_gardner</dc:creator>
      <dc:date>2021-11-29T02:04:19Z</dc:date>
    </item>
  </channel>
</rss>

