Skip to content

Commit c27e783

Browse files
committed
SUMO-247498 Fix the compile error
1 parent b47be65 commit c27e783

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sumologic/sumologic_sources.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ func resourceSumologicSource() *schema.Resource {
144144
},
145145
},
146146
"hash_algorithm": {
147-
Type: schema.TypeString,
148-
Optional: true
149-
Default: nil,
150-
ValidateFunc: validation.StringInSlice([]string{"MD5", "SHA-256"}, false)
147+
Type: schema.TypeString,
148+
Optional: true,
149+
Default: nil,
150+
ValidateFunc: validation.StringInSlice([]string{"MD5", "SHA-256"}, false),
151151
},
152152
"cutoff_timestamp": {
153153
Type: schema.TypeInt,
@@ -241,7 +241,7 @@ func resourceToSource(d *schema.ResourceData) Source {
241241
source.ForceTimeZone = d.Get("force_timezone").(bool)
242242
source.DefaultDateFormats = getDefaultDateFormats(d)
243243
source.Filters = getFilters(d)
244-
source.HashAlgorithm = d.get("hash_algorithm").(string)
244+
source.HashAlgorithm = d.Get("hash_algorithm").(string)
245245
source.CutoffTimestamp = d.Get("cutoff_timestamp").(int)
246246
source.CutoffRelativeTime = d.Get("cutoff_relative_time").(string)
247247
source.Fields = d.Get("fields").(map[string]interface{})

website/docs/index.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ The following properties are common to ALL sources and can be used to configure
155155
mask = "MaskedID"
156156
}
157157
```
158-
- `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".
158+
- `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".
159159
- `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`
160160
- `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.
161161
- `fields` - (Optional) Map containing key/value pairs.

0 commit comments

Comments
 (0)