Run Results Checks#
Note
The below checks require both manifest.json
and run_results.json
to be present.
Classes:
Name | Description |
---|---|
CheckRunResultsMaxExecutionTime |
Each result can take a maximum duration (seconds). |
CheckRunResultsMaxGigabytesBilled |
Each result can have a maximum number of gigabytes billed. |
CheckRunResultsMaxExecutionTime
#
Each result can take a maximum duration (seconds).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
max_execution_time_seconds
|
float
|
The maximum execution time (seconds) allowed for a node. |
required |
Receives at execution time:
Name | Type | Description |
---|---|---|
run_result |
DbtBouncerRunResult
|
The DbtBouncerRunResult object to check. |
Other Parameters (passed via config file):
Name | Type | Description |
---|---|---|
exclude |
Optional[str]
|
Regex pattern to match the resource path. Resource paths that match the pattern will not be checked. |
include |
Optional[str]
|
Regex pattern to match the resource path. Only resource paths that match the pattern will be checked. |
severity |
Optional[Literal['error', 'warn']]
|
Severity level of the check. Default: |
Example(s):
run_results_checks:
- name: check_run_results_max_execution_time
include: ^models/staging # Not a good idea, here for demonstration purposes only
max_execution_time_seconds: 10
Source code in src/dbt_bouncer/checks/run_results/check_run_results.py
CheckRunResultsMaxGigabytesBilled
#
Each result can have a maximum number of gigabytes billed.
Note
Note that this check only works for the dbt-bigquery
adapter.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
max_gigabytes_billed
|
float
|
The maximum number of gigabytes billed. |
required |
run_result
|
DbtBouncerRunResult
|
The DbtBouncerRunResult object to check. |
required |
Other Parameters (passed via config file):
Name | Type | Description |
---|---|---|
exclude |
Optional[str]
|
Regex pattern to match the resource path. Resource paths that match the pattern will not be checked. |
include |
Optional[str]
|
Regex pattern to match the resource path. Only resource paths that match the pattern will be checked. |
severity |
Optional[Literal['error', 'warn']]
|
Severity level of the check. Default: |
Example(s):
run_results_checks:
- name: check_run_results_max_gigabytes_billed
max_gigabytes_billed: 100
exclude: ^seeds