{"id":13703402,"url":"https://github.com/danthelion/dbt_cloud_run_cost","last_synced_at":"2026-03-13T04:42:32.384Z","repository":{"id":187832334,"uuid":"677673353","full_name":"danthelion/dbt_cloud_run_cost","owner":"danthelion","description":"💸 package to calculate dbt Cloud usage-based cost 💸","archived":false,"fork":false,"pushed_at":"2023-08-13T09:07:19.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-13T10:37:57.208Z","etag":null,"topics":["dbt","dbt-cloud","dbt-packages","dbtcloud"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danthelion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-12T08:48:51.000Z","updated_at":"2024-10-25T03:01:17.000Z","dependencies_parsed_at":"2024-11-13T10:41:30.696Z","dependency_job_id":null,"html_url":"https://github.com/danthelion/dbt_cloud_run_cost","commit_stats":null,"previous_names":["danthelion/dbt_cloud_run_cost"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danthelion%2Fdbt_cloud_run_cost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danthelion%2Fdbt_cloud_run_cost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danthelion%2Fdbt_cloud_run_cost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danthelion%2Fdbt_cloud_run_cost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danthelion","download_url":"https://codeload.github.com/danthelion/dbt_cloud_run_cost/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252458354,"owners_count":21751023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dbt","dbt-cloud","dbt-packages","dbtcloud"],"created_at":"2024-08-02T21:00:54.339Z","updated_at":"2026-03-13T04:42:32.367Z","avatar_url":"https://github.com/danthelion.png","language":null,"funding_links":[],"categories":["Packages"],"sub_categories":[],"readme":"# dbt_cloud_run_cost\n\n\u003e This run cost $0.78 based on 78 successfully executed models.\n\nThis package contains a macro that calculates the cost of successfully created models if they were run via dbt Cloud.\n\n## Installation\n\nAdd the following to your `packages.yml` file:\n\n```yaml\npackages:\n  - package: danthelion/dbt_cloud_run_cost\n    version: [\"0.4.0\"]\n```\n\nAfter that, run `dbt deps` to install the package.\n\n## Usage\n\nCall the macro as a post-hook in your `dbt_project.yml` file:\n\n```yaml\non-run-end:\n  - \"{{ dbt_cloud_run_cost.calculate_run_cost(results, False) }}\"\n```\n\nFunction arguments:\n\n- `results`: the `results` variable that is passed to the `on-run-end` hook.\n- `dbt_cloud_only`: a boolean flag that restricts calculations to only dbt Cloud runs. Defaults to `False`.\n\nThis is how it will look like after you run a job:\n\n```bash\n08:30:51  \n08:30:51  Running 1 on-run-end hook\n08:30:51\n08:30:51  This run cost $0.78 based on 78 successfully executed models.\n08:30:51\n08:30:51  1 of 1 START hook: analytics.on-run-end.0 ......................... [RUN]\n08:30:51  1 of 1 OK hook: analytics.on-run-end.0 ............................ [OK in 0.00s]\n08:30:51  \n08:30:51  \n08:30:51  Finished running 22 view models, 56 table models, 18 tests, 1 hook in 0 hours 10 minutes and 34.38 seconds (634.38s).\n08:30:51  \n08:30:51  Completed successfully\n08:30:51  \n08:30:51  Done. PASS=96 WARN=0 ERROR=0 SKIP=0 TOTAL=96\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanthelion%2Fdbt_cloud_run_cost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanthelion%2Fdbt_cloud_run_cost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanthelion%2Fdbt_cloud_run_cost/lists"}