<?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: Disabling bunch of synthetic monitors for particular time period in a week in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118881#M378</link>
    <description>&lt;P&gt;@&lt;A rel="user" href="https://answers.dynatrace.com/users/9493/view.html" nodeid="9493"&gt;Antonio S.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Script was working very well till now but it is started failing. Can you please help here?&lt;/P&gt;&lt;P&gt;Below is the error I'm receiving,&lt;/P&gt;&lt;PRE&gt;"E:\DynaTrace\Scipt.py", line 98, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; response = restApiGet(domain+"api/v1/synthetic/monitors?tag="+tag+"&amp;amp;Api-Token="+apiToken)&lt;BR /&gt;&amp;nbsp; File "E:\DynaTrace\Script.py", line 15, in restApiGet&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if int(response.headers['X-RateLimit-Remaining']) == 0:&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\Python39\lib\site-packages\requests\structures.py", line 54, in __getitem__&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return self._store[key.lower()][1]&lt;BR /&gt;KeyError: 'x-ratelimit-remaining'&lt;BR /&gt;waiting for 5 seconds&lt;BR /&gt;Reading contents of Error.log file&lt;/PRE&gt;&lt;P&gt;Is it the case that dynatrace API are not passing/using &lt;STRONG&gt;x-ratelimit-remaining&lt;/STRONG&gt; header is now?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 14:51:02 GMT</pubDate>
    <dc:creator>AK</dc:creator>
    <dc:date>2021-02-16T14:51:02Z</dc:date>
    <item>
      <title>Automated way to disable synthetic monitors for a particular time period</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118874#M371</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;
