Skip to content

Commit 5c678f6

Browse files
authored
Merge pull request #61 from netdata/fix/docs
fix: examples for notifications channels
2 parents b77629c + 95f3665 commit 5c678f6

File tree

8 files changed

+15
-9
lines changed

8 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.4.1
2+
3+
BUGFIXES:
4+
5+
- fix examples for notifications channels
6+
17
## 0.4.0
28

39
BREAKING CHANGES:

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/complete/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ resource "netdata_notification_slack_channel" "test" {
9090
enabled = true
9191
space_id = netdata_space.test.id
9292
rooms_id = [netdata_room.test.id]
93-
alarms = "ALARMS_SETTING_ALL"
93+
notifications = ["CRITICAL", "WARNING", "CLEAR"]
9494
repeat_notification_min = 60
9595
webhook_url = "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
9696
}
@@ -101,7 +101,7 @@ resource "netdata_notification_discord_channel" "test" {
101101
enabled = true
102102
space_id = netdata_space.test.id
103103
rooms_id = [netdata_room.test.id]
104-
alarms = "ALARMS_SETTING_ALL"
104+
notifications = ["CRITICAL", "WARNING", "CLEAR"]
105105
webhook_url = "https://discord.com/api/webhooks/0000000000000/XXXXXXXXXXXXXXXXXXXXXXXX"
106106
channel_type = "forum"
107107
channel_thread = "thread"
@@ -112,7 +112,7 @@ resource "netdata_notification_pagerduty_channel" "test" {
112112

113113
enabled = true
114114
space_id = netdata_space.test.id
115-
alarms = "ALARMS_SETTING_ALL"
115+
notifications = ["CRITICAL", "WARNING", "CLEAR"]
116116
alert_events_url = "https://events.pagerduty.com/v2/enqueue"
117117
integration_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
118118
}

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)