Resource
dcloud_uptime_check
An uptime check: an HTTP(S) URL requested from several locations on an interval, DOWN after failure_threshold failed runs in a row. enabled = false pauses it.
Example Usage
resource "dcloud_uptime_check" "api" {
name = "api"
type = "keyword"
url = "https://api.acme.example/health"
keyword = "\"ok\":true"
interval_seconds = 60
notify_emails = ["oncall@acme.example"]
}Schema
Required
name(String) Unique in the organization, up to 128 charactersurl(String) http:// or https:// on a public address; any port except 25, 465 and 587
Optional
alert_on_regional(Boolean) Treat one failing location as failed, as if confirmations were 1 (default false)confirmations(Number) Locations that must fail in one run for it to count as failed, 1–3 (default 2); fewer failing is "regional"enabled(Boolean) Whether the check runs;falsepauses it (defaulttrue).expected_status_max(Number) Highest status that counts as up (default 399)expected_status_min(Number) Lowest status that counts as up (default 200)failure_threshold(Number) Failed runs in a row before DOWN, 1–5 (default 2)follow_redirects(Boolean) Follow up to 5 redirects, each re-checked (default true)interval_seconds(Number) 60, 120, 300 (default), 600, 900, 1800 or 3600keyword(String) For keyword checks: the text looked for in the first 1 MiBkeyword_mode(String) contains (default) or not_contains. One of:contains,not_contains.method(String) GET by default; keyword checks use GET One of:GET,HEAD.notify_emails(List of String) Up to 10 addresses mailed on DOWN and on UP againtimeout_ms(Number) 1000–30000, default 10000type(String) http: the status decides; keyword: the body must (not) contain a text too One of:http,keyword.verify_tls(Boolean) Fail on an invalid certificate (default true)webhook_url(String) https URL on a public address, POSTed on DOWN and UP
Read-Only
id(String) The resource's id.state(String)pending,up,downorpaused.
Generated from the provider's schema.
Related