Skip to content

Returns a single metric's breakdown grouped by a dimension (product/customer/plan), sorted by value and limited to the top top rows. The grouping and top-N run server-side so the client never fetches the full metric snapshot. Pass top <= 0 to return every group.

GET
/api/v1/provision/admin/reports/usage-metrics/breakdown
curl --request GET \
--url https://example.com/api/v1/provision/admin/reports/usage-metrics/breakdown
metric
string
groupBy
string
top
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
aggregate
string

OK

Server-computed breakdown of a single metric grouped by a dimension (product / customer / plan), already sorted and limited to the top N rows. The grouping, sort and top-N happen server-side so the client never over-fetches the full snapshot just to render a small table.

object
metricName

The metric this breakdown is for, e.g. “api.requests.count”.

string
groupBy

Dimension the rows are grouped by: “product”, “customer” or “plan”.

string
isAttributed

True when the metric carries per-entitlement/product attribution (i.e. a breakdown is meaningful).

boolean
totalGroups

Total number of distinct groups before the top-N limit (for the “showing top N of M” note).

integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
grandTotal

Sum across all groups, used to compute each row’s share.

number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
rows

The top-N groups by value, highest first.

Array<object>

A single group within a UsageMetricsBreakdownDto.

object
label

Group label (product/customer/plan name, or “Unattributed”).

string
value

Aggregated value for the group (sum for counters, average for rates).

number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
items

How many tracker rows folded into this group.

integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
share

Group value as a fraction (0..1) of decimal UsageMetricsBreakdownDto.GrandTotal.

number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/
numberFormat

Display format hint, e.g. “0”, “0.0”, “0.0%”.

string

Unauthorized

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string

Forbidden

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string