You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(alerts): add notify_on_acknwoledge, deprecated opts at notification channel level (#679)
* add new attribute `notify_on_acknwoledge` on all alert resources, it
should be used if one want to send a notification for an alert that has
been manually acknowledged by a user;
* deprecate `notify_when_ok` and `notify_when_resolved` on notification
channel resources: users should define these behaviors at alert level
now.
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.",
28
29
},
29
30
"notify_when_resolved": {
30
-
Type: schema.TypeBool,
31
-
Optional: true,
32
-
Default: false,
31
+
Type: schema.TypeBool,
32
+
Optional: true,
33
+
Default: false,
34
+
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.",
Copy file name to clipboardExpand all lines: sysdig/resource_sysdig_secure_notification_channel_common.go
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -22,14 +22,16 @@ func createSecureNotificationChannelSchema(original map[string]*schema.Schema) m
22
22
Default: false,
23
23
},
24
24
"notify_when_ok": {
25
-
Type: schema.TypeBool,
26
-
Optional: true,
27
-
Default: false,
25
+
Type: schema.TypeBool,
26
+
Optional: true,
27
+
Default: false,
28
+
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.",
28
29
},
29
30
"notify_when_resolved": {
30
-
Type: schema.TypeBool,
31
-
Optional: true,
32
-
Default: false,
31
+
Type: schema.TypeBool,
32
+
Optional: true,
33
+
Default: false,
34
+
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.",
Copy file name to clipboardExpand all lines: website/docs/r/monitor_alert_v2_change.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,8 @@ By defining this field, the user can choose to which notification channels send
75
75
It is a list of objects with the following fields:
76
76
*`id` - (Required) The ID of the notification channel.
77
77
*`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`.
78
-
*`notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`.
78
+
*`notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`.
79
+
*`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.
79
80
*`main_threshold` - (Optional) Whether this notification channel is used for the main threshold of the alert. Default: `true`.
80
81
*`warning_threshold` - (Optional) Whether this notification channel is used for the warning threshold of the alert. Default: `false`.
Copy file name to clipboardExpand all lines: website/docs/r/monitor_alert_v2_downtime.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,8 @@ By defining this field, the user can choose to which notification channels send
63
63
It is a list of objects with the following fields:
64
64
*`id` - (Required) The ID of the notification channel.
65
65
*`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`.
66
-
*`notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`.
66
+
*`notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`.
67
+
*`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.
67
68
68
69
### `custom_notification`
69
70
@@ -94,7 +95,7 @@ Enables the creation of a capture file of the syscalls during the event.
94
95
*`duration_seconds` - (Optional) Time frame of the capture. Default: `15`.
95
96
*`storage` - (Optional) Custom bucket where to save the capture.
96
97
*`filter` - (Optional) Additional filter to apply to the capture. For example: `proc.name contains nginx`.
97
-
*`enabled` - (Optional) Wether to enable captures. Default: `true`.
98
+
*`enabled` - (Optional) Whether to enable captures. Default: `true`.
Copy file name to clipboardExpand all lines: website/docs/r/monitor_alert_v2_event.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,8 @@ By defining this field, the user can choose to which notification channels send
73
73
It is a list of objects with the following fields:
74
74
*`id` - (Required) The ID of the notification channel.
75
75
*`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`.
76
-
*`notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`.
76
+
*`notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`.
77
+
*`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.
77
78
*`main_threshold` - (Optional) Whether this notification channel is used for the main threshold of the alert. Default: `true`.
78
79
*`warning_threshold` - (Optional) Whether this notification channel is used for the warning threshold of the alert. Default: `false`.
79
80
@@ -106,7 +107,7 @@ Enables the creation of a capture file of the syscalls during the event.
106
107
*`duration_seconds` - (Optional) Time frame of the capture. Default: `15`.
107
108
*`storage` - (Optional) Custom bucket where to save the capture.
108
109
*`filter` - (Optional) Additional filter to apply to the capture. For example: `proc.name contains nginx`.
109
-
*`enabled` - (Optional) Wether to enable captures. Default: `true`.
110
+
*`enabled` - (Optional) Whether to enable captures. Default: `true`.
Copy file name to clipboardExpand all lines: website/docs/r/monitor_alert_v2_form_based_prometheus.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,8 @@ By defining this field, the user can choose to which notification channels send
54
54
It is a list of objects with the following fields:
55
55
*`id` - (Required) The ID of the notification channel.
56
56
*`renotify_every_minutes` - (Optional) the amount of minutes to wait before re sending the notification to this channel. `0` means no renotification enabled.
57
-
*`notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`.
57
+
*`notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`.
58
+
*`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.
58
59
*`main_threshold` - (Optional) Whether this notification channel is used for the main threshold of the alert. Default: `true`.
59
60
*`warning_threshold` - (Optional) Whether this notification channel is used for the warning threshold of the alert. Default: `false`.
Copy file name to clipboardExpand all lines: website/docs/r/monitor_alert_v2_group_outlier.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,8 @@ By defining this field, the user can choose to which notification channels send
75
75
It is a list of objects with the following fields:
76
76
*`id` - (Required) The ID of the notification channel.
77
77
*`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`.
78
-
*`notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`.
78
+
*`notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`.
79
+
*`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.
79
80
*`main_threshold` - (Optional) Whether this notification channel is used for the main threshold of the alert. Default: `true`.
80
81
*`warning_threshold` - (Optional) Whether this notification channel is used for the warning threshold of the alert. Default: `false`.
81
82
@@ -108,7 +109,7 @@ Enables the creation of a capture file of the syscalls during the event.
108
109
*`duration_seconds` - (Optional) Time frame of the capture. Default: `15`.
109
110
*`storage` - (Optional) Custom bucket where to save the capture.
110
111
*`filter` - (Optional) Additional filter to apply to the capture. For example: `proc.name contains nginx`.
111
-
*`enabled` - (Optional) Wether to enable captures. Default: `true`.
112
+
*`enabled` - (Optional) Whether to enable captures. Default: `true`.
Copy file name to clipboardExpand all lines: website/docs/r/monitor_alert_v2_metric.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,8 @@ By defining this field, the user can choose to which notification channels send
90
90
It is a list of objects with the following fields:
91
91
*`id` - (Required) The ID of the notification channel.
92
92
*`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`.
93
-
*`notify_on_resolve` - (Optional) Wether to send a notification when the alert is resolved. Default: `true`.
93
+
*`notify_on_resolve` - (Optional) Whether to send a notification when the alert is resolved. Default: `true`.
94
+
*`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.
94
95
*`main_threshold` - (Optional) Whether this notification channel is used for the main threshold of the alert. Default: `true`.
95
96
*`warning_threshold` - (Optional) Whether this notification channel is used for the warning threshold of the alert. Default: `false`.
96
97
@@ -123,7 +124,7 @@ Enables the creation of a capture file of the syscalls during the event.
123
124
*`duration_seconds` - (Optional) Time frame of the capture. Default: `15`.
124
125
*`storage` - (Optional) Custom bucket where to save the capture.
125
126
*`filter` - (Optional) Additional filter to apply to the capture. For example: `proc.name contains nginx`.
126
-
*`enabled` - (Optional) Wether to enable captures. Default: `true`.
127
+
*`enabled` - (Optional) Whether to enable captures. Default: `true`.
0 commit comments