forked from newrelic/terraform-newrelic-apm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
135 lines (113 loc) · 4.37 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
variable "application_name" {
description = "The name of the New Relic application to monitor"
type = string
}
variable "account_id" {
description = "The account ID the application reports to"
type = number
}
variable "policy_name" {
description = "The name of the alert policy to manage"
type = string
default = null
}
variable "runbook_url" {
description = "A URL that points to a runbook for when this application is failing"
type = string
default = null
}
variable "incident_preference" {
description = "The rollup strategy of the alert policy. Valid values are PER_POLICY, PER_CONDITION, and PER_CONDITION_AND_TARGET"
type = string
default = "PER_POLICY"
}
variable "channel_ids" {
description = "The notification channel IDs to link to this alert policy"
type = list(number)
default = null
}
variable "apdex_warning_threshold" {
description = "The threshold below which a warning violation will be triggered for the Apdex condition (percentage satisfied users)"
type = number
default = 0.8
}
variable "apdex_critical_threshold" {
description = "The threshold below which a critical violation will be triggered for the Apdex condition (percentage satisfied users)"
type = number
default = 0.7
}
variable "apdex_duration" {
description = "The evaluation window length of the Apdex condition (seconds). Value must be a multiple of 60 and within 120-3600 seconds for baseline conditions and 120-7200 seconds for static conditions."
type = number
default = 300
}
variable "apdex_t" {
description = "The response time above which a transaction is considered tolerable"
type = number
default = 0.4
}
variable "error_rate_warning_threshold" {
description = "The threshold above which a warning violation will be triggered for the error rate condition (errors/minute)"
type = number
default = 2
}
variable "error_rate_critical_threshold" {
description = "The threshold above which a critical violation will be triggered for the error rate condition (errors/minute)"
type = number
default = 5
}
variable "error_rate_duration" {
description = "The evaluation window length of the error rate condition (seconds). Value must be a multiple of 60 and within 120-3600 seconds for baseline conditions and 120-7200 seconds for static conditions."
type = number
default = 300
}
variable "application_url" {
description = "The URL to use when configuring a Synthetics monitor for this application"
type = string
default = null
}
variable "synthetics_monitor_frequency" {
description = "The interval on which to run Synthetics checks against the provided application URL"
type = number
default = 5
}
variable "synthetics_monitor_locations" {
description = "The locations to run Synthetics checks from"
type = list(string)
default = ["AWS_US_EAST_1"]
}
variable "synthetics_monitor_validation_string" {
description = "An optional string to check existence of when running Synthetics checks"
type = string
default = null
}
variable "synthetics_monitor_verify_ssl" {
description = "If true, verifies SSL when running Synthetics checks"
type = bool
default = false
}
variable "synthetics_condition_threshold" {
description = "The threshold above which a critical violation will be triggered for the Synthetics condition (failure count)"
type = number
default = 0
}
variable "synthetics_condition_duration" {
description = "The evaluation window length of the Synthetics condition (seconds). Value must be a multiple of 60 and within 120-3600 seconds for baseline conditions and 120-7200 seconds for static conditions."
type = number
default = 300
}
variable "response_time_warning_threshold" {
description = "The threshold above which a warning violation will be triggered for the response time condition (seconds)"
type = number
default = 1
}
variable "response_time_critical_threshold" {
description = "The threshold above which a critical violation will be triggered for the response time condition (seconds)"
type = number
default = null
}
variable "response_time_duration" {
description = "The evaluation window length of the error rate condition (minutes)"
type = number
default = 5
}