# How to enable Downtime for services running for Application

**URL:** <https://community.dynatrace.com/t/how-to-enable-downtime-for-services-running-for-application/15795>\
**Category:** Alerting\
**Tags:** services-classic, problems-classic, dynatrace-api\
**Created:** [September 20, 2018, 10:57am UTC](https://community.dynatrace.com/t/how-to-enable-downtime-for-services-running-for-application/15795 "2018-09-20T10:57:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![raumil\_setalwad](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@raumil\_setalwad](https://community.dynatrace.com/u/raumil_setalwad)\
**Post date:** [September 20, 2018, 10:57am UTC](https://community.dynatrace.com/t/how-to-enable-downtime-for-services-running-for-application/15795/1 "2018-09-20T10:57:57Z")

</div>

We have multiple DB and application services running for our application. Now during deployment very randomly a false alert is generated by Dynatrace informing that service is down but during that time we have ongoing production deployment for that release.

Have gone through documents for maintenance window but that is for application not for services. Hence would like to know is there any way we can achieve the same.

Thanks

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [September 20, 2018, 1:08pm UTC](https://community.dynatrace.com/t/how-to-enable-downtime-for-services-running-for-application/15795/2 "2018-09-20T13:08:14Z")

</div>

Can you confirm you’re using AppMon and not Dynatrace? The terms you’re using look more like Dynatrace - the one with OneAgents and access through the browser etc…

James

---

<div class="post-metadata">

**Author:** ![raumil\_setalwad](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@raumil\_setalwad](https://community.dynatrace.com/u/raumil_setalwad)\
**Post date:** [September 20, 2018, 1:16pm UTC](https://community.dynatrace.com/t/how-to-enable-downtime-for-services-running-for-application/15795/3 "2018-09-20T13:16:41Z")

</div>

We are using Dynatrace and not AppMon

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [September 20, 2018, 1:17pm UTC](https://community.dynatrace.com/t/how-to-enable-downtime-for-services-running-for-application/15795/4 "2018-09-20T13:17:43Z")

</div>

Ok, I’ll move this to the Dynatrace forum.

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [September 20, 2018, 1:27pm UTC](https://community.dynatrace.com/t/how-to-enable-downtime-for-services-running-for-application/15795/5 "2018-09-20T13:27:34Z")

</div>

As described [here](https://www.dynatrace.com/support/help/problem-detection-and-analysis/see-also/how-to-define-a-maintenance-window/), you can set the scope for the maintenance window where you can set it to be for any entities (services, process groups, hosts, applications, or even synthetic monitors). Further you can restrict each of those to specific tags you’ve applied to them. You can add as many of these rules as you need by clicking “Define scope.”

 ![18316-answers.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/7/87bfc964d8652d8e1e3a9e9642eaa8c5c4a4befb.png)

I’ll also note that in case you’ve tried this and are still seeing alerts the default behavior is to detect problems and alert during maintenance windows (and only to stop the results from affecting baselines) you have to select to turn off alerts or problem detection altogether if you want that.

James

---

<div class="post-metadata">

**Author:** ![raumil\_setalwad](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@raumil\_setalwad](https://community.dynatrace.com/u/raumil_setalwad)\
**Post date:** [September 20, 2018, 1:40pm UTC](https://community.dynatrace.com/t/how-to-enable-downtime-for-services-running-for-application/15795/6 "2018-09-20T13:40:10Z")

</div>

Hello James,

Thanks for sharing this but I am interested in rest-api way. I checked your rest-api page

[https://www.dynatrace.com/support/help/dynatrace-a…](https://www.dynatrace.com/support/help/dynatrace-api/configuration/how-do-i-manage-maintenance-windows-via-api/)

It shows for application only. It would be great if something like that is available for services so that same can be applied at our end.

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [September 20, 2018, 1:55pm UTC](https://community.dynatrace.com/t/how-to-enable-downtime-for-services-running-for-application/15795/7 "2018-09-20T13:55:51Z")

</div>

Expand the parameters section for the POST Maintenance Window - you can define scopes with the same degree of flexibility.

 ![18317-answers.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/6/56c9503a0c7a4de7e3feac7712c7dc65fd07fe2f.png)

---

<div class="post-metadata">

**Author:** ![raumil\_setalwad](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@raumil\_setalwad](https://community.dynatrace.com/u/raumil_setalwad)\
**Post date:** [September 20, 2018, 2:46pm UTC](https://community.dynatrace.com/t/how-to-enable-downtime-for-services-running-for-application/15795/8 "2018-09-20T14:46:49Z")

</div>

Thanks James for your help.