&lt;P&gt;Is there a way we can disable the few selected synthetic monitors for the day of week and also enabled them back?&lt;/P&gt;
&lt;P&gt;Basically, I'm looking to automate this task. I checked on synthetic API but we need to pass complete synthetic monitor JSON with "enabled" parameter as "false" or "true".&lt;/P&gt;
&lt;P&gt;I don't want to use Maintenance window as it has some drawbacks.&lt;/P&gt;
&lt;P&gt;Has anyone did this?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;AK&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 15:28:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118874#M371</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2023-03-10T15:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118875#M372</link>
      <description>&lt;P&gt;What you could do is repost your synthetic and pass the parameter of false instead of true: &lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/27286-1605124668187.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 19:57:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118875#M372</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2020-11-11T19:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118876#M373</link>
      <description>&lt;P&gt;At the moment, you should be able to do this through the API.&lt;/P&gt;&lt;P&gt;Please check out:&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://github.com/Dynatrace/snippets/tree/master/api/synthetic/bulk-enable-disable-monitors" target="_blank"&gt;https://github.com/Dynatrace/snippets/tree/master/api/synthetic/bulk-enable-disable-monitors&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 20:46:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118876#M373</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2020-11-11T20:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118877#M374</link>
      <description>&lt;P&gt;Exellent. Thanks for this Antonio. It worked like a charm.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 09:52:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118877#M374</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2020-11-13T09:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118878#M375</link>
      <description>&lt;P&gt;Thank You Chad for your comments. I'm looking for some automated way to do it.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 09:52:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118878#M375</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2020-11-13T09:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118879#M376</link>
      <description>&lt;P&gt;We accomplished this by creating a Jenkins job that runs the commands to disable / enable at the desired times. We use a tag on designated the synthetics that are disables/enables.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 15:31:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118879#M376</guid>
      <dc:creator>jshelby</dc:creator>
      <dc:date>2020-11-17T15:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118880#M377</link>
      <description>&lt;P&gt;We also use tags to specify when a synthetic should be enabled/disabled and another job uses the API to do the enable/disable.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 19:33:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118880#M377</guid>
      <dc:creator>rmeli</dc:creator>
      <dc:date>2020-11-17T19:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118881#M378</link>
      <description>&lt;P&gt;@&lt;A rel="user" href="https://answers.dynatrace.com/users/9493/view.html" nodeid="9493"&gt;Antonio S.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Script was working very well till now but it is started failing. Can you please help here?&lt;/P&gt;&lt;P&gt;Below is the error I'm receiving,&lt;/P&gt;&lt;PRE&gt;"E:\DynaTrace\Scipt.py", line 98, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; response = restApiGet(domain+"api/v1/synthetic/monitors?tag="+tag+"&amp;amp;Api-Token="+apiToken)&lt;BR /&gt;&amp;nbsp; File "E:\DynaTrace\Script.py", line 15, in restApiGet&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if int(response.headers['X-RateLimit-Remaining']) == 0:&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\Python39\lib\site-packages\requests\structures.py", line 54, in __getitem__&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return self._store[key.lower()][1]&lt;BR /&gt;KeyError: 'x-ratelimit-remaining'&lt;BR /&gt;waiting for 5 seconds&lt;BR /&gt;Reading contents of Error.log file&lt;/PRE&gt;&lt;P&gt;Is it the case that dynatrace API are not passing/using &lt;STRONG&gt;x-ratelimit-remaining&lt;/STRONG&gt; header is now?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 14:51:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118881#M378</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2021-02-16T14:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118882#M379</link>
      <description>&lt;P&gt;It looks like you might be experiencing some rate limiting. Take a look at:&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/dynatrace-api/basics/access-limit/" target="_blank"&gt;https://www.dynatrace.com/support/help/dynatrace-api/basics/access-limit/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/news/blog/best-practices-for-accelerating-dynatrace-apis-within-large-monitoring-environments/" target="_blank"&gt;https://www.dynatrace.com/news/blog/best-practices-for-accelerating-dynatrace-apis-within-large-monitoring-environments/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 15:38:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118882#M379</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2021-02-16T15:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118883#M380</link>
      <description>&lt;P&gt;@&lt;A rel="user" href="https://answers.dynatrace.com/users/9493/view.html" nodeid="9493"&gt;Antonio S.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried it for just four monitors but its failing for them too.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 17:52:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118883#M380</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2021-02-16T17:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118884#M381</link>
      <description>&lt;P&gt;Please beware that the rate limit applies for all API calls. Please check you are not using too much of them... If not, you should probably open a support case, or at least try the Chat.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 17:56:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118884#M381</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2021-02-16T17:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118885#M382</link>
      <description>&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;We came to know from support that,&lt;/P&gt;&lt;PRE&gt;Those throttling headers &lt;STRONG&gt;(X-RateLimit)&lt;/STRONG&gt; will no longer in use from SaaS 1.210 version and new implementation now relies on a rapidly refreshing thread pool that processes API rather than a threshold of calls that is used per minute or hour.&lt;BR /&gt;And sleep time must be added based on the HTTP 429 response and then try again shortly after&lt;/PRE&gt;&lt;P&gt;In our python script (The one which is present on git), sleeping is added based on the &lt;STRONG&gt;X-RateLimit-Reset&lt;/STRONG&gt; threshold.&lt;/P&gt;&lt;P&gt;I believe, adding random time.sleep won't be appropriate.&lt;/P&gt;&lt;P&gt;Can you help or suggest, how we can adopt or modify the &lt;STRONG&gt;time.sleep&lt;/STRONG&gt; based on HTTP 429 response or when throttling headers are not available?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 14:28:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118885#M382</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2021-02-18T14:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118886#M383</link>
      <description>&lt;P&gt;Not sure about this new implementation... Did Support make any suggestion?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 22:12:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118886#M383</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2021-02-18T22:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118887#M384</link>
      <description>&lt;P&gt;It's resolved. Support suggested to add,&lt;/P&gt;&lt;PRE&gt;if response.status_code == 429;&lt;BR /&gt;time.sleep(10);&lt;/PRE&gt;&lt;P&gt;Queue will get completed within 10 sec.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 06:12:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118887#M384</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2021-02-24T06:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118888#M385</link>
      <description>&lt;P&gt;This is now available when you create a maintenance window (notice the toggle at the bottom of my image).&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/28317-1614151098886.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 07:18:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118888#M385</guid>
      <dc:creator>adam_gardner</dc:creator>
      <dc:date>2021-02-24T07:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling bunch of synthetic monitors for particular time period in a week</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118889#M386</link>
      <description>&lt;P&gt;I'd highly recommend using our open source tool monaco rather than troubling yourself with scripting against our APIs &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; #makeyourlifeeasier&lt;BR /&gt;&lt;BR /&gt;That said, see my other comment about this being available OOTB when you create maintenance windows now.&lt;BR /&gt;&lt;A rel="noopener noreferrer" href="https://github.com/dynatrace-oss/dynatrace-monitoring-as-code" target="_blank"&gt;https://github.com/dynatrace-oss/dynatrace-monitoring-as-code&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 07:20:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Automated-way-to-disable-synthetic-monitors-for-a-particular/m-p/118889#M386</guid>
      <dc:creator>adam_gardner</dc:creator>
      <dc:date>2021-02-24T07:20:20Z</dc:date>
    </item>
  </channel>
</rss>

