Skip to content

Commit a690962

Browse files
authored
Merge pull request #167 from kelnage/patch-1
Update finalizer template documentation to reflect implementation
2 parents 920433f + 4a495cb commit a690962

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/digging-deeper/pipelines.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,14 +1128,16 @@ finalizers:
11281128
```
11291129

11301130
Template Output
1131-
Apply a Jinja2 template:
1131+
Apply a Jinja2 template. Supports the variables:
1132+
1133+
* `queries` that contains the final query output as a list
1134+
* `pipeline` that contains all the context provided to the processing pipeline
11321135

11331136
```yaml
11341137
finalizers:
11351138
- type: template
11361139
template: |
11371140
{
1138-
"query": {{ query | tojson }},
1139-
"rule": {{ rule.title | tojson }}
1141+
"query": {{ queries[0] | tojson }}
11401142
}
11411143
```

0 commit comments

Comments
 (0)