changed decision_environment to eda/rulebooks
This commit is contained in:
parent
a542bb3713
commit
bea77568b3
19
eda/rulebooks/insights_detection.yml
Normal file
19
eda/rulebooks/insights_detection.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
- name: Listen for Red Hat Insights events
|
||||||
|
hosts: localhost
|
||||||
|
sources:
|
||||||
|
- redhat.insights_eda.insights:
|
||||||
|
host: 0.0.0.0
|
||||||
|
port: 5000
|
||||||
|
rules:
|
||||||
|
- name: Match Malware detected-malware event
|
||||||
|
condition:
|
||||||
|
event.payload.application == "malware-detection"
|
||||||
|
and event.payload.event_type == "detected-malware"
|
||||||
|
action:
|
||||||
|
run_job_template:
|
||||||
|
name: "handle-malware-detection"
|
||||||
|
organization: Default
|
||||||
|
job_args:
|
||||||
|
extra_vars: "{{ event.payload }}"
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user