Skip to content

Commit

Permalink
SUMO-247498 Fix the compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
yuting-liu committed Sep 25, 2024
1 parent b47be65 commit c27e783
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions sumologic/sumologic_sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ func resourceSumologicSource() *schema.Resource {
},
},
"hash_algorithm": {
Type: schema.TypeString,
Optional: true
Default: nil,
ValidateFunc: validation.StringInSlice([]string{"MD5", "SHA-256"}, false)
Type: schema.TypeString,
Optional: true,
Default: nil,
ValidateFunc: validation.StringInSlice([]string{"MD5", "SHA-256"}, false),
},
"cutoff_timestamp": {
Type: schema.TypeInt,
Expand Down Expand Up @@ -241,7 +241,7 @@ func resourceToSource(d *schema.ResourceData) Source {
source.ForceTimeZone = d.Get("force_timezone").(bool)
source.DefaultDateFormats = getDefaultDateFormats(d)
source.Filters = getFilters(d)
source.HashAlgorithm = d.get("hash_algorithm").(string)
source.HashAlgorithm = d.Get("hash_algorithm").(string)
source.CutoffTimestamp = d.Get("cutoff_timestamp").(int)
source.CutoffRelativeTime = d.Get("cutoff_relative_time").(string)
source.Fields = d.Get("fields").(map[string]interface{})
Expand Down
2 changes: 1 addition & 1 deletion website/docs/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ The following properties are common to ALL sources and can be used to configure
mask = "MaskedID"
}
```
- `hash_algorithm` - (Optional) Define the hash algorithm used for Hash type filters. available values are "MD5" and "SHA-256". The default value will be "MD5".
- `hash_algorithm` - (Optional) Define the hash algorithm used for Hash type filters. Available values are "MD5" and "SHA-256". The default value will be "MD5".
- `cutoff_timestamp` - (Optional) Only collect data more recent than this timestamp, specified as milliseconds since epoch (13 digit). This maps to the `Collection should begin` field on the UI. Example: using `1663786159000` will set the cutoff timestamp to `Wednesday, September 21, 2022 6:49:19 PM GMT`
- `cutoff_relative_time` - (Optional) Can be specified instead of cutoffTimestamp to provide a relative offset with respect to the current time.This maps to the `Collection should begin` field on the UI. Example: use -1h, -1d, or -1w to collect data that's less than one hour, one day, or one week old, respectively.
- `fields` - (Optional) Map containing key/value pairs.
Expand Down

0 comments on commit c27e783

Please sign in to comment.