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

For more information on creating dashboards, see the Creating Dashboards and Widgets documentation page. You may also want to look at the Dashboards & Widgets page for related information.

Syntax

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

graphql
createDashboardFromTemplateV2(
      input: CreateDashboardFromTemplateV2Input!
   ): Dashboard!

Given Datatypes

For the input CreateDashboardFromTemplateV2Input, there are several parameters that may be given. Below is a list of them along with their datatypes and a description of each:

Table: CreateDashboardFromTemplateV2Input

ParameterTypeRequired[a]DefaultDescription
searchDomainNamestringyes The name of the search domain for the template.
overrideNamestring  The override name of the dashboard to create.
templatestringyes The template for creating the dashboard.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.


Returned Datatypes

The returned datatype Dashboard has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: Dashboard

ParameterTypeRequired[a]DefaultDescription
templateYamlstringyes A 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.
displayNamestringyes The display name of the dashboard.
labels[string]yes Any labels associated with the dashboard.
widgets[Widget]yes Widgets for the dashboard (see Widget Table).
readOnlyTokens[DashboardLink]yes List of tokens used to access the dashboard without logging in. Useful for wall mounted dashboards or public dashboards. See DashboardLink Table.
filters[DashboardFilter]yes The filters used with the dashboard (see DashboardFilter Table).
parameters[DashboardParameter]yes List of dashboard parameters (see DashboardParameter Table).
updateFrequencyDashboardUpdateFrequencyTypeyes The frequency in which dashboard is updated. See the explanations under the DashboardParameter Table.
isStarredbooleanyes Whether the dashboard is marked with a star.
defaultFilterDashboardFilter  The default filter used with the dashboard (see DashboardFilter Table).
defaultSharedTimeStartstringyes The default shared starting time.
defaultSharedTimeEndstringyes The default shared ending time.
timeJumpSizeInMsinteger  The skip time in milliseconds for the dashboard.
defaultSharedTimeEnabledbooleanyes Whether the shared time by default is enabled.
searchDomainSearchDomainyes The search domain for the dashboard (see SearchDomain Table).
packagePackageInstallationyes The package, if there is one, in which the dashboard is included (see PackageInstallation Table).
idstringyes The unique identifier for the dashboard.
namestringyes The name of the dashboard.
descriptionstring  A description of the dashboard.
assetTypeAssetTypeyes The related asset type (see AssetType Table). This enumerated datatype has been deprecated and will be removed in version 1.136 of LogScale.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.