Skip to content

Commit

Permalink
Renaming of guardduty to guard_duty
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdabbad00 committed Feb 13, 2018
1 parent f162a3d commit 8e380b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion matchers/matchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
matcher = StreamRules.matcher()

@matcher
def guardduty(record):
def guard_duty(record):
return record['detail-type'] == 'GuardDuty Finding'
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@


@rule(logs=['cloudwatch:events'],
matchers=['guardduty'],
matchers=['guard_duty'],
outputs=['slack:sample-channel'])
def guardduty(*_):
def guard_duty_all(*_):
"""
author: spiper
description: Alert on GuardDuty events
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"service": "kinesis",
"source": "prefix_cluster1_stream_alert_kinesis",
"trigger_rules": [
"guardduty"
"guard_duty_all"
]
}
]
Expand Down

0 comments on commit 8e380b9

Please sign in to comment.