Add data and template name

This commit is contained in:
2024-01-17 08:11:46 -05:00
parent b21229b82f
commit 7b5eac7ad1

View File

@@ -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 }}"