Skip to content

Commit 26b22da

Browse files
committed
SUMO-172431: added playbook optional field for monitor manager
1 parent 54ccf32 commit 26b22da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sumologic/resource_sumologic_monitors_library_monitor.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,19 @@ func resourceSumologicMonitorsLibraryMonitor() *schema.Resource {
303303
Type: schema.TypeString,
304304
Required: true,
305305
},
306+
306307
"post_request_map": {
307308
Type: schema.TypeMap,
308309
Optional: true,
309310
Elem: &schema.Schema{
310311
Type: schema.TypeString,
311312
},
312313
},
314+
315+
"playbook": {
316+
Type: schema.TypeString,
317+
Optional: true
318+
}
313319
},
314320
}
315321
}
@@ -517,6 +523,7 @@ func resourceSumologicMonitorsLibraryMonitorRead(d *schema.ResourceData, meta in
517523
d.Set("is_disabled", monitor.IsDisabled)
518524
d.Set("status", monitor.Status)
519525
d.Set("group_notifications", monitor.GroupNotifications)
526+
d.Set("playbook", monitor.Playbook)
520527
// set notifications
521528
notifications := make([]interface{}, len(monitor.Notifications))
522529
for i, n := range monitor.Notifications {
@@ -1099,6 +1106,7 @@ func resourceToMonitorsLibraryMonitor(d *schema.ResourceData) MonitorsLibraryMon
10991106
IsDisabled: d.Get("is_disabled").(bool),
11001107
Status: status,
11011108
GroupNotifications: d.Get("group_notifications").(bool),
1109+
Playbook: d.Get("playbook").(bool),
11021110
}
11031111
}
11041112

0 commit comments

Comments
 (0)