Skip to content

Instantly share code, notes, and snippets.

@shairyar
Created February 19, 2024 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shairyar/821678220b65426c881baf219dbeaa8e to your computer and use it in GitHub Desktop.
Save shairyar/821678220b65426c881baf219dbeaa8e to your computer and use it in GitHub Desktop.
GraphQL query to important dashboard
```gql
mutation importDashboardMutation($appId: String!, $json: String!) {
importDashboard(appId: $appId, json: $json) {
...Dashboard
__typename
}
}
fragment Dashboard on Dashboard {
id
title
description
visuals {
...Visual
__typename
}
__typename
}
fragment Visual on Visual {
... on VisualTimeseries {
__typename
id
title
description
lineLabel
display
format
formatInput
drawNullAsZero
metrics {
name
fields {
field
__typename
}
tags {
key
value
__typename
}
__typename
}
}
__typename
}
```
@shairyar
Copy link
Author

Query Variables

{
  "appId": "APPSIGNEL-APP-ID",
  "json": "JSON encoded string containing dashboard definition"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment