2015-11-28 02:03:15 +01:00
|
|
|
---
|
|
|
|
layout: "statuscake"
|
|
|
|
page_title: "StatusCake: statuscake_test"
|
|
|
|
sidebar_current: "docs-statuscake-test"
|
|
|
|
description: |-
|
|
|
|
The statuscake_test resource allows StatusCake tests to be managed by Terraform.
|
|
|
|
---
|
|
|
|
|
|
|
|
# statuscake\_test
|
|
|
|
|
2017-01-17 17:11:23 +01:00
|
|
|
The test resource allows StatusCake tests to be managed by Terraform.
|
2015-11-28 02:03:15 +01:00
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "statuscake_test" "google" {
|
2017-02-18 23:48:50 +01:00
|
|
|
website_name = "google.com"
|
|
|
|
website_url = "www.google.com"
|
|
|
|
test_type = "HTTP"
|
|
|
|
check_rate = 300
|
|
|
|
contact_id = 12345
|
2015-11-28 02:03:15 +01:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `website_name` - (Required) This is the name of the test and the website to be monitored.
|
|
|
|
* `website_url` - (Required) The URL of the website to be monitored
|
|
|
|
* `check_rate` - (Optional) Test check rate in seconds. Defaults to 300
|
2016-06-10 19:37:44 +02:00
|
|
|
* `contact_id` - (Optional) The id of the contact group to be add to the test. Each test can have only one.
|
2015-11-28 02:03:15 +01:00
|
|
|
* `test_type` - (Required) The type of Test. Either HTTP or TCP
|
|
|
|
* `paused` - (Optional) Whether or not the test is paused. Defaults to false.
|
|
|
|
* `timeout` - (Optional) The timeout of the test in seconds.
|
2016-08-29 01:00:27 +02:00
|
|
|
* `contact_id` - (Optional) The ID of the contact group to associate with the test.
|
2017-01-13 12:35:15 +01:00
|
|
|
* `confirmations` - (Optional) The number of confirmation servers to use in order to detect downtime. Defaults to 0.
|
2017-02-16 00:29:05 +01:00
|
|
|
* `port` - (Optional) The port to use when specifying a TCP test.
|
2017-04-10 14:58:41 +02:00
|
|
|
* `trigger_rate` - (Optional) The number of minutes to wait before sending an alert. Default is `5`.
|
2015-11-28 02:03:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attribute is exported:
|
|
|
|
|
2017-01-17 17:11:23 +01:00
|
|
|
* `test_id` - A unique identifier for the test.
|