influxdb/pkger/testdata/notification_rule.yml

34 lines
809 B
YAML

apiVersion: 0.1.0
kind: Package
meta:
pkgName: pkg_name
pkgVersion: 1
description: pack description
spec:
resources:
- kind: Label
name: label_1
- kind: Notification_Rule
name: rule_0
description: desc_0
channel: "#two-fer-one"
endpointName: endpoint_0
every: 10m
offset: 30s
messageTemplate: "Notification Rule: ${ r._notification_rule_name } triggered by check: ${ r._check_name }: ${ r._message }"
status: active
statusRules:
- currentLevel: WARN
- currentLevel: CRIT
previousLevel: OK
tagRules:
- key: k1
value: v2
operator: eQuAl
- key: k1
value: v1
operator: eQuAl
associations:
- kind: Label
name: label_1