-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add script to create space allocations snapshot #451
feat: add script to create space allocations snapshot #451
Conversation
View stack outputs
|
8165def
to
539427c
Compare
…sted and add 'listBetween'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thank you! I had a couple minor nits but nothing blocking.
Do you think it's worth adding any testsuites for this? I know a lot of it is boilerplate setup code for the stores, so the types might be enough to feel pretty solid about this, but if there are any trickier bits it would be nice to get some tests in place as we add code.
Great work!
Description
This PR addresses the issue storacha/project-tracking#183.
This PR introduces the
billing/scripts/space-allocations-snapshot
script, which utilizes theallocation
andstore
tables to calculate customer storage size and provide an estimate of their overall usage.Please note that this method is not entirely accurate, as it does not account for deleted storage.
For detailed instructions on using the script, refer to the
billing/scripts/space-allocations-snapshot/README.md
file.