Skip to content

Commit e6319aa

Browse files
author
Pedro Montiel
committed
feedback from vishal
1 parent ee41452 commit e6319aa

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
FEATURES:
33

44
* **New Resource:** sumologic_cse_rule_tuning_expression (GH-281)
5-
6-
7-
FEATURES:
8-
95
* **New Resource:** sumologic_cse_insights_resolution (GH-274)
106
* **New Resource:** sumologic_cse_insights_status (GH-274)
117
* **New Resource:** sumologic_cse_insights_configuration (GH-274)

sumologic/resource_sumologic_cse_insights_configuration.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ package sumologic
22

33
import (
44
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
5-
"hash/fnv"
65
"log"
7-
"strconv"
86
)
97

108
func resourceSumologicCSEInsightsConfiguration() *schema.Resource {
@@ -69,14 +67,9 @@ func resourceSumologicCSEInsightsConfigurationDelete(d *schema.ResourceData, met
6967

7068
func resourceSumologicCSEInsightsConfigurationCreate(d *schema.ResourceData, meta interface{}) error {
7169
//we are not really creating new object in backend, using constant id for terraform resource
72-
d.SetId(hash("cse-insights-configuration"))
70+
d.SetId("cse-insights-configuration")
7371
return resourceSumologicCSEInsightsConfigurationUpdate(d, meta)
7472
}
75-
func hash(s string) string {
76-
h := fnv.New32a()
77-
h.Write([]byte(s))
78-
return strconv.Itoa(int(h.Sum32()))
79-
}
8073

8174
func resourceSumologicCSEInsightsConfigurationUpdate(d *schema.ResourceData, meta interface{}) error {
8275
CSEInsightsConfiguration, err := resourceToCSEInsightsConfiguration(d)

website/docs/r/cse_insights_configuration.html.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
layout: "sumologic"
33
page_title: "SumoLogic: sumologic_cse_insights_configuration"
44
description: |-
5-
Provides the CSE Insights Configuration for the whole organization. There can be only one configuration per organization.
5+
Provides the Sumologic CSE Insights Configuration for the whole organization. There can be only one configuration per organization.
66
---
77

88
# sumologic_cse_insights_configuration
9-
Provides a CSE Insights Configuration.
9+
Provides the Sumologic CSE Insights Configuration for the whole organization. There can be only one configuration per organization.
1010

1111
## Example Usage
1212
```hcl
@@ -21,15 +21,15 @@ resource "sumologic_cse_insights_configuration" "insights_configuration" {
2121
The following arguments are supported:
2222

2323
- `lookback_days` - (Optional) Detection window expressed in days.
24-
- `threshold` - (Optional) Detection threshold.
24+
- `threshold` - (Optional) Detection threshold activity score.
2525

2626
The following attributes are exported:
2727

28-
- `id` - The internal ID of the insights configuration.
28+
- `ID` - The internal ID of the insights configuration.
2929

3030
## Import
3131

3232
Insights Configuration can be imported using the field id, e.g.:
3333
```hcl
34-
terraform import sumologic_cse_insights_configuration.insights_configuration id
34+
terraform import sumologic_cse_insights_configuration.insights_configuration ID
3535
```

0 commit comments

Comments
 (0)