API Stability Long-Term

The addDashboardFilter() can be used to add a new filter to a dashboard's list of filters.

For more information on dashboards, see the Dashboards & Widgets documentation page. You may also want to look at the Query Filters reference page for related information.

Syntax

Below is the syntax for the addDashboardFilter() mutation field:

graphql
addDashboardFilter(
     name: string!, 
     prefixFilter: string!, 
     id: string!, 
     searchDomainName: string!
   ): Dashboard!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  addDashboardFilter(
      name: "filtration",
      id: "ILLF8JldGGP6tVspPuRtifX7ZGiHveGV", 
      searchDomainName: "humio",
      prefixFilter: "server1_")
  {id, name, widgets { id, title } }
}
Example Responses
Show:
json
{
  "data": {
    "addDashboardFilter": {
      "id": "ILLF8JldGGP6tVspPuRtifX7ZGiHveGV",
      "name": "Hosts",
      "widgets": [
        {
          "id": "f293e161-5409-4270-b6b6-4a9f98579861",
          "title": "Cluster Time Skew (Millis)"
        },
        {
          "id": "42dc587f-c1f9-4ed3-bcf8-fc3ceb44f956",
          "title": "Open File Descriptors"
        },
        ...
      ]
    }
  }
}

Returned Datatypes

As indicated by the syntax above, this mutation will return data using the datatype, dashboard. Below is a list of the parameters of that datatype:

Table: Dashboard

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: Mar 28, 2025
allowedActions[AssetAction]yes PreviewThe allowed asset actions. See AssetAction Table). This is feature is a preview and may be changed.
defaultFilterDashboardFilter  Long-TermThe default filter used with the dashboard (see DashboardFilter Table).
defaultSharedTimeEnabledbooleanyes Long-TermWhether the shared time by default is enabled.
defaultSharedTimeEndstringyes Long-TermThe default shared ending time.
defaultSharedTimeStartstringyes Long-TermThe default shared starting time.
descriptionstring  Long-TermA description of the dashboard.
displayNamestringyes Long-TermThe display name of the dashboard.
filters[DashboardFilter]yes Long-TermThe filters used with the dashboard. See DashboardFilter.
idstringyes Long-TermThe unique identifier for the dashboard.
isStarredbooleanyes Long-TermWhether the dashboard is marked with a star.
labels[string]yes Long-TermAny labels associated with the dashboard.
namestringyes Long-TermThe name of the dashboard.
packagePackageInstallationyes Long-TermThe package, if there is one, in which the dashboard is included (see PackageInstallation Table).
packageIdVersionedPackageSpecifieryes Long-TermThe unique identifiers of the package. VersionedPackageSpecifier is a scalar.
parameters[DashboardParameter]yes Long-TermList of dashboard parameters (see DashboardParameter Table).
readOnlyTokens[DashboardLink]yes Long-TermList of tokens used to access the dashboard without logging in. Useful for wall mounted dashboards or public dashboards. See DashboardLink.
resourcestringyes Short-TermThe resource identifier for this dashboard.
searchDomainsearchDomainyes Long-TermThe search domain for the dashboard. See searchDomain.
sections[Section]yes Long-TermThe sections for the dashboard. See Section.
yamlTemplatestringyes Long-TermA YAML formatted string that describes the dashboard. It does not contain links or permissions, and is safe to share and use for making copies of a dashboard. This replaced templateYaml starting in LogScale version 1.165.
timeJumpSizeInMsinteger  Long-TermThe skip time in milliseconds for the dashboard.
updateFrequencyDashboardUpdateFrequencyTypeyes Long-TermThe frequency in which dashboard is updated. See the explanations under the DashboardParameter.
widgets[Widget]yes Long-TermWidgets for the dashboard (see Widget Table).