The createDashboardFromPackageTemplate() GraphQL mutation field may be used to create a dashboard in LogScale from a package dashboard template.

For more information on creating dashboards, see the Create Dashboards and Widgets documentation page. You may also want to look at the Packages page.

Packages

Syntax

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

graphql
createDashboardFromPackageTemplate(
      viewName: string!
      packageId: VersionedPackageSpecifier!
      dashboardTemplateName: string!
      overrideName: string
   ): CreateDashboardFromPackageTemplateMutation!

Given and Returned Datatypes

The given datatype VersionedPackageSpecifier is a scalar value. The returned datatype CreateDashboardFromPackageTemplateMutation has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: CreateDashboardFromPackageTemplateMutation

ParameterTypeRequiredDefaultDescription
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
actionDashboardyes The dashboard to create from the package template. See Dashboard.