Skip to content

Commit 411c08e

Browse files
committed
monitors fixes
1 parent 9f8dabc commit 411c08e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

sumologic/resource_sumologic_monitors_library_monitor.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,11 @@ func resourceSumologicMonitorsLibraryMonitor() *schema.Resource {
197197
Optional: true,
198198
},
199199
"status": {
200-
Type: schema.TypeString,
200+
Type: schema.TypeList,
201201
Optional: true,
202-
Computed: true,
202+
Elem: &schema.Schema{
203+
Type: schema.TypeString,
204+
},
203205
},
204206
"group_notifications": {
205207
Type: schema.TypeBool,

sumologic/sumologic_monitors_library_monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ type MonitorsLibraryMonitor struct {
117117
ContentType string `json:"contentType"`
118118
ModifiedBy string `json:"modifiedBy"`
119119
IsDisabled bool `json:"isDisabled"`
120-
Status string `json:"status"`
120+
Status []string `json:"status"`
121121
GroupNotifications bool `json:"groupNotifications"`
122122
}
123123

website/docs/r/monitor.html.markdown

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ resource "sumologic_monitor" "tf_metrics_monitor_1" {
7979
detection_method = "StaticCondition"
8080
}
8181
notifications {
82-
notification_type = "EmailAction"
8382
notification {
8483
action_type = "EmailAction"
8584
recipients = ["[email protected]"]

0 commit comments

Comments
 (0)