Skip to content

Commit

Permalink
chore: add description for alert channel subscriptions (#283)
Browse files Browse the repository at this point in the history
* chore: add description for alert channel subscriptions

* chore: add docs

* Update checkly/resource_check.go

Co-authored-by: Manel Fourati <[email protected]>

* Update docs/resources/check.md

Co-authored-by: Manel Fourati <[email protected]>

---------

Co-authored-by: Manel Fourati <[email protected]>
  • Loading branch information
Antoine-C and shiini2 authored Jan 30, 2024
1 parent 229f1b4 commit 6c91ede
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions checkly/resource_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func resourceCheck() *schema.Resource {
Type: schema.TypeBool,
Optional: true,
Description: "Setting this to `true` will trigger a retry when a check fails from the failing region and another, randomly selected region before marking the check as failed.",
Deprecated: "The property `double_check` is deprecated and will be removed in a future version. To enable retries for failed check runs, use the `retry_strategy` property instead.",
Deprecated: "The property `double_check` is deprecated and will be removed in a future version. To enable retries for failed check runs, use the `retry_strategy` property instead.",
},
"tags": {
Type: schema.TypeSet,
Expand Down Expand Up @@ -203,8 +203,9 @@ func resourceCheck() *schema.Resource {
Description: "The id of the runtime to use for this check.",
},
"alert_channel_subscription": {
Type: schema.TypeList,
Optional: true,
Type: schema.TypeList,
Optional: true,
Description: "An array of channel IDs and whether they're activated or not. If you don't set at least one alert subscription for your check, we won't be able to alert you in case something goes wrong with it.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"channel_id": {
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/check.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ resource "checkly_check" "example_check" {

### Optional

- `alert_channel_subscription` (Block List) (see [below for nested schema](#nestedblock--alert_channel_subscription))
- `alert_channel_subscription` (Block List) An array of channel IDs and whether they're activated or not. If you don't set at least one alert subscription for your check, we won't be able to alert you in case something goes wrong with it. (see [below for nested schema](#nestedblock--alert_channel_subscription))
- `alert_settings` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--alert_settings))
- `degraded_response_time` (Number) The response time in milliseconds starting from which a check should be considered degraded. Possible values are between 0 and 30000. (Default `15000`).
- `double_check` (Boolean, Deprecated) Setting this to `true` will trigger a retry when a check fails from the failing region and another, randomly selected region before marking the check as failed.
Expand Down

0 comments on commit 6c91ede

Please sign in to comment.