Commit 94cdfdd
authored
feat(cloud): add cost-report API support (Beta) (#479)
Add support for the new Redis Cloud cost-report API endpoints:
- POST /cost-report - Generate cost reports in FOCUS format
- GET /cost-report/{costReportId} - Download generated reports
Library changes (redis-cloud):
- Add cost_report module with CostReportHandler
- Add CostReportCreateRequest with builder pattern
- Add CostReportFormat, SubscriptionType, Tag types
- Add get_bytes() method to CloudClient for binary downloads
CLI changes (redisctl):
- Add 'cloud cost-report generate' command with filters:
- Date range (start-date, end-date)
- Format (csv, json)
- Subscription IDs, database IDs
- Subscription type (pro, essentials)
- Regions and tags
- Add 'cloud cost-report download' command
- Add CLI help tests
The cost report API is currently in Beta.1 parent 6f79b0e commit 94cdfdd
File tree
8 files changed
+866
-0
lines changed- crates
- redis-cloud/src
- redisctl
- src
- cli
- commands/cloud
- tests
8 files changed
+866
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
274 | 318 | | |
275 | 319 | | |
276 | 320 | | |
| |||
0 commit comments