Skip to content

Commit c404b7c

Browse files
DET-383: Added docs.
1 parent 29ea2fa commit c404b7c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

sumologic/resource_sumologic_cse_custom_insight_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ resource "sumologic_cse_custom_insight" "custom_insight2" {
157157
name = "Dynamic severity insight"
158158
severity = "LOW"
159159
dynamic_severity {
160-
minimum_signal_severity = "%d"
160+
minimum_signal_severity = %d
161161
insight_severity = "%s"
162162
}
163163
dynamic_severity {
164-
minimum_signal_severity = "%d"
164+
minimum_signal_severity = %d
165165
insight_severity = "%s"
166166
}
167167
tags = ["test tag"]
@@ -203,7 +203,7 @@ func testCheckCustomInsightValues(t *testing.T, CustomInsight *CSECustomInsight,
203203
assert.Equal(t, severity, CustomInsight.Severity)
204204
assert.Equal(t, signalName1, CustomInsight.SignalNames[0])
205205
assert.Equal(t, signalName2, CustomInsight.SignalNames[1])
206-
assert.Equal(t, tag, CustomInsight.Tags[0])
206+
assert.Equal(t, tag, CustomInsight.Tags[0])
207207
return nil
208208
}
209209
}

website/docs/r/cse_custom_insight.html.markdown

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ resource "sumologic_cse_custom_insight" "custom_insight" {
1717
name = "Custom Insight Example"
1818
rule_ids = ["MATCH-S00001", "THRESHOLD-U00005"]
1919
severity = "HIGH"
20+
dynamic_severity {
21+
minimum_signal_severity = 8
22+
insight_severity = "CRITICAL"
23+
}
2024
signal_names = ["Some Signal Name", "Wildcard Signal Name *"]
2125
tags = ["_mitreAttackTactic:TA0009"]
2226
}
@@ -31,7 +35,10 @@ The following arguments are supported:
3135
- `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
3236
- `name` - (Required) The name of the Custom Insight and the generated Insights
3337
- `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 (HIGH, MEDIUM, or LOW)
38+
- `severity` - (Required) The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW)
39+
- `dynamic_severity` - (Optional) The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight.
40+
+ `minimum_signal_severity` - (Required) minimum Signal severity as the threshold for an Insight severity level
41+
+ `insight_severity` - (Required) The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW)
3542
- `signal_names` - (Optional) The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)
3643
- `tags` - (Required) The tags of the generated Insights
3744

0 commit comments

Comments
 (0)