Add data and template name
This commit is contained in:
@@ -8,13 +8,17 @@
|
||||
host: 0.0.0.0
|
||||
rules:
|
||||
- name: Run Template
|
||||
condition: event.alert.labels.org == "OYS"
|
||||
condition:
|
||||
all:
|
||||
- event.alert.labels.org == "OYS"
|
||||
- event.alert.labels.alertname == "root filesystem over 80% full"
|
||||
- event.alert.labels.mountpoint == '/'
|
||||
action:
|
||||
debug:
|
||||
var: event
|
||||
# run_job_template:
|
||||
# name: bab-deploy-application
|
||||
# organization: OYS
|
||||
# job_args:
|
||||
# extra_vars:
|
||||
# artifact_url: "{{ event.payload.data.artifact_url }}"
|
||||
run_job_template:
|
||||
name: Demo - Clean Log Directory
|
||||
organization: OYS
|
||||
job_args:
|
||||
extra_vars:
|
||||
alertmanager_annotations: "{{ event.annotations }}"
|
||||
alertmanager_generator_url: "{{ event.generatorURL }}"
|
||||
event_mountpoint: "{{ event.mountpoint }}"
|
||||
|
||||
Reference in New Issue
Block a user