MON-247 split delay

This commit is contained in:
Quentin Manfroi 2018-09-03 09:48:23 +02:00
parent 20aea24943
commit d8709927e1
2 changed files with 9 additions and 4 deletions

View File

@ -18,9 +18,14 @@ variable "message" {
description = "Message sent when a monitor is triggered" description = "Message sent when a monitor is triggered"
} }
variable "delay" { variable "evaluation_delay" {
description = "Delay in seconds for the metric evaluation" description = "Delay in seconds for the metric evaluation"
default = 60 default = 15
}
variable "new_host_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
} }
# Datadog monitors variables # Datadog monitors variables

View File

@ -12,8 +12,8 @@ resource "datadog_monitor" "ark_schedules_monitor" {
warning = 0 warning = 0
} }
evaluation_delay = "${var.delay}" evaluation_delay = "${var.evaluation_delay}"
new_host_delay = "${var.delay}" new_host_delay = "${var.new_host_delay}"
no_data_timeframe = "${var.ark_schedules_monitor_no_data_timeframe}" no_data_timeframe = "${var.ark_schedules_monitor_no_data_timeframe}"
notify_no_data = true notify_no_data = true