# Maintenance Windows without filter is valid for the whole environment

**URL:** <https://community.dynatrace.com/t/maintenance-windows-without-filter-is-valid-for-the-whole-environment/42951>\
**Category:** Open Q&A\
**Tags:** maintenance-window\
**Created:** [November 30, 2023, 10:31am UTC](https://community.dynatrace.com/t/maintenance-windows-without-filter-is-valid-for-the-whole-environment/42951 "2023-11-30T10:31:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![agravier](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agravier/32/29303_2.png) [@agravier](https://community.dynatrace.com/u/agravier)\
**Post date:** [November 30, 2023, 10:31am UTC](https://community.dynatrace.com/t/maintenance-windows-without-filter-is-valid-for-the-whole-environment/42951/1 "2023-11-30T10:31:14Z")

</div>

Hello,

By default, if no filter is defined, the maintenance window is valid for the whole environment.  
I would avoid a human error so I’m trying to detect maintenance windows without filters like MZ, Tags, entity names etc…

1- I don’t find any fields on entity related to the maintenance mode  
2- I don’t find any metric in Dynatrace with the number of hosts in maintenance mode state, to create an alert.  
3- Through settings API, the array filters seems to be empty when no filters are applied :

 ![AurelienGravier_0-1701339231535.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/3/63d03f841a318af2cd296b740b74b94e93b1d1a2.png)

But I can’t use the filter parameter for the fields “filters” because it’ an array :

 ![AurelienGravier_1-1701339415595.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/d/ade372678e3aed47d2c7633eda6be64a70694b32.png)

{ “error”: { “code”: 400, “message”: “Unable to parse ‘filter’ at fieldName ‘value.filters’ with fieldType ‘ARRAY’ with operator ‘=’: unsupported operator: =” } }  
And there is no operator available in doc for array :&nbsp;[Filtering and sorting | Dynatrace Developer](https://developer.dynatrace.com/platform-services/general/filtering/#datatypes-and-operators)

Please, do you have another idea to detect this behavior ?  
Before, I’m creating a dedicated python script.

Thank you

Regards Aurélien.

---

_[View the full topic](https://community.dynatrace.com/t/maintenance-windows-without-filter-is-valid-for-the-whole-environment/42951)._
