Skip to content

Commit

Permalink
Merge pull request #7 from bqbooster/yml-billing-model
Browse files Browse the repository at this point in the history
Add missing YML for billing models
  • Loading branch information
Kayrnt authored Aug 12, 2024
2 parents 716b67e + 358ecc1 commit 8b5b22b
Show file tree
Hide file tree
Showing 7 changed files with 129 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .changes/v0.5.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## dbt-bigquery-monitoring v0.5.3 - August 12, 2024

### Docs

- Add missing YML for billing models ([#0](https://github.com/bqbooster/dbt-bigquery-monitoring/issues/0))

### Contributors
- [@Kayrnt](https://github.com/Kayrnt) ([#0](https://github.com/bqbooster/dbt-bigquery-monitoring/issues/0))

10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-bigquery-monitoring v0.5.3 - August 12, 2024

### Docs

- Add missing YML for billing models ([#0](https://github.com/bqbooster/dbt-bigquery-monitoring/issues/0))

### Contributors
- [@Kayrnt](https://github.com/Kayrnt) ([#0](https://github.com/bqbooster/dbt-bigquery-monitoring/issues/0))


## dbt-bigquery-monitoring v0.5.2 - August 01, 2024

### Fixes
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The required permissions (listed above) are available to:
<details>
<summary>
if you prefer to use custom roles, you can use the following permissions.
</summary>
</summary >

- **bigquery.tables.get** - To [access BigQuery tables data](https://cloud.google.com/bigquery/docs/information-schema-table-storage#required_roles)
- **bigquery.tables.list** - To [access BigQuery tables data](https://cloud.google.com/bigquery/docs/information-schema-table-storage#required_roles)
Expand All @@ -42,7 +42,7 @@ Add the following to your `packages.yml` file:
```yml
packages:
- package: bqbooster/dbt_bigquery_monitoring
version: 0.5.2
version: 0.5.3
```
### Configure the package
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2

models:
- name: dataset_with_better_pricing_on_logical_billing_model
description: >
A model that identifies datasets with a better pricing model under logical billing,
compared to physical billing, by evaluating the difference in storage costs.
meta:
label: "Better Pricing Model (Logical)"
order_fields_by: "label"
group_label: "Storage cost optimization"
columns:
- name: project_id
description: The ID of the BigQuery project.
- name: dataset_id
description: The ID of the dataset.
- name: total_logical_tb
description: The total size of the dataset in terabytes, as calculated by logical bytes.
- name: total_physical_tb
description: The total size of the dataset in terabytes, as calculated by physical bytes.
- name: logical_cost_monthly_forecast
description: The forecasted monthly storage cost for the dataset under the logical billing model.
- name: physical_cost_monthly_forecast
description: The forecasted monthly storage cost for the dataset under the physical billing model.
- name: storage_pricing_model_difference
description: The difference in storage cost between the logical and physical pricing models.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2

models:
- name: dataset_with_better_pricing_on_physical_billing_model
description: >
A model that identifies datasets with a better pricing model under physical billing,
compared to logical billing, by evaluating the difference in storage costs.
meta:
label: "Better Pricing Model (Physical)"
order_fields_by: "label"
group_label: "Storage cost optimization"
columns:
- name: project_id
description: The ID of the BigQuery project.
- name: dataset_id
description: The ID of the dataset.
- name: total_logical_tb
description: The total size of the dataset in terabytes, as calculated by logical bytes.
- name: total_physical_tb
description: The total size of the dataset in terabytes, as calculated by physical bytes.
- name: logical_cost_monthly_forecast
description: The forecasted monthly storage cost for the dataset under the logical billing model.
- name: physical_cost_monthly_forecast
description: The forecasted monthly storage cost for the dataset under the physical billing model.
- name: storage_pricing_model_difference
description: The difference in storage cost between the logical and physical pricing models.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2

models:
- name: table_with_better_pricing_on_logical_billing_model
description: >
A model that identifies tables with a better pricing model under logical billing,
compared to physical billing, by evaluating the difference in storage costs.
meta:
label: "Better Pricing Model (Logical)"
order_fields_by: "label"
group_label: "Storage cost optimization"
columns:
- name: project_id
description: The ID of the BigQuery project.
- name: dataset_id
description: The ID of the dataset containing the table.
- name: table_id
description: The ID of the table being analyzed.
- name: total_logical_tb
description: The total size of the table in terabytes, as calculated by logical bytes.
- name: total_physical_tb
description: The total size of the table in terabytes, as calculated by physical bytes.
- name: logical_cost_monthly_forecast
description: The forecasted monthly storage cost for the table under the logical billing model.
- name: physical_cost_monthly_forecast
description: The forecasted monthly storage cost for the table under the physical billing model.
- name: storage_pricing_model_difference
description: The difference in storage cost between the logical and physical pricing models.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2

models:
- name: table_with_better_pricing_on_physical_billing_model
description: >
A model that identifies tables with a better pricing model under physical billing,
compared to logical billing, by evaluating the difference in storage costs.
meta:
label: "Better Pricing Model (Physical)"
order_fields_by: "label"
group_label: "Storage cost optimization"
columns:
- name: project_id
description: The ID of the BigQuery project.
- name: dataset_id
description: The ID of the dataset containing the table.
- name: table_id
description: The ID of the table being analyzed.
- name: total_logical_tb
description: The total size of the table in terabytes, as calculated by logical bytes.
- name: total_physical_tb
description: The total size of the table in terabytes, as calculated by physical bytes.
- name: logical_cost_monthly_forecast
description: The forecasted monthly storage cost for the table under the logical billing model.
- name: physical_cost_monthly_forecast
description: The forecasted monthly storage cost for the table under the physical billing model.
- name: storage_pricing_model_difference
description: The difference in storage cost between the logical and physical pricing models.

0 comments on commit 8b5b22b

Please sign in to comment.