Manifest Checks: Snapshots#
Note
The below checks require manifest.json
to be present.
Classes:
Name | Description |
---|---|
CheckSnapshotHasTags |
Snapshots must have the specified tags. |
CheckSnapshotNames |
Snapshots must have a name that matches the supplied regex. |
CheckSnapshotHasTags
#
Snapshots must have the specified tags.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
snapshot
|
DbtBouncerSnapshotBase
|
The DbtBouncerSnapshotBase object to check. |
required |
tags
|
List[str]
|
List of tags to check for. |
required |
Other Parameters (passed via config file):
Name | Type | Description |
---|---|---|
exclude |
Optional[str]
|
Regex pattern to match the snapshot path. Snapshot paths that match the pattern will not be checked. |
include |
Optional[str]
|
Regex pattern to match the snapshot path. Only snapshot paths that match the pattern will be checked. |
severity |
Optional[Literal['error', 'warn']]
|
Severity level of the check. Default: |
Example(s):
Source code in src/dbt_bouncer/checks/manifest/check_snapshots.py
CheckSnapshotNames
#
Snapshots must have a name that matches the supplied regex.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
snapshot_name_pattern
|
str
|
Regexp the snapshot name must match. |
required |
Receives at execution time:
Name | Type | Description |
---|---|---|
snapshot |
DbtBouncerSnapshotBase
|
The DbtBouncerSnapshotBase object to check. |
Other Parameters (passed via config file):
Name | Type | Description |
---|---|---|
exclude |
Optional[str]
|
Regex pattern to match the snapshot path. Snapshot paths that match the pattern will not be checked. |
include |
Optional[str]
|
Regex pattern to match the snapshot path. Only snapshot paths that match the pattern will be checked. |
severity |
Optional[Literal['error', 'warn']]
|
Severity level of the check. Default: |
Example(s):