There is a feature in Google Cloud Platform that allows reporting resource usages. This is cool because it supports two things I will make use of:
And, by doing this, I can make use of plain SQL queries over the dumped data (which goes to BigQuery) to report what I need.
But is there a way I can do this without using BigQuery? Like doing a real-time query? Concretely, solve this requirement:
Is there a way I can do that with some direct GCP Billing API and not by using SQL on BigQuery dumps? (this means: An existing function or class in the billing library or somewhere else - not sure but one that allows me to ask this query).
You can export billing data to Pub/Sub, Cloud Storage, or BigQuery. The Billing APIs do not provide query abilities.
Is there a way I can do that with some direct GCP Billing API and not by using SQL on BigQuery dumps?
If you want those features without using BigQuery then you will need to create an export sink and load the data into a system that supports queries.