Skip to content

Commit 4ef857a

Browse files
committed
fixed condition for frequency
1 parent 5d2f19b commit 4ef857a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • infrastructure/modules/application-insights-availability-test

infrastructure/modules/application-insights-availability-test/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,17 @@ EOT
140140

141141
variable "alert" {
142142
type = object({
143-
frequency = optional(string, "P1D")
143+
frequency = optional(string, "PT1H")
144144
window_size = optional(string, "P1D")
145145
auto_mitigate = optional(bool, true)
146146
})
147147

148148
validation {
149149
condition = contains(
150-
["PT1M", "PT5M", "PT15M", "PT30M", "PT1H", "PT6H", "PT12H", "P1D"],
150+
["PT1M", "PT5M", "PT15M", "PT30M", "PT1H"],
151151
var.alert.frequency
152152
)
153-
error_message = "Frequency must be one of: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H, P1D"
153+
error_message = "Frequency must be one of: PT1M, PT5M, PT15M, PT30M, PT1H"
154154
}
155155

156156
validation {
@@ -162,7 +162,7 @@ variable "alert" {
162162
}
163163

164164
default = {
165-
frequency = "P1D" # every 24 hours
165+
frequency = "PT1H" # every 24 hours
166166
window_size = "P1D" # last 24 hours
167167
auto_mitigate = true # automatically mitigate the alert when thie issue is resolved
168168
}

0 commit comments

Comments
 (0)