Skip to content

Commit

Permalink
Merge pull request #61 from netdata/fix/docs
Browse files Browse the repository at this point in the history
fix: examples for notifications channels
  • Loading branch information
witalisoft authored Feb 7, 2025
2 parents b77629c + 95f3665 commit 5c678f6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.4.1

BUGFIXES:

- fix examples for notifications channels

## 0.4.0

BREAKING CHANGES:
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/notification_discord_channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "netdata_notification_discord_channel" "test" {
rooms_id = ["<room_id>"]
repeat_notification_min = 30
webhook_url = "https://discord.com/api/webhooks/0000000000000/XXXXXXXXXXXXXXXXXXXXXXXX"
alarms = "ALARMS_SETTING_ALL"
notifications = ["CRITICAL", "WARNING", "CLEAR"]
channel_type = "text"
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/notification_pagerduty_channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "netdata_notification_pagerduty_channel" "test" {
enabled = true
space_id = netdata_space.test.id
rooms_id = ["<room_id>"]
alarms = "ALARMS_SETTING_ALL"
notifications = ["CRITICAL", "WARNING", "CLEAR"]
repeat_notification_min = 30
alert_events_url = "https://events.pagerduty.com/v2/enqueue"
integration_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/notification_slack_channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "netdata_notification_slack_channel" "test" {
rooms_id = ["<room_id>"]
repeat_notification_min = 30
webhook_url = "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
alarms = "ALARMS_SETTING_ALL"
notifications = ["CRITICAL", "WARNING", "CLEAR"]
}
```

Expand Down
6 changes: 3 additions & 3 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ resource "netdata_notification_slack_channel" "test" {
enabled = true
space_id = netdata_space.test.id
rooms_id = [netdata_room.test.id]
alarms = "ALARMS_SETTING_ALL"
notifications = ["CRITICAL", "WARNING", "CLEAR"]
repeat_notification_min = 60
webhook_url = "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
}
Expand All @@ -101,7 +101,7 @@ resource "netdata_notification_discord_channel" "test" {
enabled = true
space_id = netdata_space.test.id
rooms_id = [netdata_room.test.id]
alarms = "ALARMS_SETTING_ALL"
notifications = ["CRITICAL", "WARNING", "CLEAR"]
webhook_url = "https://discord.com/api/webhooks/0000000000000/XXXXXXXXXXXXXXXXXXXXXXXX"
channel_type = "forum"
channel_thread = "thread"
Expand All @@ -112,7 +112,7 @@ resource "netdata_notification_pagerduty_channel" "test" {

enabled = true
space_id = netdata_space.test.id
alarms = "ALARMS_SETTING_ALL"
notifications = ["CRITICAL", "WARNING", "CLEAR"]
alert_events_url = "https://events.pagerduty.com/v2/enqueue"
integration_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ resource "netdata_notification_discord_channel" "test" {
rooms_id = ["<room_id>"]
repeat_notification_min = 30
webhook_url = "https://discord.com/api/webhooks/0000000000000/XXXXXXXXXXXXXXXXXXXXXXXX"
alarms = "ALARMS_SETTING_ALL"
notifications = ["CRITICAL", "WARNING", "CLEAR"]
channel_type = "text"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "netdata_notification_pagerduty_channel" "test" {
enabled = true
space_id = netdata_space.test.id
rooms_id = ["<room_id>"]
alarms = "ALARMS_SETTING_ALL"
notifications = ["CRITICAL", "WARNING", "CLEAR"]
repeat_notification_min = 30
alert_events_url = "https://events.pagerduty.com/v2/enqueue"
integration_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ resource "netdata_notification_slack_channel" "test" {
rooms_id = ["<room_id>"]
repeat_notification_min = 30
webhook_url = "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
alarms = "ALARMS_SETTING_ALL"
notifications = ["CRITICAL", "WARNING", "CLEAR"]
}

0 comments on commit 5c678f6

Please sign in to comment.