Skip to content

Commit ca8c305

Browse files
committed
fix: examples for notifications channels
1 parent b77629c commit ca8c305

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

docs/resources/notification_discord_channel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ resource "netdata_notification_discord_channel" "test" {
2121
rooms_id = ["<room_id>"]
2222
repeat_notification_min = 30
2323
webhook_url = "https://discord.com/api/webhooks/0000000000000/XXXXXXXXXXXXXXXXXXXXXXXX"
24-
alarms = "ALARMS_SETTING_ALL"
24+
notifications = ["CRITICAL", "WARNING", "CLEAR"]
2525
channel_type = "text"
2626
}
2727
```

docs/resources/notification_pagerduty_channel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resource "netdata_notification_pagerduty_channel" "test" {
1919
enabled = true
2020
space_id = netdata_space.test.id
2121
rooms_id = ["<room_id>"]
22-
alarms = "ALARMS_SETTING_ALL"
22+
notifications = ["CRITICAL", "WARNING", "CLEAR"]
2323
repeat_notification_min = 30
2424
alert_events_url = "https://events.pagerduty.com/v2/enqueue"
2525
integration_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

docs/resources/notification_slack_channel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ resource "netdata_notification_slack_channel" "test" {
2121
rooms_id = ["<room_id>"]
2222
repeat_notification_min = 30
2323
webhook_url = "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
24-
alarms = "ALARMS_SETTING_ALL"
24+
notifications = ["CRITICAL", "WARNING", "CLEAR"]
2525
}
2626
```
2727

examples/resources/netdata_notification_discord_channel/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ resource "netdata_notification_discord_channel" "test" {
66
rooms_id = ["<room_id>"]
77
repeat_notification_min = 30
88
webhook_url = "https://discord.com/api/webhooks/0000000000000/XXXXXXXXXXXXXXXXXXXXXXXX"
9-
alarms = "ALARMS_SETTING_ALL"
9+
notifications = ["CRITICAL", "WARNING", "CLEAR"]
1010
channel_type = "text"
1111
}

examples/resources/netdata_notification_pagerduty_channel/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "netdata_notification_pagerduty_channel" "test" {
44
enabled = true
55
space_id = netdata_space.test.id
66
rooms_id = ["<room_id>"]
7-
alarms = "ALARMS_SETTING_ALL"
7+
notifications = ["CRITICAL", "WARNING", "CLEAR"]
88
repeat_notification_min = 30
99
alert_events_url = "https://events.pagerduty.com/v2/enqueue"
1010
integration_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

examples/resources/netdata_notification_slack_channel/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ resource "netdata_notification_slack_channel" "test" {
66
rooms_id = ["<room_id>"]
77
repeat_notification_min = 30
88
webhook_url = "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
9-
alarms = "ALARMS_SETTING_ALL"
9+
notifications = ["CRITICAL", "WARNING", "CLEAR"]
1010
}

0 commit comments

Comments
 (0)