mirror of
https://github.com/FlipsideCrypto/movement-models.git
synced 2026-02-06 11:27:27 +00:00
131 lines
3.9 KiB
YAML
131 lines
3.9 KiB
YAML
version: 2
|
|
models:
|
|
- name: silver_observability__blocks_completeness
|
|
description: Records of all blocks block gaps (missing blocks) with a timestamp the test was run
|
|
config:
|
|
contract:
|
|
enforced: true
|
|
tests:
|
|
- dbt_utils.recency:
|
|
datepart: day
|
|
field: TEST_TIMESTAMP
|
|
interval: 2
|
|
severity: error
|
|
tags: ['test_recency']
|
|
columns:
|
|
- name: TEST_NAME
|
|
data_type: VARCHAR
|
|
description: Name for the test
|
|
- name: MIN_BLOCK
|
|
data_type: NUMBER
|
|
description: The lowest block id in the test
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- name: MAX_BLOCK
|
|
data_type: NUMBER
|
|
description: The highest block id in the test
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- name: MIN_BLOCK_TIMESTAMP
|
|
data_type: TIMESTAMP_NTZ
|
|
description: The lowest block timestamp in the test
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- name: MAX_BLOCK_TIMESTAMP
|
|
data_type: TIMESTAMP_NTZ
|
|
description: The highest block timestamp in the test
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- name: BLOCKS_TESTED
|
|
data_type: NUMBER
|
|
description: Count of blocks in the test
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- name: BLOCKS_IMPACTED_COUNT
|
|
data_type: NUMBER
|
|
description: Count of block gaps in the test
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- name: BLOCKS_IMPACTED_ARRAY
|
|
data_type: ARRAY
|
|
description: Array of affected blocks
|
|
- name: TEST_TIMESTAMP
|
|
data_type: TIMESTAMP_NTZ
|
|
description: When the test was run
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- unique:
|
|
tags: ['test_quality']
|
|
- name: MODIFIED_TIMESTAMP
|
|
data_type: TIMESTAMP_NTZ
|
|
|
|
- name: silver_observability__transactions_completeness
|
|
description: Records of all blocks with missing transactions with a timestamp the test was run
|
|
tests:
|
|
- dbt_utils.recency:
|
|
datepart: day
|
|
field: TEST_TIMESTAMP
|
|
interval: 2
|
|
severity: error
|
|
tags: ['test_recency']
|
|
columns:
|
|
- name: TEST_NAME
|
|
data_type: VARCHAR
|
|
description: Name for the test
|
|
- name: MIN_BLOCK
|
|
data_type: NUMBER
|
|
description: The lowest block id in the test
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- name: MAX_BLOCK
|
|
data_type: NUMBER
|
|
description: The highest block id in the test
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- name: MIN_BLOCK_TIMESTAMP
|
|
data_type: TIMESTAMP_NTZ
|
|
description: The lowest block timestamp in the test
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- name: MAX_BLOCK_TIMESTAMP
|
|
data_type: TIMESTAMP_NTZ
|
|
description: The highest block timestamp in the test
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- name: BLOCKS_TESTED
|
|
data_type: NUMBER
|
|
description: Count of blocks in the test
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- name: BLOCKS_IMPACTED_COUNT
|
|
data_type: NUMBER
|
|
description: Count of block gaps in the test
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- name: BLOCKS_IMPACTED_ARRAY
|
|
data_type: ARRAY
|
|
description: Array of affected blocks
|
|
- name: TEST_TIMESTAMP
|
|
data_type: TIMESTAMP_NTZ
|
|
description: When the test was run
|
|
tests:
|
|
- not_null:
|
|
tags: ['test_quality']
|
|
- unique:
|
|
tags: ['test_quality']
|
|
- name: MODIFIED_TIMESTAMP
|
|
data_type: TIMESTAMP_NTZ
|