You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/quickstart/send-slack-alerts.mdx
+22-3Lines changed: 22 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -242,7 +242,7 @@ models:
242
242
channel: marketing_data_ops
243
243
```
244
244
245
-
If your models are in folders by department / team, another useful option is to configure the channel in
245
+
If your models / tests are in folders by department / team, another useful option is to configure the channel in
246
246
your `dbt_project.yml` file.
247
247
248
248
```yml dbt_project.yml
@@ -251,6 +251,12 @@ models:
251
251
+meta:
252
252
alerts_config:
253
253
channel: marketing_data_ops
254
+
255
+
tests:
256
+
marketing_bi:
257
+
+meta:
258
+
alerts_config:
259
+
channel: marketing_data_ops
254
260
```
255
261
256
262
You can also configure a custom slack channel for a specific test.
@@ -293,14 +299,20 @@ If you configure alert fields on your dbt project, all the test alerts of all of
293
299
If you configure alert fields for a model, all the test alerts that belong to this model will display only the configured alert fields.
294
300
If you configure alert fields for both a model and a test, the test configured alert fields overrides the model configured alert fields (same as for the dbt project configured alert fields).
295
301
296
-
To set it up globaly for your project, add the desired alert fields to your models in the `dbt_project.yml` file.
302
+
To set it up globaly for your project, add the desired alert fields to your models and tests in the `dbt_project.yml` file.
0 commit comments