Financial Commitment Reports VQL Schema
VQL for Financial Commitment Reports comprises one namespace,financial_commitments, which represents the available filters on Financial Commitment Reports in the Vantage console. To reference a filter, use the following syntax: namespace.field (e.g., financial_commitments.service). The following fields are available within the financial_commitments namespace.
Keywords
VQL includes a set of keywords to create complex filter conditions. These keywords function similar to their SQL equivalents. The provider condition is optional. The examples below omit it and apply to all connected Financial Commitment Report providers.
With these operators and keywords, you can construct complex filter conditions in VQL.
Syntax
VQL resembles theWHERE clause of a SQL query. The provider condition is optional.
Omit financial_commitments.provider to query all connected providers:
IN:
OR query, include the corresponding provider condition in each branch:
VQL Examples
The following examples cover common use cases for VQL.Financial Commitments by Service
Filter for services across multiple providers.Financial Commitments by Specific Account
Filter down to an individual account. The account is an AWS account, Azure subscription, or GCP project.Financial Commitments by Specific Billing Account
Filter down to an individual billing account.See Specific Commitment Types
Filter out certain commitment types to see everything else.Financial Commitments by Commitment ID
See the impact of a specific GCP committed use discount by its consumption model ID.Financial Commitments by Charge Type
See only usage-related commitments.Financial Commitments by Category
All data transfer-related commitments.Financial Commitments by Subcategory
Filter for Cloudfront and data transfer egress in APN2.Financial Commitments by Instance Types
Filter from a list of different instance types.The
instance_type field is not populated for GCP.Financial Commitments by Region
See all financial commitments inus-east-1.
Financial Commitments by Tags
Filter based on anenvironment tag and a list of provided values.
Multiple Filters
Combine provider-specific statements usingOR.
Real-World Examples
Find EC2 usage commitments for an account inus-east-1:
Troubleshooting
- Wrap string values in single quotes, not double quotes.
- Omit
financial_commitments.providerto include all connected Financial Commitment Report providers. - Use
financial_commitments.provider = 'aws',financial_commitments.provider = 'azure', orfinancial_commitments.provider = 'gcp'to scope a query to one provider. - For provider-specific
ORbranches, include the corresponding provider condition in each branch. - Use
financial_commitments.resource_tags->>'KEY'to filter a tag. - Keep complete conditions together when mixing
ANDandOR; use parentheses to separate each branch.