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: "Time zone for ingesting data in scheduled view. Follow the format in the [IANA Time Zone Database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).",
74
74
},
75
+
"auto_pause_enabled": {
76
+
Type: schema.TypeBool,
77
+
Optional: true,
78
+
Computed: true,
79
+
Description: "Auto Pause status of Scheduled View.",
80
+
},
75
81
},
76
82
}
77
83
}
@@ -86,6 +92,11 @@ func resourceSumologicScheduledViewCreate(d *schema.ResourceData, meta interface
86
92
sview.TimeZone=v.(string)
87
93
}
88
94
95
+
ifv, ok:=d.GetOkExists("auto_pause_enabled"); ok {
96
+
autoPauseEnabled:=v.(bool)
97
+
sview.AutoPauseEnabled=&autoPauseEnabled
98
+
}
99
+
89
100
createdSview, err:=c.CreateScheduledView(sview)
90
101
91
102
iferr!=nil {
@@ -125,6 +136,7 @@ func resourceSumologicScheduledViewRead(d *schema.ResourceData, meta interface{}
Copy file name to clipboardExpand all lines: website/docs/r/scheduled_view.html.markdown
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@ The following arguments are supported:
43
43
-`parsing_mode` - (Optional, Forces new resource) Default to `Manual`. Define the parsing mode to scan the JSON format log messages. Possible values are: `AutoParse` - In AutoParse mode, the system automatically figures out fields to parse based on the search query. `Manual` - While in the Manual mode, no fields are parsed out automatically. For more information see Dynamic Parsing.
44
44
-`reduce_retention_period_immediately` - (Optional) This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
45
45
-`time_zone` - (Optional) Time zone for ingesting data in scheduled view. Follow the format in the [IANA Time Zone Database][3].
46
+
-`auto_pause_enabled` - (Optional) Whether auto pause is enabled. Default is `true`.
0 commit comments