Skip to content

Commit 7ec3fe6

Browse files
committed
Add metric_treat_missing_data variable to examples/complete
1 parent 5a0fab2 commit 7ec3fe6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

examples/complete/fixtures.us-east-2.tfvars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,5 @@ security_group_rules = [
5555
]
5656

5757
ssh_public_key_path = "/secrets"
58+
59+
metric_treat_missing_data = "notBreaching"

examples/complete/variables.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,13 @@ variable "tenancy" {
4646
error_message = "Tenancy field can only be one of default, dedicated, host"
4747
}
4848
}
49+
50+
variable "metric_treat_missing_data" {
51+
type = string
52+
description = "Sets how this alarm is to handle missing data points. The following values are supported: `missing`, `ignore`, `breaching` and `notBreaching`. Defaults to `missing`."
53+
default = "missing"
54+
validation {
55+
condition = contains(["missing", "ignore", "breaching", "notBreaching"], var.metric_treat_missing_data)
56+
error_message = "The value of metric_treat_missing_data must be one of the following: \"missing\", \"ignore\", \"breaching\", and \"notBreaching\"."
57+
}
58+
}

0 commit comments

Comments
 (0)