The Query Library is where everything built on top of your collected data is kept: the widgets you place on dashboards, the evidence queries that collect compliance evidence, and the alert queries that run on a schedule.
This guide covers the three tabs, what each one lists, the actions on each row, and how to set up a drilldown on a widget. Creating evidence queries and alerts step by step is covered in How to Set Up Alerts and Evidence Queries. Building widgets is covered in How to Build Custom Widgets and Dashboards.
| Tab | To see the tab | To create | To edit | To delete | Other |
|---|---|---|---|---|---|
| Widget | defence:widget:view | defence:widget:create | defence:widget:create | defence:widget:delete | Drilldown needs defence:widget:create |
| Evidence | grc:evidence:view | grc:evidence:create and defence:query:create | grc:evidence:create, defence:query:create and defence:query:update | grc:evidence:create and defence:query:delete | Preview needs defence:query:execute |
| Alert | defence:query:view | defence:query:create | defence:query:create and defence:query:update | defence:query:delete | Trigger needs defence:query:execute |
Navigation: Sidebar → Assets → Query Library
The page opens on the Widget tab. The three tabs are Widget, Evidence and Alert.
Every tab works the same way:
If you lack the view permission for a tab, that tab shows an unauthorised screen while the others keep working. If you lack all three, the whole page shows it.
Lists every saved widget in your organisation, including the standard widgets that ship with Interno and any widgets ZIN created.
| Column | What it shows | Sortable |
|---|---|---|
| Name | The widget's name | Yes |
| Visualization Type | How it is drawn: a chart type, table, card or standard | No |
| Created By | Who created it | No |
| Created On | When it was created | Yes |
| Updated By | Who last changed it | No |
| Updated On | When it was last changed | Yes |
Create Widget at the top right opens the Query Builder. It is shown only if you hold defence:widget:create.
| Action | What it does | Shown when |
|---|---|---|
| Edit | Asks for confirmation, then opens the widget in the Query Builder | You hold defence:widget:create and the widget is not a standard widget |
| Delete | Asks for confirmation, then deletes the widget | You hold defence:widget:delete and the widget is not a standard widget |
| Preview | Shows the widget as it appears on a dashboard, without leaving the page | You hold defence:widget:view |
| Drilldown | Opens the drilldown builder for this widget | You hold defence:widget:create and the widget is not a table, standard, radar, sunburst, theme-river or parallel widget |
A change to a widget shows on every dashboard that uses it, which is why the dashboards are listed first.
Deleting a widget cannot be undone, and the widget disappears from every dashboard it was on. Standard widgets cannot be deleted.
A drilldown is a second query attached to a widget. When someone clicks a bar, slice or point on the widget, Interno runs the drilldown for the value they clicked and shows the matching rows.
Without a drilldown, clicking a chart still opens a details window, but it can only show the rows of the widget's own result for that value. A drilldown lets you show different, fuller detail.
Navigation: Sidebar → Assets → Query Library → Widget tab → row menu → Drilldown
'Open'. The sample value is a stand-in: when someone clicks the chart, Interno replaces it with the value they clicked.Interno confirms with Drilldown created successfully and returns you to the Query Library.
On a card widget with a drilldown, clicking the card runs the drilldown query as written and shows its rows.
Lists saved evidence queries, which collect data from your integrations as compliance evidence.
| Column | What it shows | Sortable |
|---|---|---|
| Identifier | The control identifier for control evidence; the initials of the title for parameter evidence | No |
| Name | The evidence query's name | No |
| Type | control or parameter | No |
| Created By | Who created it | No |
| Created On | When it was created | Yes |
| Updated By | Who last changed it | No |
| Updated On | When it was last changed | Yes |
Above the table, the Type filter narrows the list to Control or Parameter. Create Evidence opens the Query Builder; it is shown only if you hold grc:evidence:create.
| Action | What it does | Shown when |
|---|---|---|
| Edit | Asks Are you sure you want to edit this evidence?, then opens it in the Query Builder | You hold grc:evidence:create |
| Delete | Asks Are you sure you want to delete this evidence?, then deletes it | You hold grc:evidence:create |
| Preview | Runs the query now and shows the rows it returns | Always. Running it needs defence:query:execute |
The preview shows the result as a table with search, filter, column visibility and CSV export.
Lists saved alert queries, which run on a repeating interval and email their result.
| Column | What it shows | Sortable |
|---|---|---|
| Name | The alert's name | Yes |
| Interval | How often it runs, as 1 day or N days | Yes |
| Created By | Who created it | No |
| Created On | When it was created | Yes |
| Last Executed | When it last ran | Yes |
| Next Execution | When it is next due | Yes |
Create Alert opens the Query Builder; it is shown only if you hold defence:query:create.
| Action | What it does | Shown when |
|---|---|---|
| Edit | Asks Are you sure you want to edit this alert?, then opens it in the Query Builder | You hold defence:query:create |
| Delete | Asks Are you sure you want to delete this alert?, then deletes it | You hold defence:query:delete |
| Trigger | Runs the alert now and emails the result | Always. Running it needs defence:query:execute |
Alert rows do not open a preview when clicked. To see what an alert returns, use Trigger and read the email, or open it with Edit and click Preview in the builder.
The Query Library sends me to Integrations → Interno has no collected data yet. Connect an integration and let a scan finish.
The whole page shows an unauthorised screen → You hold none of defence:widget:view, grc:evidence:view or defence:query:view. Ask your administrator.
One tab shows an unauthorised screen → That tab's view permission is missing. See the permissions table above.
A tab is empty → Nothing of that kind has been saved yet, or your search matches nothing. Clear the Search box, then use Create Widget, Create Evidence or Create Alert.
The Create button is missing → Creating is gated: defence:widget:create for widgets, grc:evidence:create for evidence, defence:query:create for alerts.
Edit and Delete are missing from a widget's menu → The widget is a standard widget, which cannot be edited or deleted, or you lack defence:widget:create (edit) or defence:widget:delete (delete).
"Standard widget can't be deleted." → Standard widgets ship with Interno and stay in the library. Remove them from a dashboard instead if you do not want to see them.
Drilldown is missing from a widget's menu → Drilldown is not offered for table widgets, standard widgets, or radar, sunburst, theme-river and parallel charts.
Clicking my chart shows the wrong rows, or none → The drilldown query does not compare the parent widget's x-axis column with a value. Open Drilldown, add that condition to the WHERE clause, and update.
The drilldown is refused with "Drill-down SQL validation failed" → The query broke one of Interno's SQL rules; the message names the problem. See How to Build Custom Widgets and Dashboards for the rules.
I opened Create Evidence but the builder shows an unauthorised screen → The Query Builder for evidence and alerts needs defence:query:create as well.
Edit opens the builder but saving is refused → Saving a changed evidence query or alert needs defence:query:update. Deleting an evidence query needs defence:query:delete.
After saving an alert or an evidence query I landed on the Widget tab → The Query Library always opens on Widget. Click the Alert or Evidence tab to see what you saved.
Preview or Trigger is refused → Both need defence:query:execute.
Need more help? Contact support@zeron.one