AckdbDashboardBreakdownSpec

Group the segment's rows by one field and reduce each group to a number. A `date` groupBy is bucketed to the day; a NULL label is a real group ("unset"), never dropped.

Properties

groupBystringrequired

A groupable catalog field: string, enum, boolean, date, score label, owner, identity-link column. Numeric fields are refused.

aggstringrequired
"count""sum""avg""min""max"
fieldstring

Required unless agg is `count`.

topNintegermin 1 · max 50

Default 10.

sortstring

Default value_desc.

"value_desc""value_asc""label_asc"
othersBucketboolean

Fold the remainder into one exact `others` entry. Default false.

Example

AckdbDashboardBreakdownSpec example
{
  "groupBy": "string",
  "agg": "count",
  "field": "string",
  "topN": 0,
  "sort": "value_desc",
  "othersBucket": false
}