-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.tf
76 lines (62 loc) · 1.34 KB
/
test.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
variable "checkly_api_key" {}
provider "checkly" {
api_key = var.checkly_api_key
}
resource "checkly_check" "test-check2" {
name = "My test check 2"
type = "API"
activated = true
should_fail = true
frequency = 1
ssl_check_domain = "example.com"
double_check = true
degraded_response_time = 15000
max_response_time = 30000
locations = [
"us-west-1",
"ap-northeast-1",
"ap-south-1",
]
alert_settings {
escalation_type = "RUN_BASED"
run_based_escalation {
failed_run_threshold = 1
}
time_based_escalation {
minutes_failing_threshold = 5
}
ssl_certificates {
enabled = true
alert_threshold = 30
}
reminders {
amount = 1
}
}
request {
follow_redirects = true
url = "http://example.com/"
query_parameters = {
search = "foo"
}
headers = {
X-Bogus = "bogus"
}
assertion {
source = "JSON_BODY"
property = "code"
comparison = "HAS_VALUE"
target = "authentication.failed"
}
assertion {
source = "STATUS_CODE"
property = ""
comparison = "EQUALS"
target = "401"
}
basic_auth {
username = ""
password = ""
}
}
}