API and agentsAPI reference
WidgetValues
object
Batched widget values. Each entry answers for one visible widget: formula {value, baseline} (baseline = the selection-free value), category {categories: [{value, n}], other} (top 5; other is the rollup or null), histogram {domain, bins} (domain from the selection-free query so bars shrink in place). A widget whose layer is gone or whose query failed answers {id, error, errorCode} — the rest keep working, and truth surfaces key their prose on errorCode (widget_layer_missing, query_timeout, sql_error, …) while error keeps the detail. layers carries per-layer constrained/total row counts.
widgetsarrayrequired(each item)objectidstringrequiredtypestringOne of
formula,category,histogramvaluenumberor nullbaselinenumberor nullcategoriesarray(each item)objectvaluestringnnumber
othernumberor nulldomainobjector nullminnumbermaxnumber
binsarray of integererrorstringerrorCodestringMachine-readable reason when error is present; one of the documented error codes.
layersarrayrequired(each item)objectlayerIdstringrequiredcountintegerrequiredtotalintegerrequired
7439201b