-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FOCUS #174: ListCost - Merge remote-tracking branch 'origin/working_d…
…raft' into 174-create-a-list-cost-metric # Conflicts: # specification/metrics/metrics.mdpp
- Loading branch information
Showing
10 changed files
with
122 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Commitment Discount Category | ||
|
||
A commitment-based discount is a commitment for an amount of usage or spend throughout a specified term, in exchange for discounted unit pricing on that amount. The commitment may be based on quantities of resource units or monetary value, with various payment options and time frames. | ||
|
||
Commitment Discount Category indicates whether the commitment-based discount identified in the CommitmentDiscountId column is based on usage quantity or cost (aka "spend"). | ||
|
||
The CommitmentDiscountCategory column MUST be present in the billing data. This column MUST be of type String, MUST be null when CommitmentDiscountId is null, and MUST NOT be null when CommitmentDiscountId is not null. The CommitmentDiscountCategory MUST be one of the allowed values. | ||
|
||
## Column ID | ||
|
||
CommitmentDiscountCategory | ||
|
||
## Display name | ||
|
||
Commitment Discount Category | ||
|
||
## Description | ||
|
||
Indicates whether the commitment-based discount identified in the CommitmentDiscountId column is based on usage quantity or cost (aka "spend"). | ||
|
||
## Content constraints | ||
|
||
| Constraint | Value | | ||
|:----------------|:-----------------| | ||
| Column required | True | | ||
| Data type | String | | ||
| Allows nulls | True | | ||
| Value format | list-of-values | | ||
|
||
Allowed values: | ||
|
||
| Value | Description | | ||
|:--------|:--------------------------------------------------------------------------------| | ||
| Spend | Commitment-based discounts that require a predetermined amount of spend. | | ||
| Usage | Commitment-based discounts that require a predetermined amount of usage. | | ||
|
||
## Introduced (version) | ||
|
||
1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
supporting_content/dimensions/commitmentdiscountcategory.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Column: CommitmentDiscountCategory | ||
|
||
## Example provider mappings | ||
|
||
Current column mappings found in available data sets: | ||
|
||
| Provider | Data set | Column | Example Values | | ||
|----------|--------------------------|---------------------------|------------------| | ||
| AWS | CUR | Not available | N/A | | ||
| Google Cloud | BigQuery Billing Export | credit.type | COMMITTED_USAGE_DISCOUNT, COMMITTED_USAGE_DISCOUNT_DOLLAR_BASE | | ||
| Microsoft | Cost Details | Not available | N/A | | ||
|
||
## Example usage scenarios | ||
|
||
Current values observed in billing data for various scenarios: | ||
|
||
| Provider | Data set | CommitmentDiscountCategory | CommitmentDiscountProgram (Name TBD) | | ||
|----------|--------------------------|----------------------------|------------------------------------------| | ||
| AWS | CUR (PurchaseOption) | Usage | Reserved Instances | | ||
| AWS | CUR (PurchaseOption) | Spend | Savings Plans | | ||
| Google Cloud | BigQuery Billing Export | Usage | Resource-based CUD | | ||
| Google Cloud | BigQuery Billing Export | Spend | Spend-based CUD | | ||
| Microsoft | Cost Details (PricingModel)| Spend | Savings Plan | | ||
| Microsoft | Cost Details (PricingModel)| Usage | Reservation | | ||
|
||
## Documentation | ||
- Microsoft | ||
- Azure: Understand usage details fields: https://learn.microsoft.com/en-us/azure/cost-management-billing/automate/understand-usage-details-fields | ||
- GCP | ||
- Google Commitment Types: https://cloud.google.com/docs/cuds#spend_versus_resource_commitments (This is the most similar to our selected implementation) | ||
- https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables/standard-usage - see credit.type | ||
- AWS | ||
- Amazon: Reservation details - https://docs.aws.amazon.com/cur/latest/userguide/reservation-columns.html | ||
|
||
## Discussion Topics | ||
It was discussed whether or not this field should be a normalized list of values OR if we should make it a suggestive, freeform text field as different cloud providers have different names for their implementation of Commitment Usage Discounts. For example: | ||
- Savings Plan | ||
- RI/CUD | ||
- Flexible CUDs | ||
|
||
For AWS, this column could possibly calculated as such: | ||
if reservation/ReservationARN <> '' then Usage, else if savingsPlan/SavingsPlanArn <> '' then Spend, else nullThis column | ||
|
||
It was agreed that another column would be added (ideally in V1.0) that would identify the CUD name as termed by the Cloud Provider and that this column would be normalized to allow practitioners to have a standard interface to group and compare CUDs from multiple sources. This would be a non-normalized string. | ||
|
||
The name of this additional column is yet to be determined but could be something like: | ||
- Commitment Discount Type | ||
- Commitment Discount Program | ||
- Commitment Discount Plan | ||
- Commitment Discount Plan Name | ||
- Other | ||
|
||
- Microsoft | ||
- Azure: PricingModel: https://learn.microsoft.com/en-us/azure/cost-management-billing/automate/understand-usage-details-fields | ||
- GCP | ||
- Google Commitment Types: https://cloud.google.com/docs/cuds#spend_versus_resource_commitments (This is the most similar to our selected implementation) | ||
- https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables/standard-usage | ||
- AWS | ||
- Amazon: Instance purchasing options - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-purchasing-options.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters