b2_usage_growth
Compare the current B2 usage snapshot against a month, quarter, or year earlier to rank accounts by stored-data growth or shrinkage, identifying customers gaining or shedding data.
Instructions
Rank accounts by how much STORED data grew or shrank between two points in time, from the daily B2 usage reports (uses stored_gb, the end-of-day snapshot). For 'which customers grew the most/least', 'who's moving data off'. Compares the latest snapshot against one month/quarter/year earlier and fetches only those two days, so it stays fast even on large report buckets. Returns the two dates compared and per-account start vs current GB and % growth (new accounts flagged). Scope follows the caller's key (a partner key sees all its sub-accounts). Needs Usage Reports enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Custom trailing window in days that overrides `period` (e.g. 7 for week-over-week). | |
| limit | No | Max accounts (default 50). | |
| order | No | Ranking. Default most_grown. | most_grown |
| period | No | Compare the latest snapshot against one month, quarter, or year ago. Default month. | month |