If you need to generate alerts based on a schedule. Ie. only generate alert of a specific monitor during a certian maintenance window. This maybe required because maintence windows are per objects all the monitors fall under same window. In this case we can schedule per alert.
High Level Steps
- Copy Monitor Type and if ncessasry related modules from desired mp
- Copy Unit Monitor Type
- In the failed regulardetection add the scheduler filter
<ConditionDetection ID="Schedule" TypeID="System!System.SchedulerFilter">
<SchedulerFilter>
<ProcessDataMode>OnSchedule</ProcessDataMode>
<Schedule>
<WeeklySchedule>
<Windows>
<Daily>
<Start>08:00</Start>
<End>18:00</End>
<DaysOfWeekMask>62</DaysOfWeekMask>
</Daily>
</Windows>
</WeeklySchedule>
<ExcludeDates />
</Schedule>
<UseCurrentTime>true</UseCurrentTime>
</SchedulerFilter>
</ConditionDetection>
- Copy Alert String resource and Display Strings
- Update ids and references