The dashboardsPage() GraphQL query is used to
retrieve a dashboard. This field is not yet available. It's
described here as a preview and is used for getting a new pagination
pattern.
For more information on dashboards, see the
Dashboards & Widgets documentation page. You may also want
to look at the Dashboards page in the
Training section.
For the input in the syntax here, the search
is optional. It searches only the names of dashboards. If you
don't include it, all dashboards are returned. For the
pageSize you'd specify the number of records
you want per page. Imagining a list of dashboards that span
several pages, use pageNumber to specify
which page to return.
Show:
Raw
graphql
query{
dashboardsPage(search:"hosts"pageSize:10pageNumber:1){
page {
id, name,
displayName, searchDomain {
id, name
}}
pageInfo {
number
totalNumberOfRows
total
}}}
Notice that the example above requests information on dashboards
with the name hosts. That resulted in one
dashboard with that text in the name. The results show the unique
identifiers, the name of the dashboard, and the repository, as
requested. Click on Dashboard datatype in
the table below for more parameters.
Returned Datatypes
The returned datatype DashboardPage has a
couple of parameters and several sub-paramters. Below is a list of
them along with links to the sub-parameters:
Table: DashboardPage
Parameter
Type
Required
Default
Stability
Description
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.