Skip to content

Commit

Permalink
BillingAccountType and SubAccountType
Browse files Browse the repository at this point in the history
  • Loading branch information
flanakin committed Nov 8, 2023
1 parent 6bb6b37 commit 7be8d6f
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 0 deletions.
30 changes: 30 additions & 0 deletions specification/dimensions/billingaccounttype.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Billing Account Type

Billing Account Type is the label the provider uses to describe the kind of the billing account. Billing Account Type is a readable display name and not a code. Billing Account Type is commonly used for scenarios like mapping FOCUS constructs to provider constructs and summarizing costs across providers.

The BillingAccountType column MUST be present and MUST NOT be null or empty. This column MUST be of type String and MUST NOT be null when BillingAccountId is not null. When BillingAccountId is null, BillingAccountType MUST also be null. Providers MUST use a consistent value-format and a set of values for BillingAccountType values within their cost and usage datasets.

## Column ID

BillingAccountType

## Display Name

Billing Account Type

## Description

Label the provider uses to describe the kind of billing account.

## Content Constraints

| Constraint | Value |
| :-------------- | :--------------- |
| Column required | True |
| Data type | String |
| Allows nulls | False |
| Value format | \<not specified> |

## Introduced (version)

1.0
2 changes: 2 additions & 0 deletions specification/dimensions/dimensions.mdpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dimensions to categorize, filter, and reveal details in your data when grouped w
!INCLUDE "availabilityzone.md",1
!INCLUDE "billingaccountid.md",1
!INCLUDE "billingaccountname.md",1
!INCLUDE "billingaccounttype.md",1
!INCLUDE "billingcurrency.md",1
!INCLUDE "billingperiodend.md",1
!INCLUDE "billingperiodstart.md",1
Expand All @@ -29,6 +30,7 @@ dimensions to categorize, filter, and reveal details in your data when grouped w
!INCLUDE "servicename.md",1
!INCLUDE "subaccountid.md",1
!INCLUDE "subaccountname.md",1
!INCLUDE "subaccounttype.md",1
!INCLUDE "tags.md",1

[FODOFC]: https://www.finops.org/framework/capabilities/
30 changes: 30 additions & 0 deletions specification/dimensions/subaccounttype.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Sub Account Type

Sub Account Type is the label the provider uses to describe the kind of the sub account. Sub Account Type is a readable display name and not a code. Sub Account Type is commonly used for scenarios like mapping FOCUS constructs to provider constructs and summarizing costs across providers.

The SubAccountType column MUST be present and MUST NOT be null or empty. This column MUST be of type String and MUST NOT be null when SubAccountId is not null. When SubAccountId is null, SubAccountType MUST also be null. Providers MUST use a consistent value-format and a set of values for SubAccountType values within their cost and usage datasets.

## Column ID

SubAccountType

## Display Name

Sub Account Type

## Description

Label the provider uses to describe the kind of sub account.

## Content Constraints

| Constraint | Value |
| :-------------- | :--------------- |
| Column required | True |
| Data type | String |
| Allows nulls | False |
| Value format | \<not specified> |

## Introduced (version)

1.0
29 changes: 29 additions & 0 deletions supporting_content/dimensions/billingaccounttype.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Column: BillingAccountType

## Example provider mappings

Current column mappings found in available data sets:

| Provider | Data set | Column |
| --------- | ----------------------- | ------------- |
| AWS | CUR | Not available |
| GCP | BigQuery Billing Export | Not available |
| Microsoft | Cost details | Not available |

## Documentation

- GCP: [Resource Hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy#resource-hierarchy-detail)
- Azure: [Organizing resources](https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/view-all-accounts)
- AWS: [Org Concepts](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html)

## Example usage scenarios

Current terms used by providers:

| Provider | Scenario | Value |
| --------- | ------------- | -------------------- |
| AWS | Not available | "Management Account" |
| GCP | Not available | "Billing Account" |
| Microsoft | EA | "Billing Account" |
| Microsoft | MCA/MPA | "Billing Profile" |
| Microsoft | Other | "Subscription" |
27 changes: 27 additions & 0 deletions supporting_content/dimensions/subaccounttype.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Column: SubAccountType

## Example provider mappings

Current column mappings found in available data sets:

| Provider | Data set | Column |
| --------- | ----------------------- | ------------- |
| AWS | CUR | Not available |
| GCP | BigQuery Billing Export | Not available |
| Microsoft | Cost details | Not available |

## Documentation

- GCP: [Resource Hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy#resource-hierarchy-detail)
- Azure: [Organizing resources](https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/view-all-accounts)
- AWS: [Org Concepts](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html)

## Example usage scenarios

Current terms used by providers:

| Provider | Value |
| --------- | ---------------- |
| AWS | "Member Account" |
| GCP | "Project" |
| Microsoft | "Subscription" |

0 comments on commit 7be8d6f

Please sign in to comment.