Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: alert suppression rule block #378

Merged
merged 1 commit into from
Dec 6, 2023
Merged

Conversation

thekaveman
Copy link
Member

@thekaveman thekaveman commented Dec 5, 2023

Redefine directly in a Terraform block, which is more straightforward and clear than the ARM template.

Reference: azurerm_monitor_alert_processing_rule_suppression

The scope here is set directly to the ID of the healthcheck alert, hence this suppression rule targets only that single resource. Thus we do not need any of the filtering for e.g. target_resource_type.

Closes #356

more straightforward and clear than an ARM template
@thekaveman thekaveman marked this pull request as ready for review December 5, 2023 17:32
@thekaveman thekaveman requested a review from a team as a code owner December 5, 2023 17:32
@thekaveman thekaveman self-assigned this Dec 5, 2023
Copy link
Member

@angela-tran angela-tran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked that these attributes are in azurerm 3.28.0 (the version we have in our lock file). This looks good to me 👍

@thekaveman thekaveman merged commit f6ac377 into dev Dec 6, 2023
@thekaveman thekaveman deleted the refactor/alert-suppression branch December 6, 2023 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Express uptime supression window in Pacific time
2 participants