Skip to content

Commit

Permalink
OnCall: Default webhooks to enabled (#1647)
Browse files Browse the repository at this point in the history
* OnCall: Default webhooks to enabled
Closes #1645
As documented

* go generate
  • Loading branch information
julienduchesne authored Jun 14, 2024
1 parent d2c8144 commit 1ce8e59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/resources/oncall_outgoing_webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ resource "grafana_oncall_outgoing_webhook" "test-acc-outgoing_webhook" {
- `headers` (String) Headers to add to the outgoing webhook request.
- `http_method` (String) The HTTP method used in the request made by the outgoing webhook. Defaults to `POST`.
- `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.
- `is_webhook_enabled` (Boolean) Controls whether the outgoing webhook will trigger or is ignored. The default is `true`.
- `is_webhook_enabled` (Boolean) Controls whether the outgoing webhook will trigger or is ignored. Defaults to `true`.
- `password` (String, Sensitive) The auth data of the webhook. Used for Basic authentication
- `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.
- `trigger_template` (String) A template used to dynamically determine whether the webhook should execute based on the content of the payload.
Expand Down
3 changes: 2 additions & 1 deletion internal/resources/oncall/resource_outgoing_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ func resourceOutgoingWebhook() *common.Resource {
"is_webhook_enabled": {
Type: schema.TypeBool,
Optional: true,
Description: "Controls whether the outgoing webhook will trigger or is ignored. The default is `true`.",
Default: true,
Description: "Controls whether the outgoing webhook will trigger or is ignored.",
},
},
}
Expand Down

0 comments on commit 1ce8e59

Please sign in to comment.