API Stability Long-Term

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.

Syntax

Below is the syntax for the dashboardsPage() query field:

graphql
dashboardsPage(
     search: string
     pageNumber: integer!
     pageSize: integer!
   ): DashboardPage!

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:
graphql
query{
  dashboardsPage(
    search: "hosts"
    pageSize: 10
    pageNumber: 1
  ) {
    page {
      id, name, 
      displayName, searchDomain {
        id, name
      }
    }
    pageInfo {
      number
      totalNumberOfRows
      total
    }
  }
}
Example Responses
Show:
json
{
  "data": {
    "dashboardsPage": {
      "page": [
        {
          "id": "VE3V5Y9pvz3fh7dlXiEuYQqwkV7dnonk",
          "name": "Hosts",
          "displayName": "Hosts",
          "searchDomain": {
            "id": "E2r1cF9ffkIR37KowkxUQxQS",
            "name": "humio"
          }
        }
      ],
      "pageInfo": {
        "number": 1,
        "totalNumberOfRows": 1,
        "total": 1
      }
    }
  }
}

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

ParameterTypeRequiredDefaultStabilityDescription
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.
Table last updated: Sep 24, 2024
page[Dashboard]yes Long-TermThe dashboards to be used for the dashboard page. See Dashboard.
pageInfoPageTypeyes Long-TermInformation about the dashboards page. See PageType.