Marketplace Project Usage
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/marketplace-project-usage/{uuid}/components-usage/ |
Get resource usage statistics broken down per offering |
| Other Actions | ||
| GET | /api/marketplace-project-usage/{uuid}/components-usage-timeseries/ |
Get monthly usage buckets for a single offering |
Core CRUD
Get resource usage statistics broken down per offering
Returns one row per (offering, component type, billing type) for all non-terminated resources within the scope. Each row's usage and limit_usage are aggregated using the offering's own limit_period.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
components |
array of objects |
components.type |
string |
components.name |
string |
components.description |
string |
components.measured_unit |
string |
components.billing_type |
string |
components.usage |
number (double) |
components.limit_usage |
number (double) |
components.limit |
number (double) |
components.offering_name |
string |
components.offering_uuid |
string (uuid) |
components.limit_period |
string |
components.current_period_label |
string |
components.current_period_start |
string (date) |
components.current_period_end |
string (date) |
Other Actions
Get monthly usage buckets for a single offering
Returns a per-month timeseries of ComponentUsage for one offering, restricted to that offering's current limit_period. Buckets are keyed by billing_period (always month-start). period_offset shifts the window backward by N periods.
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Name | Type | Required |
|---|---|---|
component_type |
string | |
offering_uuid |
string (uuid) | ✓ |
period_offset |
integer |
200 -
| Field | Type |
|---|---|
offering_uuid |
string (uuid) |
offering_name |
string |
type |
string |
name |
string |
measured_unit |
string |
billing_type |
string |
limit_period |
string |
limit |
number (double) |
current_period_label |
string |
current_period_start |
string (date) |
current_period_end |
string (date) |
today |
string (date) |
buckets |
array of objects |
buckets.billing_period |
string (date) |
buckets.usage |
number (double) |