Skip to content
DezfilDocsv0.1.0

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)object

      • idstringrequired

      • typestring

        One of formula, category, histogram

      • valuenumberor null

      • baselinenumberor null

      • categoriesarray

        • (each item)object

          • valuestring

          • nnumber

      • othernumberor null

      • domainobjector null

        • minnumber

        • maxnumber

      • binsarray of integer

      • errorstring

      • errorCodestring

        Machine-readable reason when error is present; one of the documented error codes.

  • layersarrayrequired

    • (each item)object

      • layerIdstringrequired

      • countintegerrequired

      • totalintegerrequired

Dezfil · Apache-2.0docs from 7439201b