Suppress alerts for HealthChecks during releases

From wikieduonline
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: