<?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: How to identify if monitoring is enabled or disabled for all HOSTS in one call? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-identify-if-monitoring-is-enabled-or-disabled-for-all/m-p/166784#M1260</link>
    <description>&lt;P&gt;If you use the V1 SmartScape - Hosts API it includes monitoring mode in the response if you select to include details:&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/shortlink/api-hosts-get-all#response-body" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/api-hosts-get-all#response-body&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 18:53:36 GMT</pubDate>
    <dc:creator>JamesKitson</dc:creator>
    <dc:date>2021-05-27T18:53:36Z</dc:date>
    <item>
      <title>How to identify if monitoring is enabled or disabled for all HOSTS in one call?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-identify-if-monitoring-is-enabled-or-disabled-for-all/m-p/166764#M1259</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are working on ability to enable/disable monitoring for multiple Hosts at once and need a way to identify current monitoring status for all Hosts in environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with fields=+properties.monitoringMode in&amp;nbsp;/api/v2/entities call we can easily to identify monitoring mode, however, only way we found so far to identify if monitoring is enabled or not is to call&amp;nbsp;/api/config/v1/hosts/ API for every single HOST.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any better way to do this? not doing 5000 calls for 5000 Hosts?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;I.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 07:09:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-identify-if-monitoring-is-enabled-or-disabled-for-all/m-p/166764#M1259</guid>
      <dc:creator>Ingrida</dc:creator>
      <dc:date>2021-06-02T07:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify if monitoring is enabled or disabled for all HOSTS in one call?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-identify-if-monitoring-is-enabled-or-disabled-for-all/m-p/166784#M1260</link>
      <description>&lt;P&gt;If you use the V1 SmartScape - Hosts API it includes monitoring mode in the response if you select to include details:&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/shortlink/api-hosts-get-all#response-body" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/api-hosts-get-all#response-body&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 18:53:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-identify-if-monitoring-is-enabled-or-disabled-for-all/m-p/166784#M1260</guid>
      <dc:creator>JamesKitson</dc:creator>
      <dc:date>2021-05-27T18:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify if monitoring is enabled or disabled for all HOSTS in one call?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-identify-if-monitoring-is-enabled-or-disabled-for-all/m-p/166949#M1262</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for information. I have tow painpoints with this solution:&lt;/P&gt;&lt;P&gt;- it is v1 API. Will it be kept for the future?&lt;/P&gt;&lt;P&gt;- it allows me to get information for one HOST. SO, if I have 10.000 hosts I have to loop it 10.000 times if I need to get an overview about status.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is not a problem to get Monitoring mode with v2 entities call as it is part of entity Type HOST properties. However, I am talking about monitoringEnable property for which I would need to use v1 call in loop.... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other option?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 08:57:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-identify-if-monitoring-is-enabled-or-disabled-for-all/m-p/166949#M1262</guid>
      <dc:creator>Ingrida</dc:creator>
      <dc:date>2021-06-01T08:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify if monitoring is enabled or disabled for all HOSTS in one call?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-identify-if-monitoring-is-enabled-or-disabled-for-all/m-p/166972#M1266</link>
      <description>&lt;P&gt;The API I linked returns multiple hosts, II just verified that, not one so it won't need a separate call to get every host. I'm not aware of any plans to get rid of any v1 endpoints, most likely they just won't get any enhancements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 14:12:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-identify-if-monitoring-is-enabled-or-disabled-for-all/m-p/166972#M1266</guid>
      <dc:creator>JamesKitson</dc:creator>
      <dc:date>2021-06-01T14:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify if monitoring is enabled or disabled for all HOSTS in one call?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-identify-if-monitoring-is-enabled-or-disabled-for-all/m-p/167011#M1267</link>
      <description>&lt;P&gt;hi James, you are absolutelly right, sorry for confusion,&amp;nbsp;/api/v1/entity/infrastructure/hosts returns all hosts, however, it doesnot return monitoringEnable property, just monitoringMode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I found meanwhile that&amp;nbsp;/api/v1/oneagents is able toprovide this information via&amp;nbsp;configuredMonitoringEnabled property, hence my problem too get montoringenabled state for all hosts in one call is solved by now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for support!&lt;/P&gt;&lt;P&gt;I.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 07:00:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-identify-if-monitoring-is-enabled-or-disabled-for-all/m-p/167011#M1267</guid>
      <dc:creator>Ingrida</dc:creator>
      <dc:date>2021-06-02T07:00:58Z</dc:date>
    </item>
  </channel>
</rss>

