diff --git a/models/descriptions/daily_active_contracts.md b/models/descriptions/daily_active_contracts.md new file mode 100644 index 0000000..72a391e --- /dev/null +++ b/models/descriptions/daily_active_contracts.md @@ -0,0 +1,5 @@ +{% docs daily_active_contracts %} + +The daily number of active contracts. + +{% enddocs %} diff --git a/models/descriptions/monthly_active_contracts.md b/models/descriptions/monthly_active_contracts.md new file mode 100644 index 0000000..2474884 --- /dev/null +++ b/models/descriptions/monthly_active_contracts.md @@ -0,0 +1,5 @@ +{% docs monthly_active_contracts %} + +The number of active contracts for the month of the date. + +{% enddocs %} diff --git a/models/descriptions/weekly_active_contracts.md b/models/descriptions/weekly_active_contracts.md new file mode 100644 index 0000000..549c695 --- /dev/null +++ b/models/descriptions/weekly_active_contracts.md @@ -0,0 +1,5 @@ +{% docs weekly_active_contracts %} + +The number of active contracts for the week of the date. + +{% enddocs %} diff --git a/models/metrics/metrics__active_contracts.yml b/models/metrics/metrics__active_contracts.yml index 841308b..3a0b37e 100644 --- a/models/metrics/metrics__active_contracts.yml +++ b/models/metrics/metrics__active_contracts.yml @@ -6,7 +6,7 @@ models: columns: - name: DATE - description: The date (day). + description: "{{ doc('date')}}" tests: - not_null - dbt_expectations.expect_column_values_to_be_in_type_list: @@ -14,7 +14,7 @@ models: - TIMESTAMP_NTZ - name: DAILY_ACTIVE_CONTRACTS - description: The daily number of active Contracts + description: "{{ doc('daily_active_contracts')}}" tests: - not_null - dbt_expectations.expect_column_values_to_be_in_type_list: @@ -23,7 +23,7 @@ models: - FLOAT - name: WEEKLY_ACTIVE_CONTRACTS - description: The number of active contracts for week of the date. + description: "{{ doc('weekly_active_contracts')}}" tests: - not_null - dbt_expectations.expect_column_values_to_be_in_type_list: @@ -32,7 +32,7 @@ models: - FLOAT - name: MONTHLY_ACTIVE_CONTRACTS - description: The number of active contracts for month of the date. + description: "{{ doc('monthly_active_contracts')}}" tests: - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: