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 host: 0.0.0.0
rules: rules:
- name: Run Template - 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: action:
debug: run_job_template:
var: event name: Demo - Clean Log Directory
# run_job_template: organization: OYS
# name: bab-deploy-application job_args:
# organization: OYS extra_vars:
# job_args: alertmanager_annotations: "{{ event.annotations }}"
# extra_vars: alertmanager_generator_url: "{{ event.generatorURL }}"
# artifact_url: "{{ event.payload.data.artifact_url }}" event_mountpoint: "{{ event.mountpoint }}"