When detector is updated, if new monitors are created and/or old monitors are deleted we also need to update the composite monitor sequence.
Update detector flow would involve the following interactions with alerting:
- create new monitors if any
- update sequence of detector's composite monitor by removing old monitor ids(if any monitors need to be deleted) and add new monitor ids
- if step one or two fail delete any newly created monitors, else delete monitors which are not required anymore
When detector is updated, if new monitors are created and/or old monitors are deleted we also need to update the composite monitor sequence.
Update detector flow would involve the following interactions with alerting: