Skip to content

Commit ee9f145

Browse files
author
Josh Williams
committed
PR Feedback
1 parent 6bb2333 commit ee9f145

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

sumologic/resource_sumologic_cse_custom_insight.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ func resourceSumologicCSECustomInsight() *schema.Resource {
3030
},
3131
"ordered": {
3232
Type: schema.TypeBool,
33-
Optional: true,
34-
Default: false,
33+
Required: true,
3534
},
3635
"rule_ids": {
3736
Type: schema.TypeList,
@@ -43,6 +42,7 @@ func resourceSumologicCSECustomInsight() *schema.Resource {
4342
"severity": {
4443
Type: schema.TypeString,
4544
Required: true,
45+
ValidateFunc: validation.StringInSlice([]string{"HIGH", "MEDIUM", "LOW"}, false),
4646
},
4747
"signal_names": {
4848
Type: schema.TypeList,
@@ -53,7 +53,7 @@ func resourceSumologicCSECustomInsight() *schema.Resource {
5353
},
5454
"tags": {
5555
Type: schema.TypeList,
56-
Optional: true,
56+
Required: true,
5757
Elem: &schema.Schema{
5858
Type: schema.TypeString,
5959
},
@@ -95,7 +95,6 @@ func resourceSumologicCSECustomInsightDelete(d *schema.ResourceData, meta interf
9595
c := meta.(*Client)
9696

9797
return c.DeleteCSECustomInsight(d.Id())
98-
9998
}
10099

101100
func resourceSumologicCSECustomInsightCreate(d *schema.ResourceData, meta interface{}) error {

website/docs/r/cse_custom_insight.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ The following arguments are supported:
2828

2929
- `description` - (Required) The description of the generated Insights
3030
- `enabled` - (Required) Whether the Custom Insight should generate Insights
31-
- `ordered` - (Optional; defaults to false) Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight
31+
- `ordered` - (Required) Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight
3232
- `name` - (Required) The name of the Custom Insight and the generated Insights
3333
- `rule_ids` - (Optional) The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)
34-
- `severity` - (Required) The severity of the generated Insights
34+
- `severity` - (Required) The severity of the generated Insights (HIGH, MEDIUM, or LOW)
3535
- `signal_names` - (Optional) The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)
3636
- `tags` - (Required) The tags of the generated Insights
3737

0 commit comments

Comments
 (0)