<?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 obtein threshold for every host by API in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/How-obtein-threshold-for-every-host-by-API/m-p/233189#M3997</link>
    <description>&lt;P&gt;Hi! There isn't a direct endpoint for this that I'm aware of, but if you string a few calls together you can get the data:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use the &lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/entity-selector" target="_self"&gt;Environment API&lt;/A&gt; to get a list of hosts using an Entity Selector. For every host in the environment, a simple `type("HOST")` should work&lt;/LI&gt;&lt;LI&gt;Use the &lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/settings" target="_self"&gt;Settings API&lt;/A&gt; and hit the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/settings/schemas/builtin-anomaly-detection-infrastructure-hosts" target="_self"&gt;builtin:anomaly-detection.infrastructure-hosts schema&lt;/A&gt; to get the default Environment level settings. Individual hosts will override this setting if they have anomaly detection defined.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Loop through the list of host IDs and make &lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/settings/objects/get-objects" target="_self"&gt;GET requests to the Settings API&lt;/A&gt; and passing in the host ID. If the host has anomaly detection settings that differ from the default Environment settings, they will be returned in the results. If not, then its using the default Environment settings.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Tue, 02 Jan 2024 19:21:11 GMT</pubDate>
    <dc:creator>Kor01</dc:creator>
    <dc:date>2024-01-02T19:21:11Z</dc:date>
    <item>
      <title>How obtein threshold for every host by API</title>
      <link>https://community.dynatrace.com/t5/Alerting/How-obtein-threshold-for-every-host-by-API/m-p/233173#M3994</link>
      <description>&lt;P&gt;Good morning Dynatrace team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is possible obtein the thresholds that are available for every HOST monitored via API?&lt;/P&gt;&lt;P&gt;I need to obtein one list of every monitored host and the threshold configured for every one. Is possible this? one idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 16:21:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/How-obtein-threshold-for-every-host-by-API/m-p/233173#M3994</guid>
      <dc:creator>DAVID_MTZ</dc:creator>
      <dc:date>2024-01-02T16:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: How obtein threshold for every host by API</title>
      <link>https://community.dynatrace.com/t5/Alerting/How-obtein-threshold-for-every-host-by-API/m-p/233189#M3997</link>
      <description>&lt;P&gt;Hi! There isn't a direct endpoint for this that I'm aware of, but if you string a few calls together you can get the data:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use the &lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/entity-selector" target="_self"&gt;Environment API&lt;/A&gt; to get a list of hosts using an Entity Selector. For every host in the environment, a simple `type("HOST")` should work&lt;/LI&gt;&lt;LI&gt;Use the &lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/settings" target="_self"&gt;Settings API&lt;/A&gt; and hit the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/settings/schemas/builtin-anomaly-detection-infrastructure-hosts" target="_self"&gt;builtin:anomaly-detection.infrastructure-hosts schema&lt;/A&gt; to get the default Environment level settings. Individual hosts will override this setting if they have anomaly detection defined.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Loop through the list of host IDs and make &lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/settings/objects/get-objects" target="_self"&gt;GET requests to the Settings API&lt;/A&gt; and passing in the host ID. If the host has anomaly detection settings that differ from the default Environment settings, they will be returned in the results. If not, then its using the default Environment settings.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 02 Jan 2024 19:21:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/How-obtein-threshold-for-every-host-by-API/m-p/233189#M3997</guid>
      <dc:creator>Kor01</dc:creator>
      <dc:date>2024-01-02T19:21:11Z</dc:date>
    </item>
  </channel>
</rss>

