Logz.io Dashboards
Logz.io Dashboards are unified dashboards: a single dashboard can query both metrics and logs datasources, so one view covers data that would otherwise need two, and alerts can be defined on the same queries. They're built on the Perses framework.
A dashboard lives in a folder, and is addressed by the folder's id together with the dashboard's uid.
Identifiers
A dashboard has two identifiers and they are not interchangeable:
uidis the stable identifier. It survives updates and moves, and every endpoint here addresses a dashboard by it. This is the one to store.ididentifies the version row holding the current revision, and a new value is issued every time the dashboard is updated.
A dashboard that has never been updated has the same value for id, uid and name, so the difference only shows up after the first edit.
Versions
Each update writes a new version of the dashboard and increments version. Earlier versions are retained but aren't readable through this API.
Private dashboards
A dashboard that was made private in the Logz.io app is returned only to an API token with admin permissions. For any other token, it is left out of lists and searches, and a request for it returns 404. Privacy can't be set through this API.
Deleting a dashboard
Deletes are soft: the dashboard stops appearing in this API, and the delete response carries the id of the deleted record.
Status codes
Every successful call returns 200, including create and delete.
Get all dashboards
Returns the latest version of every dashboard in the account, across all folders.
Get dashboards in a folder
Returns the latest version of every dashboard in one folder.
Create a new dashboard
Creates a dashboard in the given folder.
Get dashboard by ID
Returns the latest version of one dashboard.
Update an existing dashboard
Replaces the contents of a dashboard, writing a new version.
Delete a dashboard
Deletes a dashboard. The deletion is soft: the dashboard stops appearing in every endpoint of this API, and its stored versions are retained internally.
Search dashboards
Returns the dashboards whose name matches a search term, one page at a time.
Move a dashboard to a different folder
Moves a dashboard, and all of its stored versions, from one folder to another.
Get dashboard creators
Returns the account users who created at least one dashboard, for use as the `filter.createdBy` values of **Search dashboard folders**.