CustomViewInput
- nameType: stringmin length:1required
The view's name.
- queriesType: 1…20requiredProperties: 2
The view's queries. Each is compiled when you save the view.
- renderType: string
Bundle min length:1max length:2000000requiredThe HTML document (with its scripts and styles inline) that draws the view, at most 2,000,000 characters. It must listen for the
spondo:datamessage, which carries the view's data: the same{ context, data }object Get a view's data returns. - capsType: boolean
Enabled Whether the view shows the caps (usage limits) set on the customer's units.
- descriptionType: string | null
What the view shows.
- filtersType: …5Properties: 2
Filters viewers can set, at most 5.
- hierarchyType: boolean
Enabled Whether viewers can narrow the view to one of the customer's units (teams, departments, tenants). When on, List a view's customer units lists the units to pick from.
- periodnullable
The period the view shows by default. Required when a query uses the period placeholders.
A rolling window that ends when the data is read.
- amountType: integermin:1required
How many units the window covers.
- kindconst:relativerequired
- unitType: "day" or "month" or "year"enumrequired
- scopeType: enum
customer: shown to one customer at a time, with every query narrowed to that customer's records; can be embedded.organization: shows data across all your customers, for your own team; can't be embedded.valuescustomerorganization