Skip to content

Commit 1ce8e59

Browse files
OnCall: Default webhooks to enabled (#1647)
* OnCall: Default webhooks to enabled Closes #1645 As documented * go generate
1 parent d2c8144 commit 1ce8e59

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: docs/resources/oncall_outgoing_webhook.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ resource "grafana_oncall_outgoing_webhook" "test-acc-outgoing_webhook" {
3636
- `headers` (String) Headers to add to the outgoing webhook request.
3737
- `http_method` (String) The HTTP method used in the request made by the outgoing webhook. Defaults to `POST`.
3838
- `integration_filter` (List of String) Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are selected the outgoing webhook will trigger for any integration.
39-
- `is_webhook_enabled` (Boolean) Controls whether the outgoing webhook will trigger or is ignored. The default is `true`.
39+
- `is_webhook_enabled` (Boolean) Controls whether the outgoing webhook will trigger or is ignored. Defaults to `true`.
4040
- `password` (String, Sensitive) The auth data of the webhook. Used for Basic authentication
4141
- `team_id` (String) The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana_oncall_team` datasource.
4242
- `trigger_template` (String) A template used to dynamically determine whether the webhook should execute based on the content of the payload.

Diff for: internal/resources/oncall/resource_outgoing_webhook.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ func resourceOutgoingWebhook() *common.Resource {
9898
"is_webhook_enabled": {
9999
Type: schema.TypeBool,
100100
Optional: true,
101-
Description: "Controls whether the outgoing webhook will trigger or is ignored. The default is `true`.",
101+
Default: true,
102+
Description: "Controls whether the outgoing webhook will trigger or is ignored.",
102103
},
103104
},
104105
}

0 commit comments

Comments
 (0)