forked from moneyforwardvietnam/terraform-datadog-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
44 lines (41 loc) · 1.5 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor
variable "datadog_monitors" {
type = map(object({
name = string
type = string
message = string
escalation_message = string
query = string
tags = list(string)
notify_no_data = bool
new_host_delay = number
evaluation_delay = number
no_data_timeframe = number
renotify_interval = number
notify_audit = bool
timeout_h = number
enable_logs_sample = bool
include_tags = bool
require_full_window = bool
locked = bool
force_delete = bool
threshold_windows = map(any)
thresholds = map(any)
}))
description = "Map of Datadog monitor configurations. See catalog for examples"
}
variable "alert_tags" {
type = list(string)
description = "List of alert tags to add to all alert messages, e.g. `[\"@opsgenie\"]` or `[\"@devops\", \"@opsgenie\"]`"
default = null
}
variable "alert_tags_separator" {
type = string
description = "Separator for the alert tags. All strings from the `alert_tags` variable will be joined into one string using the separator and then added to the alert message"
default = "\n"
}
variable "restricted_roles_map" {
type = map(set(string))
description = "Map of monitors names to sets of Datadog roles to restrict access to each monitor"
default = {}
}