UNPKG

@cloud-carbon-footprint/gcp

Version:

The core logic to get cloud usage data and estimate energy and carbon emissions from Google Cloud Platform.

318 lines (207 loc) 9.79 kB
# @cloud-carbon-footprint/gcp ## 0.15.0 ### Minor Changes - 7e899dce: Adds support and configuration variables for filtering accounts/projects by id ### Patch Changes - Updated dependencies [7e899dce] - @cloud-carbon-footprint/common@1.15.0 ## 0.14.0 ### Minor Changes - 6ffe7497: adds electricity maps api handling. For CLI create-app template changes, refer to [this commit](https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/commit/2749723c00343865c7453fea29609ea6dad4b5e9). ### Patch Changes - 53812d8d: Fix syntax errors in GCP Queries when using tags/labels - Updated dependencies [bc06b861] - Updated dependencies [7630768d] - Updated dependencies [6ffe7497] - @cloud-carbon-footprint/common@1.13.0 ## 0.13.1 ### Patch Changes - 4683b86f: bug fix for gcp package - Updated dependencies [1a5d7636] - Updated dependencies [c82bf5fd] - @cloud-carbon-footprint/common@1.12.0 ## 0.13.0 ### Minor Changes - 42b2359e: Updates emissions factors and PUE constants to latest published values ### Patch Changes - Updated dependencies [0d20b32c] - @cloud-carbon-footprint/common@1.11.0 ## 0.12.0 ### Minor Changes - e0299c2c: Replaces the use of googleapis with separate package clients - efbcad00: Adds support for including tags and labels in queries via config ### Patch Changes - 56273914: adds DCU to gcp compute types - Updated dependencies [65386330] - @cloud-carbon-footprint/core@0.17.3 ## 0.11.1 ### Patch Changes - 689c973e: removes usageUnit from lookup table result Please refer to [this commit](https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/commit/dca81101d2b6d33beef2385faea6cf76bda3484f) for create app template updates - Updated dependencies [689c973e] - Updated dependencies [689c973e] - Updated dependencies [689c973e] - @cloud-carbon-footprint/common@1.9.0 ## 0.11.0 ### Minor Changes - a6423a68: Includes updates for pagination logic and mongodb implementation, as well as date range fixes and tagging logic ### Patch Changes - a6423a68: updates ts-node dependency - Updated dependencies [a6423a68] - Updated dependencies [a6423a68] - Updated dependencies [a6423a68] - Updated dependencies [a6423a68] - Updated dependencies [a6423a68] - Updated dependencies [a6423a68] - @cloud-carbon-footprint/core@0.17.0 - @cloud-carbon-footprint/common@1.8.0 ## 0.10.0 ### Minor Changes - a7a79c83: Updates emissions factors for cloud provider regions ### Patch Changes - a7a79c83: updates bugs for lookup table - Updated dependencies [a7a79c83] - @cloud-carbon-footprint/common@1.7.0 ## 0.9.1 ### Patch Changes - 510d4b86: updates packages: axios googleapis dotenv @types/jest-when See [this commit](https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/commit/8d8c1db6ff94da5127d559e10632479a8520c67a) for changes to the create-app templates. - ff05607b: Bumps to latest version of typescript and sets resolution for this See [this commit](https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/commit/6cdc1469dcd5380c9c8a84b9fe13b977991db54c) for changes to the create-app templates. - Updated dependencies [510d4b86] - Updated dependencies [ff05607b] - @cloud-carbon-footprint/common@1.5.1 - @cloud-carbon-footprint/core@0.16.1 ## 0.9.0 ### Minor Changes - ef6af294: Adds initial support for energy/carbon estimation for GPU instances for AWS and GCP - 7ecd432d: Adds support for optionally passing in the CCF Config into the api router ### Patch Changes - Updated dependencies [497ae495] - Updated dependencies [ef6af294] - Updated dependencies [7ecd432d] - Updated dependencies [9fcbfc67] - Updated dependencies [9938c9b0] - @cloud-carbon-footprint/core@0.16.0 - @cloud-carbon-footprint/common@1.5.0 ## 0.8.0 ### Minor Changes - a23e1e59: Updates logic for handling unknown usage types to dynamically build kilowatt hour per usage amount (GCP, Azure) or cost (AWS) by service name and usage unit, to increase accuracy. - 04f2be16: Adds configurable option to use Google's published carbon free energy % in emissions factors. Updates estimation logic for GCP services: Cloud Composer and Kubernetes Engine, to improve accuracy. ### Patch Changes - Updated dependencies [a23e1e59] - Updated dependencies [f40ce29e] - Updated dependencies [04f2be16] - @cloud-carbon-footprint/core@0.15.0 - @cloud-carbon-footprint/common@1.4.0 ## 0.7.0 ### Minor Changes - 808085cc: Adds replication factor for Cloud Spanner and Kubernetes engine and updates unsoported usage types - aaeb61a3: Updates estimation for unknown usage types to calculate kilowatt hours first, then co2e, to improve acccuracy ### Patch Changes - 8fd171ed: Updates a number of packages and fixes linting, typescript and dependency issues - Updated dependencies [8fd171ed] - Updated dependencies [808085cc] - Updated dependencies [aaeb61a3] - @cloud-carbon-footprint/common@1.3.1 - @cloud-carbon-footprint/core@0.14.0 ## 0.6.0 ### Minor Changes - c29a3b53: Adds support for specifying groupBy via API param and for displaying line chart data according to data grouping For changes to create-app templates, please refer to this [commit](https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/commit/8743e9a36f005716095300b7a1f331b4ffaa8100). ### Patch Changes - Updated dependencies [c29a3b53] - @cloud-carbon-footprint/common@1.3.0 - @cloud-carbon-footprint/core@0.13.0 ## 0.5.1 ### Patch Changes - a304acb6: Upgrades version of typescript to 4.5.3 - a304acb6: updates GCPAccount to use MIN_WATTS_MEDIAN and MAX_WATTS_MEDIAN to compute estimations actually work. Updates client to not break when cost is zero please refer to this [commit](https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/commit/0cdcd2c5ab0b68a69374b31b32c10721fb8f094a) for create-app package updates. - a304acb6: Updates scope 3 emissions coefficients for Machine Types for GCP - Updated dependencies [a304acb6] - @cloud-carbon-footprint/common@1.2.1 - @cloud-carbon-footprint/core@0.12.1 ## 0.5.0 ### Minor Changes - 4238d3b8: "Add embodied emissions to the estimations for GCP" - 4238d3b8: Add support for GCP Tau T2D (AMD EPYC Gen 3) instance types ### Patch Changes - 4238d3b8: Fixes bug with Create Lookup Table requiring credentials for AWS input For Create-App updates, please refer to this [commit](https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/commit/f8732281a02fe087d09343ffd4531ebe688fc655). - 4238d3b8: Updates packages axios, googleapis and @changesets/cli - Updated dependencies [4238d3b8] - Updated dependencies [4238d3b8] - Updated dependencies [4238d3b8] - @cloud-carbon-footprint/core@0.12.0 ## 0.4.1 ### Patch Changes - 8b200348: Renames numberOfvCpus in ComputeUsage to match its use in ComputeEstimator - b0867e10: Bumps dependency: @google-cloud/resource-manager - Updated dependencies [8b200348] - @cloud-carbon-footprint/core@0.11.1 ## 0.4.0 ### Minor Changes - c439b0ba: implements reclassification and estimations for unknown usage rows - 52237bc6: Adds additional dashboard for viewing cloud provider recommendations including refactoring filters for reusability For updating the create-app templates, please refer to the following [commit](https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/commit/d1f9a94ea88e6f9210a781e16df18b9f64a0b03d). ### Patch Changes - c81cf4bd: Bug Fix: CO2e estimations for TechOps - Data Project and refactors GCP Recommendations file - Updated dependencies [f3569daa] - Updated dependencies [61332214] - Updated dependencies [c439b0ba] - Updated dependencies [52237bc6] - @cloud-carbon-footprint/common@1.2.0 - @cloud-carbon-footprint/core@0.11.0 ## 0.3.1 ### Patch Changes - Updated dependencies [5a0aab5b] - @cloud-carbon-footprint/core@0.10.0 ## 0.3.0 ### Minor Changes - d7fd8fda: updates google emission factors - f75cf08f: Adds support for getting GCP recommendations from the API - 22636b35: updates processor coefficients ### Patch Changes - 5407c95b: Bumps concurrently and googleapis packages to latest versions - Updated dependencies [f75cf08f] - Updated dependencies [52a8b3c1] - @cloud-carbon-footprint/common@1.1.0 ## 0.2.0 ### Minor Changes - e76d5fdd: Adds accountId to the Estimation Results returned from the Cloud Carbon Footprint API Please refer to this [commit](https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/commit/cd2d5b988544246d87abbc441895d76003fed72b) to update create app templates. ### Patch Changes - bbceed8b: Updates dependencies: @types/fs-extra, typescript, husky and @types/node - Updated dependencies [13f39ac7] - Updated dependencies [91ed3d75] - Updated dependencies [72fc2752] - Updated dependencies [e76d5fdd] - Updated dependencies [bbceed8b] - @cloud-carbon-footprint/common@1.0.0 - @cloud-carbon-footprint/core@0.9.0 ## 0.1.0 ### Minor Changes - a3b4f6b9: Completed implementation of replication factors for cloud storage seervices - bfe69180: Updates Cascade Lake microarchitecture compute and memory coefficients based on latest rows in the SPEC Power database ### Patch Changes - 3b42775b: Updates @types/node to 15.12.4 - Updated dependencies [e93d31ec] - Updated dependencies [3b42775b] - Updated dependencies [53366130] - @cloud-carbon-footprint/common@0.0.3 - @cloud-carbon-footprint/core@0.8.2 ## 0.0.3 ### Patch Changes - 3f283737: Adds support for regions with unknown constants - Updated dependencies [3f283737] - Updated dependencies [8e24c32b] - @cloud-carbon-footprint/core@0.8.1 - @cloud-carbon-footprint/common@0.0.2 ## 0.0.2 ### Patch Changes - Updated dependencies [f9fbcb4c] - Updated dependencies [c7fa7db0] - Updated dependencies [ababb826] - Updated dependencies [e84a4c7a] - @cloud-carbon-footprint/core@0.8.0