We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 920433f + 4a495cb commit a690962Copy full SHA for a690962
docs/digging-deeper/pipelines.md
@@ -1128,14 +1128,16 @@ finalizers:
1128
```
1129
1130
Template Output
1131
-Apply a Jinja2 template:
+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
1135
1136
```yaml
1137
finalizers:
1138
- type: template
1139
template: |
1140
{
- "query": {{ query | tojson }},
- "rule": {{ rule.title | tojson }}
1141
+ "query": {{ queries[0] | tojson }}
1142
}
1143
0 commit comments