diff --git a/CHANGELOG.md b/CHANGELOG.md index 759b736..e25a5c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.4.1 + +BUGFIXES: + +- fix examples for notifications channels + ## 0.4.0 BREAKING CHANGES: diff --git a/docs/resources/notification_discord_channel.md b/docs/resources/notification_discord_channel.md index 1295b7a..a9c40e5 100644 --- a/docs/resources/notification_discord_channel.md +++ b/docs/resources/notification_discord_channel.md @@ -21,7 +21,7 @@ resource "netdata_notification_discord_channel" "test" { rooms_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" } ``` diff --git a/docs/resources/notification_pagerduty_channel.md b/docs/resources/notification_pagerduty_channel.md index 6d7e6ef..edb92e1 100644 --- a/docs/resources/notification_pagerduty_channel.md +++ b/docs/resources/notification_pagerduty_channel.md @@ -19,7 +19,7 @@ resource "netdata_notification_pagerduty_channel" "test" { enabled = true space_id = netdata_space.test.id rooms_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" diff --git a/docs/resources/notification_slack_channel.md b/docs/resources/notification_slack_channel.md index 6a9e30e..15b9153 100644 --- a/docs/resources/notification_slack_channel.md +++ b/docs/resources/notification_slack_channel.md @@ -21,7 +21,7 @@ resource "netdata_notification_slack_channel" "test" { rooms_id = [""] repeat_notification_min = 30 webhook_url = "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX" - alarms = "ALARMS_SETTING_ALL" + notifications = ["CRITICAL", "WARNING", "CLEAR"] } ``` diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 5c41b77..2e9eddf 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -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" } @@ -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" @@ -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" } diff --git a/examples/resources/netdata_notification_discord_channel/resource.tf b/examples/resources/netdata_notification_discord_channel/resource.tf index ef3bc1d..448935e 100644 --- a/examples/resources/netdata_notification_discord_channel/resource.tf +++ b/examples/resources/netdata_notification_discord_channel/resource.tf @@ -6,6 +6,6 @@ resource "netdata_notification_discord_channel" "test" { rooms_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" } diff --git a/examples/resources/netdata_notification_pagerduty_channel/resource.tf b/examples/resources/netdata_notification_pagerduty_channel/resource.tf index 9f7e1aa..533205b 100644 --- a/examples/resources/netdata_notification_pagerduty_channel/resource.tf +++ b/examples/resources/netdata_notification_pagerduty_channel/resource.tf @@ -4,7 +4,7 @@ resource "netdata_notification_pagerduty_channel" "test" { enabled = true space_id = netdata_space.test.id rooms_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" diff --git a/examples/resources/netdata_notification_slack_channel/resource.tf b/examples/resources/netdata_notification_slack_channel/resource.tf index 3f14518..7941fcc 100644 --- a/examples/resources/netdata_notification_slack_channel/resource.tf +++ b/examples/resources/netdata_notification_slack_channel/resource.tf @@ -6,5 +6,5 @@ resource "netdata_notification_slack_channel" "test" { rooms_id = [""] repeat_notification_min = 30 webhook_url = "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX" - alarms = "ALARMS_SETTING_ALL" + notifications = ["CRITICAL", "WARNING", "CLEAR"] }