Skip to content

Commit a9b8e33

Browse files
committed
docs: clarify legacy managed alerts enables all preconfigured alerts
1 parent b078f00 commit a9b8e33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/services/cockpit/alert_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func ResourceCockpitAlertManager() *schema.Resource {
3333
Optional: true,
3434
Computed: true,
3535
Deprecated: "Use 'preconfigured_alert_ids' instead. This field will be removed in a future version.",
36-
Description: "Enable or disable the alert manager (deprecated)",
36+
Description: "Enable or disable the alert manager (deprecated). When set to true, it enables all preconfigured alerts for the project. You cannot filter or disable individual alerts with this legacy flag.",
3737
},
3838
"preconfigured_alert_ids": {
3939
Type: schema.TypeSet,

templates/resources/cockpit_alert_manager.md.tmpl

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

9393
- `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.
94-
- `enable_managed_alerts` - **Deprecated** (Optional, Boolean) Use `preconfigured_alert_ids` instead. This field will be removed in a future version.
94+
- `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.
9595
- `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`.
9696
- `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.
9797
- `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)