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
This section lists the arguments that are supported:
91
91
92
-
-`preconfigured_alert_ids` - (Optional, Set of String) A set of preconfigured alert rule IDs to enable. Use the [`scaleway_cockpit_preconfigured_alert`](../data-sources/cockpit_preconfigured_alert.md) data source to list available alerts.
92
+
-`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.
93
93
-`enable_managed_alerts` - **Deprecated** (Optional, Boolean) Use `preconfigured_alert_ids` instead. This field will be removed in a future version.
94
94
-`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`.
95
95
-`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.
@@ -100,6 +100,7 @@ This section lists the arguments that are supported:
100
100
In addition to all arguments above, the following attributes are exported:
101
101
102
102
-`alert_manager_url` - The URL of the alert manager.
103
+
-`default_preconfigured_alert_ids` - (Set of String) A set of preconfigured alert rule IDs that are enabled automatically by the API when the alert manager is activated. This is a computed field that shows which alerts the API enables by default.
Description: "List of preconfigured alert rule IDs to enable. Use the scaleway_cockpit_preconfigured_alert data source to list available alerts.",
39
+
Description: "List of preconfigured alert rule IDs to enable explicitly. Use the scaleway_cockpit_preconfigured_alert data source to list available alerts.",
40
+
Elem: &schema.Schema{Type: schema.TypeString},
41
+
},
42
+
"default_preconfigured_alert_ids": {
43
+
Type: schema.TypeSet,
44
+
Computed: true,
45
+
Description: "List of preconfigured alert rule IDs enabled automatically by the API when alert manager is activated.",
40
46
Elem: &schema.Schema{Type: schema.TypeString},
41
47
},
42
48
"contact_points": {
@@ -94,8 +100,8 @@ func ResourceCockpitAlertManagerCreate(ctx context.Context, d *schema.ResourceDa
94
100
returndiag.FromErr(err)
95
101
}
96
102
97
-
// Note: Waiting for alerts to be enabled will be handled by SDK waiters when available
98
-
// For now, we continue without waiting as the Read function handles enabling/enabled states
103
+
// Note: Waiting for alerts to be enabled will be handled by SDK waiters when available
104
+
// For now, we continue without waiting as the Read function handles enabling/enabled states
99
105
}
100
106
}
101
107
@@ -158,49 +164,59 @@ func ResourceCockpitAlertManagerRead(ctx context.Context, d *schema.ResourceData
This section lists the arguments that are supported:
92
92
93
-
- `preconfigured_alert_ids` - (Optional, Set of String) A set of preconfigured alert rule IDs to enable. Use the [`scaleway_cockpit_preconfigured_alert`](../data-sources/cockpit_preconfigured_alert.md) data source to list available alerts.
93
+
- `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
94
- `enable_managed_alerts` - **Deprecated** (Optional, Boolean) Use `preconfigured_alert_ids` instead. This field will be removed in a future version.
95
95
- `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`.
96
96
- `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.
@@ -101,6 +101,7 @@ This section lists the arguments that are supported:
101
101
In addition to all arguments above, the following attributes are exported:
102
102
103
103
- `alert_manager_url` - The URL of the alert manager.
104
+
- `default_preconfigured_alert_ids` - (Set of String) A set of preconfigured alert rule IDs that are enabled automatically by the API when the alert manager is activated. This is a computed field that shows which alerts the API enables by default.
0 commit comments