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
Description: "A list of string-to-string mappings for static labels. Each map must include one key named \"key\" and one key named \"value\" (using the `grafana_oncall_label` datasource).",
252
+
Set: schema.HashResource(&schema.Resource{
253
+
Schema: map[string]*schema.Schema{
254
+
"key": {Type: schema.TypeString},
255
+
"value": {Type: schema.TypeString},
256
+
},
257
+
}),
258
+
Description: "A set of static labels. Each item must include a \"key\" and \"value\" (using the `grafana_oncall_label` datasource).",
246
259
},
247
260
"dynamic_labels": {
248
-
Type: schema.TypeList,
249
-
Elem: &schema.Schema{
250
-
Type: schema.TypeMap,
251
-
Elem: &schema.Schema{
252
-
Type: schema.TypeString,
261
+
Type: schema.TypeSet,
262
+
Optional: true,
263
+
Elem: &schema.Resource{
264
+
Schema: map[string]*schema.Schema{
265
+
"key": {
266
+
Type: schema.TypeString,
267
+
Required: true,
268
+
},
269
+
"value": {
270
+
Type: schema.TypeString,
271
+
Required: true,
272
+
},
253
273
},
254
274
},
255
-
Optional: true,
256
-
Description: "A list of string-to-string mappings for dynamic labels. Each map must include one key named \"key\" and one key named \"value\" (using the `grafana_oncall_label` datasource).",
275
+
Set: schema.HashResource(&schema.Resource{
276
+
Schema: map[string]*schema.Schema{
277
+
"key": {Type: schema.TypeString},
278
+
"value": {Type: schema.TypeString},
279
+
},
280
+
}),
281
+
Description: "A set of dynamic labels. Each item must include a \"key\" and \"value\" (using the `grafana_oncall_label` datasource).",
257
282
},
258
283
},
259
284
}
@@ -321,10 +346,35 @@ func resourceIntegrationCreate(ctx context.Context, d *schema.ResourceData, clie
0 commit comments