Skip to content

Commit 6ad5496

Browse files
add callout for grafana_notification_policy (#878)
* add clearer warning for grafana_notification_policy * go generate --------- Co-authored-by: Martin Englund <[email protected]>
1 parent 9a5e14b commit 6ad5496

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docs/resources/notification_policy.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
page_title: "grafana_notification_policy Resource - terraform-provider-grafana"
44
subcategory: "Alerting"
55
description: |-
6-
Sets the global notification policy for Grafana. Note that this resource manages the entire notification policy tree, and will overwrite any existing policies.
6+
Sets the global notification policy for Grafana.
7+
!> This resource manages the entire notification policy tree, and will overwrite any existing policies.
78
Official documentation https://grafana.com/docs/grafana/latest/alerting/manage-notifications/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/
89
This resource requires Grafana 9.1.0 or later.
910
---
1011

1112
# grafana_notification_policy (Resource)
1213

13-
Sets the global notification policy for Grafana. Note that this resource manages the entire notification policy tree, and will overwrite any existing policies.
14+
Sets the global notification policy for Grafana.
15+
16+
!> This resource manages the entire notification policy tree, and will overwrite any existing policies.
1417

1518
* [Official documentation](https://grafana.com/docs/grafana/latest/alerting/manage-notifications/)
1619
* [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/)

internal/resources/grafana/resource_alerting_notification_policy.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ import (
1414
func ResourceNotificationPolicy() *schema.Resource {
1515
return &schema.Resource{
1616
Description: `
17-
Sets the global notification policy for Grafana. Note that this resource manages the entire notification policy tree, and will overwrite any existing policies.
17+
Sets the global notification policy for Grafana.
18+
19+
!> This resource manages the entire notification policy tree, and will overwrite any existing policies.
1820
1921
* [Official documentation](https://grafana.com/docs/grafana/latest/alerting/manage-notifications/)
2022
* [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/)

0 commit comments

Comments
 (0)