Skip to content

Commit 618b969

Browse files
committed
add defaults to saved searches fields
1 parent f9fb156 commit 618b969

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

splunk/resource_splunk_saved_searches.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func savedSearches() *schema.Resource {
242242
"action_email_track_alert": {
243243
Type: schema.TypeBool,
244244
Optional: true,
245-
Computed: true,
245+
Default: true,
246246
Description: "Indicates whether the execution of this action signifies a trackable alert.",
247247
},
248248
"action_email_ttl": {
@@ -269,7 +269,7 @@ func savedSearches() *schema.Resource {
269269
"action_email_width_sort_columns": {
270270
Type: schema.TypeBool,
271271
Optional: true,
272-
Computed: true,
272+
Default: true,
273273
Description: "Indicates whether columns should be sorted from least wide to most wide, left to right." +
274274
"Only valid if format=text.",
275275
},
@@ -414,7 +414,7 @@ func savedSearches() *schema.Resource {
414414
"action_script_track_alert": {
415415
Type: schema.TypeBool,
416416
Optional: true,
417-
Computed: true,
417+
Default: true,
418418
Description: "Indicates whether the execution of this action signifies a trackable alert.",
419419
},
420420
"action_script_ttl": {
@@ -455,7 +455,7 @@ func savedSearches() *schema.Resource {
455455
"action_summary_index_inline": {
456456
Type: schema.TypeBool,
457457
Optional: true,
458-
Computed: true,
458+
Default: true,
459459
Description: "Determines whether to execute the summary indexing action as part of the scheduled search." +
460460
"NOTE: This option is considered only if the summary index action is enabled and is always executed (in other words, if counttype = always).Defaults to true ",
461461
},
@@ -515,7 +515,7 @@ func savedSearches() *schema.Resource {
515515
"alert_digest_mode": {
516516
Type: schema.TypeBool,
517517
Optional: true,
518-
Computed: true,
518+
Default: true,
519519
Description: "Specifies whether alert actions are applied to the entire result set or on each individual result." +
520520
"Defaults to 1 (true).",
521521
},
@@ -766,7 +766,7 @@ func savedSearches() *schema.Resource {
766766
"dispatch_lookups": {
767767
Type: schema.TypeBool,
768768
Optional: true,
769-
Computed: true,
769+
Default: true,
770770
Description: "Enables or disables the lookups for this search. Defaults to 1. ",
771771
},
772772
"dispatch_max_count": {
@@ -804,7 +804,7 @@ func savedSearches() *schema.Resource {
804804
"dispatch_spawn_process": {
805805
Type: schema.TypeBool,
806806
Optional: true,
807-
Computed: true,
807+
Default: true,
808808
Description: "Specifies whether a new search process spawns when this saved search is executed. " +
809809
"Defaults to 1. Searches against indexes must run in a separate process. ",
810810
},
@@ -856,7 +856,7 @@ func savedSearches() *schema.Resource {
856856
"realtime_schedule": {
857857
Type: schema.TypeBool,
858858
Optional: true,
859-
Computed: true,
859+
Default: true,
860860
Description: "Defaults to 1. Controls the way the scheduler computes the next execution time of a scheduled search. " +
861861
"If this value is set to 1, the scheduler bases its determination of the next scheduled search execution time on the current time. " +
862862
"If this value is set to 0, the scheduler bases its determination of the next scheduled search on the last search execution time. " +
@@ -879,7 +879,7 @@ func savedSearches() *schema.Resource {
879879
"restart_on_searchpeer_add": {
880880
Type: schema.TypeBool,
881881
Optional: true,
882-
Computed: true,
882+
Default: true,
883883
Description: "Specifies whether to restart a real-time search managed by the scheduler when a search peer becomes available for this saved search. " +
884884
"Defaults to 1. ",
885885
},

0 commit comments

Comments
 (0)