# How to set maintenance windows for Davis Anomaly Detection alerts and workflows

**URL:** <https://community.dynatrace.com/t/how-to-set-maintenance-windows-for-davis-anomaly-detection-alerts-and-workflows/56233>\
**Category:** Alerting\
**Tags:** davis, anomaly-detection, workflows, problems, maintenance-window\
**Created:** [June 18, 2026, 9:25pm UTC](https://community.dynatrace.com/t/how-to-set-maintenance-windows-for-davis-anomaly-detection-alerts-and-workflows/56233 "2026-06-18T21:25:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi\_singh](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@ravi\_singh](https://community.dynatrace.com/u/ravi_singh)\
**Post date:** [June 18, 2026, 9:25pm UTC](https://community.dynatrace.com/t/how-to-set-maintenance-windows-for-davis-anomaly-detection-alerts-and-workflows/56233/1 "2026-06-18T21:25:10Z")

</div>

Problem statement:-  
I want to stop my davis alerts from triggering during a fixed time window lets say between 1:30AM IST to 3:30AM IST  
is there any way

Also i want to stop workflows execution between a certain time window how to do that, I know javascript might be one way to go but I think that spins a container for javascript execution, i don’t want to bear extra cost for that, is there any other way

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [June 18, 2026, 10:42pm UTC](https://community.dynatrace.com/t/how-to-set-maintenance-windows-for-davis-anomaly-detection-alerts-and-workflows/56233/2 "2026-06-18T22:42:26Z")

</div>

Hi&nbsp;[@ravi\_singh](https://community.dynatrace.com/user/96953)

Dynatrace has a built-in Maintenance Window feature.

Navigate to Settings → Alerting → Maintenance windows (Classic UI) or Settings → Anomaly Detection → Maintenance windows (new UI)

 ![sujit_k_singh_1-1781822320377.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/8/88286c944dee6344ecb3fe926e69c0be3d4001f3.png)

Regarding 2nd question

Yes! There is a way to do this without spinning up a JavaScript container.&nbsp;Use a DQL Condition in your Workflow Trigger ( Zero Cost).

2nd option -&nbsp;If your workflow is triggered by Davis problems, and you’ve already set up a maintenance window (Part 1 above) with **“Disable problem detection”** , then no problems will be created during that window → no Davis problem event → your workflow won’t trigger at all.&nbsp;This is the simplest approach if your workflow trigger is Davis problem.

Thanks,

Sujit
