Skip to content

Commit de2f9c1

Browse files
authored
docs: add simple example for IRM incident webhooks (#2291)
1 parent 723e379 commit de2f9c1

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/resources/oncall_outgoing_webhook.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ resource "grafana_oncall_outgoing_webhook" "test-acc-outgoing_webhook" {
2929
// Optional: specify the team to which the outgoing webhook belongs
3030
team_id = data.grafana_oncall_team.my_team.id
3131
}
32+
33+
resource "grafana_oncall_outgoing_webhook" "test-acc-outgoing_webhook-incident" {
34+
provider = grafana.oncall
35+
name = "my outgoing incident webhook"
36+
preset = "incident_webhook"
37+
http_method = "POST"
38+
url = "https://example.com/"
39+
trigger_type = "incident declared"
40+
}
3241
```
3342

3443
<!-- schema generated by tfplugindocs -->

examples/resources/grafana_oncall_outgoing_webhook/resource.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,12 @@ resource "grafana_oncall_outgoing_webhook" "test-acc-outgoing_webhook" {
1414
// Optional: specify the team to which the outgoing webhook belongs
1515
team_id = data.grafana_oncall_team.my_team.id
1616
}
17+
18+
resource "grafana_oncall_outgoing_webhook" "test-acc-outgoing_webhook-incident" {
19+
provider = grafana.oncall
20+
name = "my outgoing incident webhook"
21+
preset = "incident_webhook"
22+
http_method = "POST"
23+
url = "https://example.com/"
24+
trigger_type = "incident declared"
25+
}

0 commit comments

Comments
 (0)