Skip to content

Commit

Permalink
Merge pull request #76 from DFE-Digital/792-override-statuscake-confi…
Browse files Browse the repository at this point in the history
…rmations

[792] Override statuscake confirmations
  • Loading branch information
saliceti authored Nov 21, 2023
2 parents 0e90e8d + ee988d6 commit 8c6c2e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion monitoring/statuscake/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "statuscake_uptime_check" "main" {

name = each.value
contact_groups = var.contact_groups
confirmation = 2
confirmation = var.confirmation
trigger_rate = 0
check_interval = 30
regions = ["london", "dublin"]
Expand Down
1 change: 1 addition & 0 deletions monitoring/statuscake/tfdocs.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ No modules.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_confirmation"></a> [confirmation](#input\_confirmation) | Retry the check when an error is detected to avoid false positives and micro downtimes | `number` | `2` | no |
| <a name="input_contact_groups"></a> [contact\_groups](#input\_contact\_groups) | Contact groups for the alerts | `list(string)` | `[]` | no |
| <a name="input_ssl_urls"></a> [ssl\_urls](#input\_ssl\_urls) | Set of URLs to perform SSL checks on | `list(string)` | `[]` | no |
| <a name="input_uptime_urls"></a> [uptime\_urls](#input\_uptime\_urls) | Set of URLs to perform uptime checks on | `list(string)` | `[]` | no |
Expand Down
6 changes: 6 additions & 0 deletions monitoring/statuscake/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ variable "contact_groups" {
description = "Contact groups for the alerts"
default = []
}

variable "confirmation" {
type = number
description = "Retry the check when an error is detected to avoid false positives and micro downtimes"
default = 2
}

0 comments on commit 8c6c2e0

Please sign in to comment.