Skip to content

Commit 336c1b9

Browse files
feat(cli): add 'Expected Behavior' alert close reason (#1380)
* feat(cli): add 'Expected Behaviour' alert close reason Signed-off-by: Darren Murray <[email protected]> * fix: typo Signed-off-by: Darren Murray <[email protected]> * test: update help tests Signed-off-by: Darren Murray <[email protected]> --------- Signed-off-by: Darren Murray <[email protected]>
1 parent bd278a0 commit 336c1b9

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

api/alerts_close.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const (
3030
AlertCloseReasonNotEnoughInfo
3131
AlertCloseReasonMalicious
3232
AlertCloseReasonExpected
33+
AlertCloseReasonExpectedBehavior
3334
)
3435

3536
// String returns the string representation of an Alert closure reason
@@ -41,11 +42,12 @@ type alertCloseReasons map[alertCloseReason]string
4142

4243
// AlertCloseReasons is the list of available Alert closure reasons
4344
var AlertCloseReasons = alertCloseReasons{
44-
AlertCloseReasonOther: "Other",
45-
AlertCloseReasonFalsePositive: "False positive",
46-
AlertCloseReasonNotEnoughInfo: "Not enough information",
47-
AlertCloseReasonMalicious: "Malicious and have resolution in place",
48-
AlertCloseReasonExpected: "Expected because of routine testing",
45+
AlertCloseReasonOther: "Other",
46+
AlertCloseReasonFalsePositive: "False positive",
47+
AlertCloseReasonNotEnoughInfo: "Not enough information",
48+
AlertCloseReasonMalicious: "Malicious and have resolution in place",
49+
AlertCloseReasonExpected: "Expected because of routine testing",
50+
AlertCloseReasonExpectedBehavior: "Expected Behavior",
4951
}
5052

5153
func (acr alertCloseReasons) GetOrderedReasonStrings() []string {

cli/docs/lacework_alert_close.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The reason for closing the alert must be provided from the following options:
1919
* 2 - Not enough information
2020
* 3 - Malicious and have resolution in place
2121
* 4 - Expected because of routine testing.
22+
* 5 - Expected Behavior.
2223

2324
Reasons may be provided inline or via prompt.
2425

0 commit comments

Comments
 (0)