Skip to content

Commit 99f3b18

Browse files
committed
docs: clarify legacy managed alerts enables all preconfigured alerts
1 parent e10e4cb commit 99f3b18

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

internal/services/cockpit/alert_manager.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,8 @@ func ResourceCockpitAlertManagerRead(ctx context.Context, d *schema.ResourceData
181181
if err != nil {
182182
if httperrors.Is404(err) {
183183
d.SetId("")
184-
185184
return nil
186185
}
187-
188186
return diag.FromErr(err)
189187
}
190188

templates/resources/cockpit_alert_manager.md.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ resource "scaleway_cockpit_alert_manager" "alert_manager" {
8989
This section lists the arguments that are supported:
9090

9191
- `preconfigured_alert_ids` - (Optional, Set of String) A set of preconfigured alert rule IDs to enable explicitly. Use the [`scaleway_cockpit_preconfigured_alert`](../data-sources/cockpit_preconfigured_alert.md) data source to list available alerts.
92-
- `enable_managed_alerts` - **Deprecated** (Optional, Boolean) Use `preconfigured_alert_ids` instead. This field will be removed in a future version.
92+
- `enable_managed_alerts` - **Deprecated** (Optional, Boolean) Use `preconfigured_alert_ids` instead. This field will be removed in a future version. When set to `true`, it enables *all* preconfigured alerts for the project. You cannot filter or disable individual alerts with this legacy flag.
9393
- `contact_points` - (Optional, List of Map) A list of contact points with email addresses that will receive alerts. Each map should contain a single key `email`.
9494
- `project_id` - (Defaults to the Project ID specified in the [provider configuration](../index.md#project_id)) The ID of the Project the Cockpit is associated with.
9595
- `region` - (Defaults to the region specified in the [provider configuration](../index.md#arguments-reference)) The [region](../guides/regions_and_zones.md#regions) where the [alert manager](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#alert-manager) should be enabled.

0 commit comments

Comments
 (0)