When detector is deleted, bucket/doc level monitors and the composite monitor need to deleted as part of resource clean up.
Delete detector flow would involve the following interactions with alerting (ORDER MATTERS):
i. Delete the composite monitor first.
ii. Delete the doc/bucket level monitors
iii. if step i or step ii fail, mark delete detector request as failed.
When detector is deleted, bucket/doc level monitors and the composite monitor need to deleted as part of resource clean up.
Delete detector flow would involve the following interactions with alerting (ORDER MATTERS):
i. Delete the composite monitor first.
ii. Delete the doc/bucket level monitors
iii. if step i or step ii fail, mark delete detector request as failed.