<?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: What are the scope or level to update anomaly detection setting? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/What-are-the-scope-or-level-to-update-anomaly-detection-setting/m-p/212545#M2509</link>
    <description>&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4007"&gt;@Mohamed_Hamdy&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;Thanks is it possible to update it on process group level so that it can apply to all the services underneath. I can understand we can update it on host group and this will apply to all the hosts and services under that.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 04:49:18 GMT</pubDate>
    <dc:creator>Naveen</dc:creator>
    <dc:date>2023-05-18T04:49:18Z</dc:date>
    <item>
      <title>What are the scope or level to update anomaly detection setting?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/What-are-the-scope-or-level-to-update-anomaly-detection-setting/m-p/212445#M2504</link>
      <description>&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;I am trying to update the anomaly detection setting using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;'settings'&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;API but wondering what are the scopes or level on which I can update it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;&lt;STRONG&gt;Question 1:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Can I update it on HOST_GROUP or PROCESS_GROUP or SERVICE level?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;&lt;STRONG&gt;Question 2:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Where to find the api documentation for request body?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 14:16:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/What-are-the-scope-or-level-to-update-anomaly-detection-setting/m-p/212445#M2504</guid>
      <dc:creator>Naveen</dc:creator>
      <dc:date>2023-05-17T14:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: What are the scope or level to update anomaly detection setting?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/What-are-the-scope-or-level-to-update-anomaly-detection-setting/m-p/212452#M2505</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51963"&gt;@Naveen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it will be based on the type of anomaly detection and you can check the &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings/schemas" target="_self"&gt;available schemas&lt;/A&gt; including anomaly and related scope to apply it such as host, host group, environment, ... etc.&lt;/P&gt;&lt;P&gt;now after getting the required schema Id, it's time to &lt;A href="https://www.dynatrace.com/support/help/shortlink/api-v2-settings-post-object" target="_self"&gt;post it as an object&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and there is an easy approach you can use, you can go to the anomaly detection settings, whether on a certain service, host group, or globally and copy the API and adjust it&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mohamed_Hamdy_0-1684325258558.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11702i32049DEA114C6828/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mohamed_Hamdy_0-1684325258558.png" alt="Mohamed_Hamdy_0-1684325258558.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the below example, I'm using Anomaly detection for databases on a certain DB, and by changing the scope from service to environment it will be adjusted globally, (Note: I've removed the id of the service, you can add your service id, change the scope based on your requirements and remove the space between "requests PerMinute")&lt;/P&gt;&lt;P&gt;builtin:anomaly-detection.databases&lt;/P&gt;&lt;P&gt;The scope will be one of the following:&lt;/P&gt;&lt;P&gt;SERVICE_METHOD - Request&lt;BR /&gt;SERVICE - Service&lt;BR /&gt;HOST_GROUP - Host Group&lt;BR /&gt;environment&lt;/P&gt;&lt;P&gt;Token scope: settings.write&lt;/P&gt;&lt;PRE&gt;[&lt;BR /&gt;{"schemaId":"builtin:anomaly-detection.databases",&lt;BR /&gt;"scope":"SERVICE-",&lt;BR /&gt;"value":&lt;BR /&gt;{&lt;BR /&gt;"responseTime":&lt;BR /&gt;{&lt;BR /&gt;"enabled":true,&lt;BR /&gt;"detectionMode":"auto",&lt;BR /&gt;"autoDetection":&lt;BR /&gt;{&lt;BR /&gt;"responseTimeAll":&lt;BR /&gt;{&lt;BR /&gt;"degradationMilliseconds":500,&lt;BR /&gt;"degradationPercent":1000&lt;BR /&gt;},&lt;BR /&gt;"responseTimeSlowest":&lt;BR /&gt;{&lt;BR /&gt;"slowestDegradationMilliseconds":200,&lt;BR /&gt;"slowestDegradationPercent":1000&lt;BR /&gt;},&lt;BR /&gt;"overAlertingProtection":&lt;BR /&gt;{&lt;BR /&gt;"requests PerMinute":100,&lt;BR /&gt;"minutesAbnormalState":2&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"failureRate":&lt;BR /&gt;{&lt;BR /&gt;"enabled":true,&lt;BR /&gt;"detectionMode":"auto",&lt;BR /&gt;"autoDetection":&lt;BR /&gt;{&lt;BR /&gt;"absoluteIncrease":0,&lt;BR /&gt;"relativeIncrease":50,&lt;BR /&gt;"overAlertingProtection":&lt;BR /&gt;{&lt;BR /&gt;"requests PerMinute":10,&lt;BR /&gt;"minutesAbnormalState":1&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"loadDrops":&lt;BR /&gt;{&lt;BR /&gt;"enabled":false&lt;BR /&gt;},&lt;BR /&gt;"loadSpikes":&lt;BR /&gt;{&lt;BR /&gt;"enabled":false&lt;BR /&gt;},&lt;BR /&gt;"databaseConnections":&lt;BR /&gt;{&lt;BR /&gt;"enabled":true,&lt;BR /&gt;"maxFailedConnects":100,&lt;BR /&gt;"timePeriod":10&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also, you can use API v1 as well but I think the recommendation is to use API v2 such as Settings API&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/anomaly-detection-api" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/anomaly-detection-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 12:09:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/What-are-the-scope-or-level-to-update-anomaly-detection-setting/m-p/212452#M2505</guid>
      <dc:creator>Mohamed_Hamdy</dc:creator>
      <dc:date>2023-05-17T12:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: What are the scope or level to update anomaly detection setting?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/What-are-the-scope-or-level-to-update-anomaly-detection-setting/m-p/212545#M2509</link>
      <description>&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4007"&gt;@Mohamed_Hamdy&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco" size="2"&gt;Thanks is it possible to update it on process group level so that it can apply to all the services underneath. I can understand we can update it on host group and this will apply to all the hosts and services under that.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 04:49:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/What-are-the-scope-or-level-to-update-anomaly-detection-setting/m-p/212545#M2509</guid>
      <dc:creator>Naveen</dc:creator>
      <dc:date>2023-05-18T04:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: What are the scope or level to update anomaly detection setting?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/What-are-the-scope-or-level-to-update-anomaly-detection-setting/m-p/212557#M2511</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51963"&gt;@Naveen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it will not be applied on a process group level, also, based on which anomaly detection the scope is different, for instance, for service anomaly detection, it will be applied on the environment level (Globally), Host Group level, Service, Requests, as for Application anomaly detection, it will be applied&amp;nbsp;on the environment level (Globally), Application, User Action.&lt;/P&gt;&lt;P&gt;so it's the same as you configure the anomaly detection using UI, so process group is not an option&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 08:46:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/What-are-the-scope-or-level-to-update-anomaly-detection-setting/m-p/212557#M2511</guid>
      <dc:creator>Mohamed_Hamdy</dc:creator>
      <dc:date>2023-05-18T08:46:26Z</dc:date>
    </item>
  </channel>
</rss>

