Loading
Add daily_average field to subscriptionUsage
What does this MR do and why?
This adds daily_average field to subscriptionUsage as part of https://gitlab.com/gitlab-org/gitlab/-/work_items/594756
Clients can now query the average daily credit consumption for their subscription
References
Screenshots or screen recordings
N/A
How to set up and validate locally
- Add some transactions to your subscription's wallet (docs)
- Open GraphQL and execute this query (https://gdk.test:3443/-/graphql-explorer) :
Query:
query getSubscriptionUsage($namespacePath: ID) {
subscriptionUsage(namespacePath: $namespacePath) {
dailyAverage
dailyUsage {
date
creditsUsed
}
}
}Variables:
{
"namespacePath": "your-group"
}MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Sheldon Led