diff --git a/.changes/5.3.0.md b/.changes/5.3.0.md new file mode 100644 index 0000000..25c51e8 --- /dev/null +++ b/.changes/5.3.0.md @@ -0,0 +1,9 @@ +## dbt-snowflake-monitoring 5.3.0 - June 15, 2024 + +### Features + +- Add new fields for stg_serverless_task_history ([#160](https://github.com/get-select/dbt-snowflake-monitoring/pull/160)) + +### Contributors +- [@fernandobrito](https://github.com/fernandobrito) (Features) + diff --git a/CHANGELOG.md b/CHANGELOG.md index d6e6407..20f45ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). +## dbt-snowflake-monitoring 5.3.0 - June 15, 2024 + +### Features + +- Add new fields for stg_serverless_task_history ([#160](https://github.com/get-select/dbt-snowflake-monitoring/pull/160)) + +### Contributors +- [@fernandobrito](https://github.com/fernandobrito) (Features) + + ## dbt-snowflake-monitoring 5.2.2 - June 09, 2024 ### Features diff --git a/dbt_project.yml b/dbt_project.yml index 8f4f8df..06eda97 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'dbt_snowflake_monitoring' -version: '5.2.2' +version: '5.3.0' config-version: 2 profile: dbt_snowflake_monitoring diff --git a/models/staging/stg_serverless_task_history.sql b/models/staging/stg_serverless_task_history.sql index 8c83982..34a324e 100644 --- a/models/staging/stg_serverless_task_history.sql +++ b/models/staging/stg_serverless_task_history.sql @@ -8,6 +8,9 @@ select end_time, task_id, task_name, + schema_id, + schema_name, + database_id, database_name, credits_used from {{ source('snowflake_account_usage', 'serverless_task_history') }} diff --git a/models/staging/stg_serverless_task_history.yml b/models/staging/stg_serverless_task_history.yml index aa3eedc..65a3b84 100644 --- a/models/staging/stg_serverless_task_history.yml +++ b/models/staging/stg_serverless_task_history.yml @@ -2,7 +2,7 @@ version: 2 models: - name: stg_serverless_task_history - description: An incrementally materialized copy of the snowflake.account_usage.warehouse_metering_history view. See https://docs.snowflake.com/en/sql-reference/account-usage/serverless_task_history.html + description: An incrementally materialized copy of the snowflake.account_usage.serverless_task_history view. See https://docs.snowflake.com/en/sql-reference/account-usage/serverless_task_history.html columns: - name: start_time description: The date and beginning of the hour (in the UTC time zone) in which the serverless task took place. @@ -12,6 +12,12 @@ models: description: Internal/system-generated identifier for the task. - name: task_name description: Name of the task. + - name: schema_id + description: Internal/system-generated identifier for the schema that contains the serverless task. + - name: schema_name + description: Name of the schema that contains the serverless task. + - name: database_id + description: Internal/system-generated identifier for the database that contains the serverless task. - name: database_name description: Name of the database in which the task is located. - name: credits_used