diff --git a/models/silver/_observability/silver_observability.yml b/models/silver/_observability/silver_observability.yml index 4d29807..9386e32 100644 --- a/models/silver/_observability/silver_observability.yml +++ b/models/silver/_observability/silver_observability.yml @@ -21,37 +21,37 @@ models: description: The lowest block id in the test tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - name: MAX_BLOCK data_type: NUMBER description: The highest block id in the test tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - name: MIN_BLOCK_TIMESTAMP data_type: TIMESTAMP_NTZ description: The lowest block timestamp in the test tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - name: MAX_BLOCK_TIMESTAMP data_type: TIMESTAMP_NTZ description: The highest block timestamp in the test tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - name: BLOCKS_TESTED data_type: NUMBER description: Count of blocks in the test tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - name: BLOCKS_IMPACTED_COUNT data_type: NUMBER description: Count of block gaps in the test tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - name: BLOCKS_IMPACTED_ARRAY data_type: ARRAY description: Array of affected blocks @@ -60,9 +60,11 @@ models: description: When the test was run tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - unique: - tag: ['test_quality'] + 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 @@ -82,37 +84,37 @@ models: description: The lowest block id in the test tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - name: MAX_BLOCK data_type: NUMBER description: The highest block id in the test tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - name: MIN_BLOCK_TIMESTAMP data_type: TIMESTAMP_NTZ description: The lowest block timestamp in the test tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - name: MAX_BLOCK_TIMESTAMP data_type: TIMESTAMP_NTZ description: The highest block timestamp in the test tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - name: BLOCKS_TESTED data_type: NUMBER description: Count of blocks in the test tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - name: BLOCKS_IMPACTED_COUNT data_type: NUMBER description: Count of block gaps in the test tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - name: BLOCKS_IMPACTED_ARRAY data_type: ARRAY description: Array of affected blocks @@ -121,6 +123,8 @@ models: description: When the test was run tests: - not_null: - tag: ['test_quality'] + tags: ['test_quality'] - unique: - tag: ['test_quality'] + tags: ['test_quality'] + - name: MODIFIED_TIMESTAMP + data_type: TIMESTAMP_NTZ diff --git a/models/silver/_observability/silver_observability__blocks_completeness.sql b/models/silver/_observability/silver_observability__blocks_completeness.sql index f3d669b..c3ae205 100644 --- a/models/silver/_observability/silver_observability__blocks_completeness.sql +++ b/models/silver/_observability/silver_observability__blocks_completeness.sql @@ -152,7 +152,8 @@ SELECT ORDER BY A.block_number ) AS blocks_impacted_array, - SYSDATE() AS test_timestamp + SYSDATE() AS test_timestamp, + SYSDATE() AS modified_timestamp FROM block_gen A LEFT JOIN blocks b diff --git a/models/silver/_observability/silver_observability__transactions_completeness.sql b/models/silver/_observability/silver_observability__transactions_completeness.sql index 5e206ef..bd19d2f 100644 --- a/models/silver/_observability/silver_observability__transactions_completeness.sql +++ b/models/silver/_observability/silver_observability__transactions_completeness.sql @@ -134,7 +134,8 @@ SELECT blocks_tested, blocks_impacted_count, blocks_impacted_array, - SYSDATE() AS test_timestamp + SYSDATE() AS test_timestamp, + SYSDATE() AS modified_timestamp FROM summary_stats JOIN impacted_blocks