Skip to content

Commit 63405df

Browse files
authored
Added TF docs reference (#1339)
1 parent 4da73dd commit 63405df

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

site/content/docs/terraform-provider/checks-groups.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,34 @@ For example, a Multistep check can look as follows:
169169
}
170170
```
171171

172+
### Url Monitors
173+
174+
URL monitors check the availability and response time of HTTP(S) endpoints. They are ideal for simple uptime checks and ensure that your endpoints return expected status codes within the configured thresholds.
175+
176+
Below is a sample configuration for a URL monitor using Terraform:
177+
178+
```terraform
179+
resource "checkly_url_monitor" "example-url-monitor" {
180+
name = "Example URL monitor"
181+
activated = true
182+
frequency = 2
183+
use_global_alert_settings = true
184+
185+
locations = [
186+
"eu-west-1"
187+
]
188+
189+
request {
190+
url = "https://welcome.checklyhq.com"
191+
192+
assertion {
193+
source = "STATUS_CODE"
194+
comparison = "EQUALS"
195+
target = "200"
196+
}
197+
}
198+
}
199+
```
172200

173201
### Tcp Monitors
174202

0 commit comments

Comments
 (0)