Query
query Dashboard($dashboardId: ID!) {
dashboard(dashboardId: $dashboardId) {
id
name
globalRange {
__typename
... on DashboardPresetRange {
duration
}
}
globalFilters
widgets {
id
kind
chartType
config {
__typename
... on DashboardChartWidgetConfig {
__typename
}
}
layout {
x
width
}
position
}
createdAt {
unixTimestamp
iso8601
}
}
}Variables
{
"dashboardId": "id"
}Response
{
"data": {
"dashboard": {
"id": "id",
"name": "string",
"globalRange": {
"__typename": "DashboardPresetRange",
"duration": 1
},
"globalFilters": "string",
"widgets": [
{
"id": "id",
"kind": "TIMESERIES",
"chartType": "BAR",
"config": {
"__typename": "DashboardChartWidgetConfig"
},
"layout": {
"x": 1,
"width": 1
},
"position": 1
}
],
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
}
}
}Queries
dashboard
A single dashboard with its widgets. Null if it doesn’t exist. Requires dashboard:read.
QUERY
dashboard(dashboardId: ID!): DashboardArguments
dashboardId
ID!
required
Returns
id
ID!
name
String!
globalRange
globalFilters
String!
JSON-encoded ThreadMetricFilters input, as saved. Applied in addition to each chart's filters.
widgets
[DashboardWidget!]!
Ordered by position.
createdAt
createdBy
updatedAt
updatedBy
Query
query Dashboard($dashboardId: ID!) {
dashboard(dashboardId: $dashboardId) {
id
name
globalRange {
__typename
... on DashboardPresetRange {
duration
}
}
globalFilters
widgets {
id
kind
chartType
config {
__typename
... on DashboardChartWidgetConfig {
__typename
}
}
layout {
x
width
}
position
}
createdAt {
unixTimestamp
iso8601
}
}
}Variables
{
"dashboardId": "id"
}Response
{
"data": {
"dashboard": {
"id": "id",
"name": "string",
"globalRange": {
"__typename": "DashboardPresetRange",
"duration": 1
},
"globalFilters": "string",
"widgets": [
{
"id": "id",
"kind": "TIMESERIES",
"chartType": "BAR",
"config": {
"__typename": "DashboardChartWidgetConfig"
},
"layout": {
"x": 1,
"width": 1
},
"position": 1
}
],
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
}
}
}Was this page helpful?

