grafana/pkg/services/provisioning/alerting/testdata/alert_rules/multiple-files/rules2.yml
ismail simsek 91221bc436
Expressions: Fixes the issue showing expressions editor (#62510)
* Use suggested value for uid

* update the snapshot

* use __expr__

* replace all -100 with __expr__

* update snapshot

* more changes

* revert redundant change

* Use expr.DatasourceUID where it's possible

* generate files
2023-01-31 18:50:10 +01:00

57 lines
1.2 KiB
YAML

apiVersion: 1
groups:
- name: my_other_group
folder: my_other_folder
interval: 10s
rules:
- title: my_other_rule
uid: my_other_rule
condition: A
for: 1m
annotations:
runbook: https://grafana.com
labels:
team: infra
severity: warning
data:
- refId: A
queryType: ''
relativeTimeRange:
from: 600
to: 0
datasourceUID: PD8C576611E62080A
model:
hide: false
intervalMs: 1000
maxDataPoints: 43200
refId: A
- refId: B
queryType: ''
relativeTimeRange:
from: 0
to: 0
datasourceUid: "__expr__"
model:
conditions:
- evaluator:
params:
- 3
type: gt
operator:
type: and
query:
params:
- A
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: "__expr__"
hide: false
intervalMs: 1000
maxDataPoints: 43200
refId: B
type: classic_conditions