Suppress alerts for HealthChecks during releases

From wikieduonline
Revision as of 10:08, 1 October 2024 by Welcome (talk | contribs) (Created page with " resource "opsgenie_alert_policy" "suppress_health_checks" { name = "Suppress Health Check Alerts" action = "suppress" conditions { teams = [opsgenie_team.ex...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
resource "opsgenie_alert_policy" "suppress_health_checks" {
  name   = "Suppress Health Check Alerts"
  action = "suppress"

  conditions {
    teams = [opsgenie_team.example_team.id]
    tags  = ["healthcheck", "non_critical"]  # Only suppress non-critical alerts
  }

  time_restriction {
    type       = "custom"
    start_date = "2024-10-01T10:00:00Z"
    end_date   = "2024-10-01T12:00:00Z"
  }
}



Activities

Related

See also

Advertising: