Difference between revisions of "Suppress alerts for HealthChecks during releases"

From wikieduonline
Jump to navigation Jump to search
(Created page with " resource "opsgenie_alert_policy" "suppress_health_checks" { name = "Suppress Health Check Alerts" action = "suppress" conditions { teams = [opsgenie_team.ex...")
 
 
Line 19: Line 19:
  
 
== Activities ==
 
== Activities ==
 +
* [[Opsgenie create alert]]
 
* [[Create a maintenance window in Opsgenie]]
 
* [[Create a maintenance window in Opsgenie]]
 
  
 
== Related ==
 
== Related ==

Latest revision as of 10:10, 1 October 2024

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[edit]

Related[edit]

See also[edit]

Advertising: