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
applatform: remove dynamic types from alertrule resource using map (#2465)
This dynamic type was preventing generation of crossplane provider tooling as dynamic types are not supported. Follow up to #2426
Object type is also not supported unfortunately. Follow up to #2463
Co-authored-by: William Wernert <[email protected]>
-`labels` (Map of String) Key-value pairs to attach to the alert rule that can be used in matching, grouping, and routing.
168
168
-`missing_series_evals_to_resolve` (Number) The number of missing series evaluations that must occur before the rule is considered to be resolved.
169
169
-`notification_settings` (Block, Optional) Notification settings for the rule. If specified, it overrides the notification policies. (see [below for nested schema](#nestedblock--spec--notification_settings))
170
-
-`panel_ref` (Object) Reference to a panel that this alert rule is associated with. Should be an object with 'dashboard_uid' (string) and 'panel_id' (number) fields. (see [below for nested schema](#nestedatt--spec--panel_ref))
170
+
-`panel_ref` (Map of String) Reference to a panel that this alert rule is associated with. Should be an object with 'dashboard_uid' (string) and 'panel_id' (number) fields.
171
171
-`paused` (Boolean) Sets whether the rule should be paused or not.
172
172
-`trigger` (Block, Optional) The trigger configuration for the alert rule. (see [below for nested schema](#nestedblock--spec--trigger))
173
173
@@ -188,15 +188,6 @@ Optional:
188
188
-`repeat_interval` (String) Minimum time interval for re-sending a notification if an alert is still firing.
Description: "Key-value pairs to attach to the alert rule that can be used in matching, grouping, and routing.",
145
139
},
146
-
"panel_ref": schema.ObjectAttribute{
147
-
AttributeTypes: panelRefType.AttributeTypes(),
148
-
Optional: true,
149
-
Description: "Reference to a panel that this alert rule is associated with. Should be an object with 'dashboard_uid' (string) and 'panel_id' (number) fields.",
140
+
"panel_ref": schema.MapAttribute{
141
+
ElementType: types.StringType,
142
+
Optional: true,
143
+
Description: "Reference to a panel that this alert rule is associated with. Should be an object with 'dashboard_uid' (string) and 'panel_id' (number) fields.",
0 commit comments