Alpha: This API may change without notice; not recommended
for production use.
Returns aggregated statistics — distinct value count and the top-K
most frequent value/count pairs — for one or more dataset
attributes, optionally restricted to a CEL-filtered subset of
datasets.
Each attributes entry is a CEL expression that produces a
comparable value (string, int, bool, timestamp); compound
expressions are allowed (coalesce(_package, label)). The CEL
environment matches GET /v1/datasets; see that endpoint's
description for the field mapping, type discrepancies, and
available functions.
Each multiValueAttributes entry is a CEL expression that produces
a list<comparable>; the list is flattened across all matching
datasets and counted as total occurrences, so a single
dataset whose expression evaluates to a 3-element list
contributes 3 increments. multiValueAttributes count values may
therefore exceed meta.filteredDatasets. For attributes the
count is unchanged: the number of datasets with that value.
At least one of attributes or multiValueAttributes must be
non-empty; passing neither returns 400.
Stat values are returned as JSON strings regardless of the
expression's CEL type:
string— verbatim.int— decimal digits (e.g."41000234").bool—"true"or"false".timestamp— RFC 3339 (e.g."2024-01-01T00:00:00Z").
The response meta block reports totalDatasets (before the
filter) and filteredDatasets (after) so callers can compute
coverage.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||