Skip to content

Conversation

@tdannenmuller
Copy link
Contributor

Example query results

Results
SELECT billing_period, category_name, count(*) as total_products
FROM scaleway_billing_consumption 
WHERE billing_period = '2025-09' AND category_name = 'Compute'
GROUP BY billing_period, category_name;
+----------------+---------------+----------------+
| billing_period | category_name | total_products |
+----------------+---------------+----------------+
| 2025-09        | Compute       | 5              |
+----------------+---------------+----------------+

@misraved misraved requested review from Copilot and misraved November 3, 2025 05:29
@misraved misraved added the community-contribution Pull requests for plugins contributed by the community label Nov 3, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for filtering billing consumption data by billing period. The main purpose is to enable users to query consumption data for specific months using the billing_period filter parameter (format: YYYY-MM).

Key Changes:

  • Added billing_period as an optional key column filter for the billing consumption table
  • Added billing_period as a queryable column that displays the filter value used in the query
  • Updated API request to include the billing_period filter when specified

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
scaleway/table_scaleway_billing_consumption.go Added billing_period as an optional filter and column, along with getBillingPeriod hydrate function
docs/tables/scaleway_billing_consumption.md Added documentation note about the billing_period filter option

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@misraved misraved merged commit c2cbd30 into turbot:main Dec 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Pull requests for plugins contributed by the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants