Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update defaults and fix setting of some 0 values. #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions client/models/saved_searches.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ type SavedSearchObject struct {
ActionEmailFormat string `json:"action.email.format,omitempty" url:"action.email.format,omitempty"`
ActionEmailFrom string `json:"action.email.from,omitempty" url:"action.email.from,omitempty"`
ActionEmailHostname string `json:"action.email.hostname,omitempty" url:"action.email.hostname,omitempty"`
ActionEmailIncludeResultsLink int `json:"action.email.include.results_link,string,omitempty" url:"action.email.include.results_link,omitempty"`
ActionEmailIncludeSearch int `json:"action.email.include.search,string,omitempty" url:"action.email.include.search,omitempty"`
ActionEmailIncludeTrigger int `json:"action.email.include.trigger,string,omitempty" url:"action.email.include.trigger,omitempty"`
ActionEmailIncludeTriggerTime int `json:"action.email.include.trigger_time,string,omitempty" url:"action.email.include.trigger_time,omitempty"`
ActionEmailIncludeViewLink int `json:"action.email.include.view_link,string,omitempty" url:"action.email.include.view_link,omitempty"`
ActionEmailIncludeResultsLink int `json:"action.email.include.results_link,string,omitempty" url:"action.email.include.results_link"`
ActionEmailIncludeSearch int `json:"action.email.include.search,string,omitempty" url:"action.email.include.search"`
ActionEmailIncludeTrigger int `json:"action.email.include.trigger,string,omitempty" url:"action.email.include.trigger"`
ActionEmailIncludeTriggerTime int `json:"action.email.include.trigger_time,string,omitempty" url:"action.email.include.trigger_time"`
ActionEmailIncludeViewLink int `json:"action.email.include.view_link,string,omitempty" url:"action.email.include.view_link"`
ActionEmailInline bool `json:"action.email.inline" url:"action.email.inline"`
ActionEmailMailserver string `json:"action.email.mailserver,omitempty" url:"action.email.mailserver,omitempty"`
ActionEmailMaxResults int `json:"action.email.maxresults,omitempty" url:"action.email.maxresults,omitempty"`
Expand Down
22 changes: 11 additions & 11 deletions splunk/resource_splunk_saved_searches.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func savedSearches() *schema.Resource {
"action_email_include_results_link": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
Default: 1,
Description: "Specify whether to include a link to the results. [1|0]",
},
"action_email_include_search": {
Expand All @@ -110,7 +110,7 @@ func savedSearches() *schema.Resource {
"action_email_include_view_link": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
Default: 1,
Description: "Specify whether to show the title and a link to enable the user to edit the saved search. [1|0]",
},
"action_email_inline": {
Expand Down Expand Up @@ -242,7 +242,7 @@ func savedSearches() *schema.Resource {
"action_email_track_alert": {
Type: schema.TypeBool,
Optional: true,
Computed: true,
Default: true,
Description: "Indicates whether the execution of this action signifies a trackable alert.",
},
"action_email_ttl": {
Expand All @@ -269,7 +269,7 @@ func savedSearches() *schema.Resource {
"action_email_width_sort_columns": {
Type: schema.TypeBool,
Optional: true,
Computed: true,
Default: true,
Description: "Indicates whether columns should be sorted from least wide to most wide, left to right." +
"Only valid if format=text.",
},
Expand Down Expand Up @@ -414,7 +414,7 @@ func savedSearches() *schema.Resource {
"action_script_track_alert": {
Type: schema.TypeBool,
Optional: true,
Computed: true,
Default: true,
Description: "Indicates whether the execution of this action signifies a trackable alert.",
},
"action_script_ttl": {
Expand Down Expand Up @@ -455,7 +455,7 @@ func savedSearches() *schema.Resource {
"action_summary_index_inline": {
Type: schema.TypeBool,
Optional: true,
Computed: true,
Default: true,
Description: "Determines whether to execute the summary indexing action as part of the scheduled search." +
"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 ",
},
Expand Down Expand Up @@ -515,7 +515,7 @@ func savedSearches() *schema.Resource {
"alert_digest_mode": {
Type: schema.TypeBool,
Optional: true,
Computed: true,
Default: true,
Description: "Specifies whether alert actions are applied to the entire result set or on each individual result." +
"Defaults to 1 (true).",
},
Expand Down Expand Up @@ -766,7 +766,7 @@ func savedSearches() *schema.Resource {
"dispatch_lookups": {
Type: schema.TypeBool,
Optional: true,
Computed: true,
Default: true,
Description: "Enables or disables the lookups for this search. Defaults to 1. ",
},
"dispatch_max_count": {
Expand Down Expand Up @@ -804,7 +804,7 @@ func savedSearches() *schema.Resource {
"dispatch_spawn_process": {
Type: schema.TypeBool,
Optional: true,
Computed: true,
Default: true,
Description: "Specifies whether a new search process spawns when this saved search is executed. " +
"Defaults to 1. Searches against indexes must run in a separate process. ",
},
Expand Down Expand Up @@ -856,7 +856,7 @@ func savedSearches() *schema.Resource {
"realtime_schedule": {
Type: schema.TypeBool,
Optional: true,
Computed: true,
Default: true,
Description: "Defaults to 1. Controls the way the scheduler computes the next execution time of a scheduled search. " +
"If this value is set to 1, the scheduler bases its determination of the next scheduled search execution time on the current time. " +
"If this value is set to 0, the scheduler bases its determination of the next scheduled search on the last search execution time. " +
Expand All @@ -879,7 +879,7 @@ func savedSearches() *schema.Resource {
"restart_on_searchpeer_add": {
Type: schema.TypeBool,
Optional: true,
Computed: true,
Default: true,
Description: "Specifies whether to restart a real-time search managed by the scheduler when a search peer becomes available for this saved search. " +
"Defaults to 1. ",
},
Expand Down