diff --git a/sysdig/internal/client/v2/model.go b/sysdig/internal/client/v2/model.go index 0b6fe7a9..b8112995 100644 --- a/sysdig/internal/client/v2/model.go +++ b/sysdig/internal/client/v2/model.go @@ -628,7 +628,7 @@ type NotificationChannelConfigV2 struct { } type NotificationChannelOptionsV2 struct { - NotifyOnAcknowledge bool `json:"notifyOnAcknowledge,omitempty"` + NotifyOnAcknowledge *bool `json:"notifyOnAcknowledge,omitempty"` NotifyOnResolve bool `json:"notifyOnResolve"` ReNotifyEverySec *int `json:"reNotifyEverySec"` CustomNotificationTemplate *CustomNotificationTemplateV2 `json:"customNotificationTemplate,omitempty"` diff --git a/sysdig/resource_sysdig_monitor_alert_v2_common.go b/sysdig/resource_sysdig_monitor_alert_v2_common.go index cab9ee41..c3c3057d 100644 --- a/sysdig/resource_sysdig_monitor_alert_v2_common.go +++ b/sysdig/resource_sysdig_monitor_alert_v2_common.go @@ -83,6 +83,11 @@ func createAlertV2Schema(original map[string]*schema.Schema) map[string]*schema. Optional: true, Default: true, }, + "notify_on_acknowledge": { + Type: schema.TypeString, + Optional: true, + ValidateFunc: validation.StringInSlice([]string{"true", "false"}, false), + }, "main_threshold": { Type: schema.TypeBool, Optional: true, @@ -262,6 +267,16 @@ func buildAlertV2CommonStruct(d *schema.ResourceData) *v2.AlertV2Common { } newChannel.OverrideOptions.NotifyOnResolve = channelMap["notify_on_resolve"].(bool) + if notifyOnAcknowledge, ok := channelMap["notify_on_acknowledge"]; ok && notifyOnAcknowledge.(string) != "" { + if notifyOnAcknowledge.(string) == "true" { + trueValue := true + newChannel.OverrideOptions.NotifyOnAcknowledge = &trueValue + } else { + falseValue := false + newChannel.OverrideOptions.NotifyOnAcknowledge = &falseValue + } + // else do not set any value for newChannel.OverrideOptions.NotifyOnAcknowledge + } newChannel.OverrideOptions.Thresholds = []string{} mainThreshold := channelMap["main_threshold"].(bool) @@ -358,6 +373,14 @@ func updateAlertV2CommonState(d *schema.ResourceData, alert *v2.AlertV2Common) ( "notify_on_resolve": ncc.OverrideOptions.NotifyOnResolve, } + if ncc.OverrideOptions.NotifyOnAcknowledge != nil { + if *ncc.OverrideOptions.NotifyOnAcknowledge { + config["notify_on_acknowledge"] = "true" + } else { + config["notify_on_acknowledge"] = "false" + } + } + if ncc.OverrideOptions.ReNotifyEverySec != nil { config["renotify_every_minutes"] = secondsToMinutes(*ncc.OverrideOptions.ReNotifyEverySec) } else { diff --git a/sysdig/resource_sysdig_monitor_notification_channel_common.go b/sysdig/resource_sysdig_monitor_notification_channel_common.go index b98c25a6..14848ff9 100644 --- a/sysdig/resource_sysdig_monitor_notification_channel_common.go +++ b/sysdig/resource_sysdig_monitor_notification_channel_common.go @@ -22,14 +22,16 @@ func createMonitorNotificationChannelSchema(original map[string]*schema.Schema) Default: false, }, "notify_when_ok": { - Type: schema.TypeBool, - Optional: true, - Default: false, + Type: schema.TypeBool, + Optional: true, + Default: false, + Deprecated: "The notify_when_ok field is deprecated and will be removed in a future version. This flag has been replaced by the `notify_on_resolve` field inside `notification_channels` when defining an alert resource.", }, "notify_when_resolved": { - Type: schema.TypeBool, - Optional: true, - Default: false, + Type: schema.TypeBool, + Optional: true, + Default: false, + Deprecated: "The notify_when_resolved field is deprecated and will be removed in a future version. This flag has been replaced by the `notify_on_acknowledge` field inside `notification_channels` when defining an alert resource.", }, "version": { Type: schema.TypeInt, diff --git a/sysdig/resource_sysdig_secure_notification_channel_common.go b/sysdig/resource_sysdig_secure_notification_channel_common.go index ec0d63f7..b314ffa8 100644 --- a/sysdig/resource_sysdig_secure_notification_channel_common.go +++ b/sysdig/resource_sysdig_secure_notification_channel_common.go @@ -22,14 +22,16 @@ func createSecureNotificationChannelSchema(original map[string]*schema.Schema) m Default: false, }, "notify_when_ok": { - Type: schema.TypeBool, - Optional: true, - Default: false, + Type: schema.TypeBool, + Optional: true, + Default: false, + Deprecated: "The notify_when_ok field is deprecated and will be removed in a future version. This flag has been replaced by the `notify_on_resolve` field inside `notification_channels` when defining an alert resource.", }, "notify_when_resolved": { - Type: schema.TypeBool, - Optional: true, - Default: false, + Type: schema.TypeBool, + Optional: true, + Default: false, + Deprecated: "The notify_when_resolved field is deprecated and will be removed in a future version. This flag has been replaced by the `notify_on_acknowledge` field inside `notification_channels` when defining an alert resource.", }, "version": { Type: schema.TypeInt, diff --git a/website/docs/r/monitor_alert_v2_change.md b/website/docs/r/monitor_alert_v2_change.md index 0affb350..ff172fe1 100644 --- a/website/docs/r/monitor_alert_v2_change.md +++ b/website/docs/r/monitor_alert_v2_change.md @@ -75,7 +75,8 @@ By defining this field, the user can choose to which notification channels send It is a list of objects with the following fields: * `id` - (Required) The ID of the notification channel. * `renotify_every_minutes` - (Optional) the amount of minutes to wait before re sending the notification to this channel. `0` means no renotification enabled. Default: `0`. -* `notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_acknowledge` - (Optional) Whether to send a notification when the alert is acknowledged. If not defined, this option is inherited from the `notify_when_resolved` option from the specific notification channel selected. * `main_threshold` - (Optional) Whether this notification channel is used for the main threshold of the alert. Default: `true`. * `warning_threshold` - (Optional) Whether this notification channel is used for the warning threshold of the alert. Default: `false`. diff --git a/website/docs/r/monitor_alert_v2_downtime.md b/website/docs/r/monitor_alert_v2_downtime.md index b5e3ad0f..6300085c 100644 --- a/website/docs/r/monitor_alert_v2_downtime.md +++ b/website/docs/r/monitor_alert_v2_downtime.md @@ -63,7 +63,8 @@ By defining this field, the user can choose to which notification channels send It is a list of objects with the following fields: * `id` - (Required) The ID of the notification channel. * `renotify_every_minutes` - (Optional) the amount of minutes to wait before re sending the notification to this channel. `0` means no renotification enabled. Default: `0`. -* `notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_acknowledge` - (Optional) Whether to send a notification when the alert is acknowledged. If not defined, this option is inherited from the `notify_when_resolved` option from the specific notification channel selected. ### `custom_notification` @@ -94,7 +95,7 @@ Enables the creation of a capture file of the syscalls during the event. * `duration_seconds` - (Optional) Time frame of the capture. Default: `15`. * `storage` - (Optional) Custom bucket where to save the capture. * `filter` - (Optional) Additional filter to apply to the capture. For example: `proc.name contains nginx`. -* `enabled` - (Optional) Wether to enable captures. Default: `true`. +* `enabled` - (Optional) Whether to enable captures. Default: `true`. ### Downtime alert arguments diff --git a/website/docs/r/monitor_alert_v2_event.md b/website/docs/r/monitor_alert_v2_event.md index 4d801315..38909191 100644 --- a/website/docs/r/monitor_alert_v2_event.md +++ b/website/docs/r/monitor_alert_v2_event.md @@ -73,7 +73,8 @@ By defining this field, the user can choose to which notification channels send It is a list of objects with the following fields: * `id` - (Required) The ID of the notification channel. * `renotify_every_minutes` - (Optional) the amount of minutes to wait before re sending the notification to this channel. `0` means no renotification enabled. Default: `0`. -* `notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_acknowledge` - (Optional) Whether to send a notification when the alert is acknowledged. If not defined, this option is inherited from the `notify_when_resolved` option from the specific notification channel selected. * `main_threshold` - (Optional) Whether this notification channel is used for the main threshold of the alert. Default: `true`. * `warning_threshold` - (Optional) Whether this notification channel is used for the warning threshold of the alert. Default: `false`. @@ -106,7 +107,7 @@ Enables the creation of a capture file of the syscalls during the event. * `duration_seconds` - (Optional) Time frame of the capture. Default: `15`. * `storage` - (Optional) Custom bucket where to save the capture. * `filter` - (Optional) Additional filter to apply to the capture. For example: `proc.name contains nginx`. -* `enabled` - (Optional) Wether to enable captures. Default: `true`. +* `enabled` - (Optional) Whether to enable captures. Default: `true`. ### Event alert arguments diff --git a/website/docs/r/monitor_alert_v2_form_based_prometheus.md b/website/docs/r/monitor_alert_v2_form_based_prometheus.md index aa885ca5..c1067474 100644 --- a/website/docs/r/monitor_alert_v2_form_based_prometheus.md +++ b/website/docs/r/monitor_alert_v2_form_based_prometheus.md @@ -54,7 +54,8 @@ By defining this field, the user can choose to which notification channels send It is a list of objects with the following fields: * `id` - (Required) The ID of the notification channel. * `renotify_every_minutes` - (Optional) the amount of minutes to wait before re sending the notification to this channel. `0` means no renotification enabled. -* `notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_acknowledge` - (Optional) Whether to send a notification when the alert is acknowledged. If not defined, this option is inherited from the `notify_when_resolved` option from the specific notification channel selected. * `main_threshold` - (Optional) Whether this notification channel is used for the main threshold of the alert. Default: `true`. * `warning_threshold` - (Optional) Whether this notification channel is used for the warning threshold of the alert. Default: `false`. diff --git a/website/docs/r/monitor_alert_v2_group_outlier.md b/website/docs/r/monitor_alert_v2_group_outlier.md index d4bc9caa..5a51652d 100644 --- a/website/docs/r/monitor_alert_v2_group_outlier.md +++ b/website/docs/r/monitor_alert_v2_group_outlier.md @@ -75,7 +75,8 @@ By defining this field, the user can choose to which notification channels send It is a list of objects with the following fields: * `id` - (Required) The ID of the notification channel. * `renotify_every_minutes` - (Optional) the amount of minutes to wait before re sending the notification to this channel. `0` means no renotification enabled. Default: `0`. -* `notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_acknowledge` - (Optional) Whether to send a notification when the alert is acknowledged. If not defined, this option is inherited from the `notify_when_resolved` option from the specific notification channel selected. * `main_threshold` - (Optional) Whether this notification channel is used for the main threshold of the alert. Default: `true`. * `warning_threshold` - (Optional) Whether this notification channel is used for the warning threshold of the alert. Default: `false`. @@ -108,7 +109,7 @@ Enables the creation of a capture file of the syscalls during the event. * `duration_seconds` - (Optional) Time frame of the capture. Default: `15`. * `storage` - (Optional) Custom bucket where to save the capture. * `filter` - (Optional) Additional filter to apply to the capture. For example: `proc.name contains nginx`. -* `enabled` - (Optional) Wether to enable captures. Default: `true`. +* `enabled` - (Optional) Whether to enable captures. Default: `true`. ### Group Outlier alert arguments diff --git a/website/docs/r/monitor_alert_v2_metric.md b/website/docs/r/monitor_alert_v2_metric.md index 01484092..96c151e1 100644 --- a/website/docs/r/monitor_alert_v2_metric.md +++ b/website/docs/r/monitor_alert_v2_metric.md @@ -90,7 +90,8 @@ By defining this field, the user can choose to which notification channels send It is a list of objects with the following fields: * `id` - (Required) The ID of the notification channel. * `renotify_every_minutes` - (Optional) the amount of minutes to wait before re sending the notification to this channel. `0` means no renotification enabled. Default: `0`. -* `notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_acknowledge` - (Optional) Whether to send a notification when the alert is acknowledged. If not defined, this option is inherited from the `notify_when_resolved` option from the specific notification channel selected. * `main_threshold` - (Optional) Whether this notification channel is used for the main threshold of the alert. Default: `true`. * `warning_threshold` - (Optional) Whether this notification channel is used for the warning threshold of the alert. Default: `false`. @@ -123,7 +124,7 @@ Enables the creation of a capture file of the syscalls during the event. * `duration_seconds` - (Optional) Time frame of the capture. Default: `15`. * `storage` - (Optional) Custom bucket where to save the capture. * `filter` - (Optional) Additional filter to apply to the capture. For example: `proc.name contains nginx`. -* `enabled` - (Optional) Wether to enable captures. Default: `true`. +* `enabled` - (Optional) Whether to enable captures. Default: `true`. ### Metric Threshold alert arguments diff --git a/website/docs/r/monitor_alert_v2_prometheus.md b/website/docs/r/monitor_alert_v2_prometheus.md index 4eab3b8b..7692f52a 100644 --- a/website/docs/r/monitor_alert_v2_prometheus.md +++ b/website/docs/r/monitor_alert_v2_prometheus.md @@ -56,7 +56,8 @@ By defining this field, the user can choose to which notification channels send It is a list of objects with the following fields: * `id` - (Required) The ID of the notification channel. * `renotify_every_minutes` - (Optional) the amount of minutes to wait before re sending the notification to this channel. `0` means no renotification enabled. -* `notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`. +* `notify_on_acknowledge` - (Optional) Whether to send a notification when the alert is acknowledged. If not defined, this option is inherited from the `notify_when_resolved` option from the specific notification channel selected. ### `custom_notification` diff --git a/website/docs/r/monitor_notification_channel_custom_webhook.md b/website/docs/r/monitor_notification_channel_custom_webhook.md index cfaaa3e6..9174aeb1 100644 --- a/website/docs/r/monitor_notification_channel_custom_webhook.md +++ b/website/docs/r/monitor_notification_channel_custom_webhook.md @@ -26,8 +26,6 @@ resource "sysdig_monitor_notification_channel_custom_webhook" "sample-custom-web "custom-Header": "TestHeader" } - notify_when_ok = false - notify_when_resolved = false send_test_notification = false } ``` @@ -48,11 +46,9 @@ resource "sysdig_monitor_notification_channel_custom_webhook" "sample-custom-web * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/monitor_notification_channel_email.md b/website/docs/r/monitor_notification_channel_email.md index 9f71c460..e04b6796 100644 --- a/website/docs/r/monitor_notification_channel_email.md +++ b/website/docs/r/monitor_notification_channel_email.md @@ -19,8 +19,6 @@ resource "sysdig_monitor_notification_channel_email" "sample_email" { name = "Example Channel - Email" recipients = ["foo@localhost.com", "bar@localhost.com"] enabled = true - notify_when_ok = false - notify_when_resolved = false send_test_notification = false } ``` @@ -34,11 +32,9 @@ resource "sysdig_monitor_notification_channel_email" "sample_email" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/monitor_notification_channel_google_chat.md b/website/docs/r/monitor_notification_channel_google_chat.md index 30756193..471f8cbc 100644 --- a/website/docs/r/monitor_notification_channel_google_chat.md +++ b/website/docs/r/monitor_notification_channel_google_chat.md @@ -19,8 +19,6 @@ resource "sysdig_monitor_notification_channel_google_chat" "sample-gchat" { name = "Example Channel - google chat" enabled = true url = "https://chat.googleapis.com/v1/spaces/XXXXXX/messages?key=XXXXXXXXXXXXXXXXX" - notify_when_ok = false - notify_when_resolved = false share_with_current_team = true } ``` @@ -33,11 +31,9 @@ resource "sysdig_monitor_notification_channel_google_chat" "sample-gchat" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/monitor_notification_channel_ibm_event_notification.md b/website/docs/r/monitor_notification_channel_ibm_event_notification.md index 8c6c528d..f0f6097b 100644 --- a/website/docs/r/monitor_notification_channel_ibm_event_notification.md +++ b/website/docs/r/monitor_notification_channel_ibm_event_notification.md @@ -20,8 +20,6 @@ resource "sysdig_monitor_notification_channel_ibm_event_notification" "sample" { name = "Example Channel - IBM Event Notification" enabled = true instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" - notify_when_ok = false - notify_when_resolved = false share_with_current_team = true } ``` @@ -32,8 +30,6 @@ resource "sysdig_monitor_notification_channel_ibm_event_notification" "sample" { name = "Example Channel - IBM Event Notification" enabled = true instance_id = "crn:v1:bluemix:public:event-notifications:global:a/59bcbfa6ea2f006b4ed7094c1a08dcdd:1a0ec336-f391-4091-a6fb-5e084a4c56f4::" - notify_when_ok = false - notify_when_resolved = false share_with_current_team = true } ``` @@ -46,11 +42,9 @@ resource "sysdig_monitor_notification_channel_ibm_event_notification" "sample" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/monitor_notification_channel_msteams.md b/website/docs/r/monitor_notification_channel_msteams.md index 13fd3308..fd4e6c6b 100644 --- a/website/docs/r/monitor_notification_channel_msteams.md +++ b/website/docs/r/monitor_notification_channel_msteams.md @@ -19,8 +19,6 @@ resource "sysdig_monitor_notification_channel_msteams" "sample-msteams" { name = "Example Channel - MS Teams" enabled = true url = "https://xxxxx.webhook.office.com/xxxxxxxxx" - notify_when_ok = false - notify_when_resolved = false share_with_current_team = true } ``` @@ -33,11 +31,9 @@ resource "sysdig_monitor_notification_channel_msteams" "sample-msteams" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/monitor_notification_channel_opsgenie.md b/website/docs/r/monitor_notification_channel_opsgenie.md index 29968dd7..baf11bc0 100644 --- a/website/docs/r/monitor_notification_channel_opsgenie.md +++ b/website/docs/r/monitor_notification_channel_opsgenie.md @@ -19,8 +19,6 @@ resource "sysdig_monitor_notification_channel_opsgenie" "sample-opsgenie" { name = "Example Channel - OpsGenie" enabled = true api_key = "2349324-342354353-5324-23" - notify_when_ok = false - notify_when_resolved = false } ``` @@ -34,11 +32,9 @@ resource "sysdig_monitor_notification_channel_opsgenie" "sample-opsgenie" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/monitor_notification_channel_pagerduty.md b/website/docs/r/monitor_notification_channel_pagerduty.md index 93bf8094..64e0bd23 100644 --- a/website/docs/r/monitor_notification_channel_pagerduty.md +++ b/website/docs/r/monitor_notification_channel_pagerduty.md @@ -21,8 +21,6 @@ resource "sysdig_monitor_notification_channel_pagerduty" "sample-pagerduty" { account = "account" service_key = "XXXXXXXXXX" service_name = "sysdig" - notify_when_ok = false - notify_when_resolved = false send_test_notification = false } ``` @@ -39,11 +37,9 @@ resource "sysdig_monitor_notification_channel_pagerduty" "sample-pagerduty" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/monitor_notification_channel_prometheus_alert_manager.md b/website/docs/r/monitor_notification_channel_prometheus_alert_manager.md index 5208ff6b..3465063b 100644 --- a/website/docs/r/monitor_notification_channel_prometheus_alert_manager.md +++ b/website/docs/r/monitor_notification_channel_prometheus_alert_manager.md @@ -19,8 +19,6 @@ resource "sysdig_monitor_notification_channel_prometheus_alert_manager" "sample" name = "Example Channel - Prometheus Alert Manager" enabled = true url = "https://testurl:8080" - notify_when_ok = false - notify_when_resolved = false send_test_notification = false additional_headers = { @@ -41,11 +39,9 @@ resource "sysdig_monitor_notification_channel_prometheus_alert_manager" "sample" * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/monitor_notification_channel_slack.md b/website/docs/r/monitor_notification_channel_slack.md index 0c569eb9..7fb82c6a 100644 --- a/website/docs/r/monitor_notification_channel_slack.md +++ b/website/docs/r/monitor_notification_channel_slack.md @@ -21,8 +21,6 @@ resource "sysdig_monitor_notification_channel_slack" "sample-slack" { url = "https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX" channel = "#sysdig" is_private_channel = false - notify_when_ok = false - notify_when_resolved = false } ``` @@ -54,11 +52,9 @@ resource "sysdig_monitor_notification_channel_slack" "sample-slack" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/monitor_notification_channel_sns.md b/website/docs/r/monitor_notification_channel_sns.md index 4bc69da6..ccc4235d 100644 --- a/website/docs/r/monitor_notification_channel_sns.md +++ b/website/docs/r/monitor_notification_channel_sns.md @@ -19,8 +19,6 @@ resource "sysdig_monitor_notification_channel_sns" "sample-amazon-sns" { name = "Example Channel - Amazon SNS" enabled = true topics = ["arn:aws:sns:us-east-1:273489009834:my-alerts2", "arn:aws:sns:us-east-1:279948934544:my-alerts"] - notify_when_ok = false - notify_when_resolved = false send_test_notification = false } ``` @@ -33,11 +31,9 @@ resource "sysdig_monitor_notification_channel_sns" "sample-amazon-sns" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/monitor_notification_channel_team_email.md b/website/docs/r/monitor_notification_channel_team_email.md index 3c997533..9c24e0e1 100644 --- a/website/docs/r/monitor_notification_channel_team_email.md +++ b/website/docs/r/monitor_notification_channel_team_email.md @@ -20,8 +20,6 @@ resource "sysdig_monitor_notification_channel_team_email" "sample-team-email" { team_id = 1 include_admin_users = false enabled = true - notify_when_ok = false - notify_when_resolved = false share_with_current_team = true } ``` @@ -36,11 +34,9 @@ resource "sysdig_monitor_notification_channel_team_email" "sample-team-email" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/monitor_notification_channel_victorops.md b/website/docs/r/monitor_notification_channel_victorops.md index 418dcafc..2c53934f 100644 --- a/website/docs/r/monitor_notification_channel_victorops.md +++ b/website/docs/r/monitor_notification_channel_victorops.md @@ -20,8 +20,6 @@ resource "sysdig_monitor_notification_channel_victorops" "sample-victorops" { enabled = true api_key = "1234342-4234243-4234-2" routing_key = "My team" - notify_when_ok = false - notify_when_resolved = false send_test_notification = false } ``` @@ -36,11 +34,9 @@ resource "sysdig_monitor_notification_channel_victorops" "sample-victorops" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/monitor_notification_channel_webhook.md b/website/docs/r/monitor_notification_channel_webhook.md index f9d356ed..16f86fc1 100644 --- a/website/docs/r/monitor_notification_channel_webhook.md +++ b/website/docs/r/monitor_notification_channel_webhook.md @@ -19,8 +19,6 @@ resource "sysdig_monitor_notification_channel_webhook" "sample-webhook" { name = "Example Channel - Webhook" enabled = true url = "localhost:8080" - notify_when_ok = false - notify_when_resolved = false send_test_notification = false custom_data = { @@ -44,11 +42,9 @@ resource "sysdig_monitor_notification_channel_webhook" "sample-webhook" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/secure_notification_channel_email.md b/website/docs/r/secure_notification_channel_email.md index 1c76e838..7bffd030 100644 --- a/website/docs/r/secure_notification_channel_email.md +++ b/website/docs/r/secure_notification_channel_email.md @@ -19,8 +19,6 @@ resource "sysdig_secure_notification_channel_email" "sample_email" { name = "Example Channel - Email" recipients = ["foo@localhost.com", "bar@localhost.com"] enabled = true - notify_when_ok = false - notify_when_resolved = false send_test_notification = false } ``` @@ -34,11 +32,9 @@ resource "sysdig_secure_notification_channel_email" "sample_email" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/secure_notification_channel_msteams.md b/website/docs/r/secure_notification_channel_msteams.md index d2667bb9..193e753e 100644 --- a/website/docs/r/secure_notification_channel_msteams.md +++ b/website/docs/r/secure_notification_channel_msteams.md @@ -16,12 +16,10 @@ Creates a Sysdig Secure Notification Channel of type MS Teams. ```terraform resource "sysdig_secure_notification_channel_msteams" "sample-msteams" { - name = "Example Channel - MS Teams" - enabled = true - url = "https://xxxxx.webhook.office.com/xxxxxxxxx" - notify_when_ok = false - notify_when_resolved = false - template_version = "v2" + name = "Example Channel - MS Teams" + enabled = true + url = "https://xxxxx.webhook.office.com/xxxxxxxxx" + template_version = "v2" } ``` @@ -33,11 +31,9 @@ resource "sysdig_secure_notification_channel_msteams" "sample-msteams" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. @@ -63,4 +59,4 @@ MS Teams notification channels for Secure can be imported using the ID, e.g. ``` $ terraform import sysdig_secure_notification_channel_msteams.example 12345 -``` \ No newline at end of file +``` diff --git a/website/docs/r/secure_notification_channel_opsgenie.md b/website/docs/r/secure_notification_channel_opsgenie.md index a3347f79..cb00a721 100644 --- a/website/docs/r/secure_notification_channel_opsgenie.md +++ b/website/docs/r/secure_notification_channel_opsgenie.md @@ -19,8 +19,6 @@ resource "sysdig_secure_notification_channel_opsgenie" "sample-opsgenie" { name = "Example Channel - OpsGenie" enabled = true api_key = "2349324-342354353-5324-23" - notify_when_ok = false - notify_when_resolved = false } ``` @@ -34,11 +32,9 @@ resource "sysdig_secure_notification_channel_opsgenie" "sample-opsgenie" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/secure_notification_channel_pagerduty.md b/website/docs/r/secure_notification_channel_pagerduty.md index e90d299e..aa1dad1f 100644 --- a/website/docs/r/secure_notification_channel_pagerduty.md +++ b/website/docs/r/secure_notification_channel_pagerduty.md @@ -21,8 +21,6 @@ resource "sysdig_secure_notification_channel_pagerduty" "sample-pagerduty" { account = "account" service_key = "XXXXXXXXXX" service_name = "sysdig" - notify_when_ok = false - notify_when_resolved = false send_test_notification = false } ``` @@ -39,11 +37,9 @@ resource "sysdig_secure_notification_channel_pagerduty" "sample-pagerduty" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/secure_notification_channel_prometheus_alert_manager.md b/website/docs/r/secure_notification_channel_prometheus_alert_manager.md index c0af7d46..1c946367 100644 --- a/website/docs/r/secure_notification_channel_prometheus_alert_manager.md +++ b/website/docs/r/secure_notification_channel_prometheus_alert_manager.md @@ -19,8 +19,6 @@ resource "sysdig_secure_notification_channel_prometheus_alert_manager" "sample" name = "Example Channel - Prometheus Alert Manager" enabled = true url = "https://testurl:8080" - notify_when_ok = false - notify_when_resolved = false send_test_notification = false additional_headers = { @@ -41,11 +39,9 @@ resource "sysdig_secure_notification_channel_prometheus_alert_manager" "sample" * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/secure_notification_channel_slack.md b/website/docs/r/secure_notification_channel_slack.md index ee726ee5..ed65ffd7 100644 --- a/website/docs/r/secure_notification_channel_slack.md +++ b/website/docs/r/secure_notification_channel_slack.md @@ -21,8 +21,6 @@ resource "sysdig_secure_notification_channel_slack" "sample-slack" { url = "https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX" channel = "#sysdig" is_private_channel = false - notify_when_ok = false - notify_when_resolved = false template_version = "v2" } ``` @@ -41,11 +39,9 @@ resource "sysdig_secure_notification_channel_slack" "sample-slack" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/secure_notification_channel_sns.md b/website/docs/r/secure_notification_channel_sns.md index d23f0bb5..044b49e8 100644 --- a/website/docs/r/secure_notification_channel_sns.md +++ b/website/docs/r/secure_notification_channel_sns.md @@ -19,8 +19,6 @@ resource "sysdig_secure_notification_channel_sns" "sample-amazon-sns" { name = "Example Channel - Amazon SNS" enabled = true topics = ["arn:aws:sns:us-east-1:273489009834:my-alerts2", "arn:aws:sns:us-east-1:279948934544:my-alerts"] - notify_when_ok = false - notify_when_resolved = false send_test_notification = false } ``` @@ -33,11 +31,9 @@ resource "sysdig_secure_notification_channel_sns" "sample-amazon-sns" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/secure_notification_channel_team_email.md b/website/docs/r/secure_notification_channel_team_email.md index fc21eae4..8997ea22 100644 --- a/website/docs/r/secure_notification_channel_team_email.md +++ b/website/docs/r/secure_notification_channel_team_email.md @@ -20,8 +20,6 @@ resource "sysdig_secure_notification_channel_team_email" "sample-team-email" { team_id = 1 include_admin_users = false enabled = true - notify_when_ok = false - notify_when_resolved = false share_with_current_team = true } ``` @@ -36,11 +34,9 @@ resource "sysdig_secure_notification_channel_team_email" "sample-team-email" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/secure_notification_channel_victorops.md b/website/docs/r/secure_notification_channel_victorops.md index 3c80c194..c4366a9b 100644 --- a/website/docs/r/secure_notification_channel_victorops.md +++ b/website/docs/r/secure_notification_channel_victorops.md @@ -20,8 +20,6 @@ resource "sysdig_secure_notification_channel_victorops" "sample-victorops" { enabled = true api_key = "1234342-4234243-4234-2" routing_key = "My team" - notify_when_ok = false - notify_when_resolved = false send_test_notification = false } ``` @@ -36,11 +34,9 @@ resource "sysdig_secure_notification_channel_victorops" "sample-victorops" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false. diff --git a/website/docs/r/secure_notification_channel_webhook.md b/website/docs/r/secure_notification_channel_webhook.md index 57163155..68a7b17e 100644 --- a/website/docs/r/secure_notification_channel_webhook.md +++ b/website/docs/r/secure_notification_channel_webhook.md @@ -19,8 +19,6 @@ resource "sysdig_secure_notification_channel_webhook" "sample-webhook" { name = "Example Channel - Webhook" enabled = true url = "localhost:8080" - notify_when_ok = false - notify_when_resolved = false send_test_notification = false custom_data = { @@ -40,11 +38,9 @@ resource "sysdig_secure_notification_channel_webhook" "sample-webhook" { * `enabled` - (Optional) If false, the channel will not emit notifications. Default is true. -* `notify_when_ok` - (Optional) Send a new notification when the alert condition is - no longer triggered. Default is false. +* `notify_when_ok` - (Optional, Deprecated) Send a new notification when the alert condition is no longer triggered. Default is `false`. This option is deprecated; use `notify_on_resolve` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. -* `notify_when_resolved` - (Optional) Send a new notification when the alert is manually - acknowledged by a user. Default is false. +* `notify_when_resolved` - (Optional, Deprecated) Send a new notification when the alert is manually acknowledged by a user. Default is `false`. This option is deprecated; use `notify_on_acknowledge` within the `notification_channels` options in the `sysdig_monitor_alert_v2_*` resources instead, which takes precedence over this setting. This option only applies to Monitor alerts when the channel is shared across all teams. It has no effect on Secure features. * `send_test_notification` - (Optional) Send an initial test notification to check if the notification channel is working. Default is false.