github.com/GoogleCloudPlatform/terraformer@v0.8.18/tests/datadog/resources/monitor.tf (about) 1 # Create a new Datadog monitor 2 resource "datadog_monitor" "monitor_example" { 3 name = "Name for monitor foo" 4 type = "metric alert" 5 message = "Monitor triggered. Notify: @hipchat-channel" 6 escalation_message = "Escalation message @pagerduty" 7 8 query = "avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} > 4" 9 10 thresholds = { 11 ok = 0 12 warning = 2 13 warning_recovery = 1 14 critical = 4 15 critical_recovery = 3 16 } 17 18 notify_no_data = false 19 renotify_interval = 60 20 21 notify_audit = false 22 timeout_h = 60 23 include_tags = true 24 25 # ignore any changes in silenced value; using silenced is deprecated in favor of downtimes 26 lifecycle { 27 ignore_changes = [silenced] 28 } 29 30 tags = ["foo:bar", "baz"] 31 }