about summary refs log tree commit diff
path: root/nixos/tests/grafana/provision/rules.yaml
blob: 946539c8cb699b90963b6ca80b69472388baa25d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
apiVersion: 1

groups:
  - name: "test_rule_group"
    folder: "test_group"
    interval: 60s
    rules:
      - uid: "test_rule"
        title: "Test Rule"
        condition: A
        data:
          - refId: A
            datasourceUid: '-100'
            model:
              conditions:
                - evaluator:
                    params:
                      - 3
                    type: gt
                  operator:
                    type: and
                  query:
                    params:
                      - A
                  reducer:
                    type: last
                  type: query
              datasource:
                type: __expr__
                uid: '-100'
              expression: 1==0
              intervalMs: 1000
              maxDataPoints: 43200
              refId: A
              type: math
        for: 60s