Related queries and mutations in Dashboards and reports. Each has its own section.
Queries
getCustomDashboard (query)
getCustomDashboard is a query in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get a specific custom dashboard
Arguments
| Argument | Type | Description |
|---|---|---|
dashboardId | UUID! |
Returns
Example
query GetCustomDashboard($dashboardId: UUID!) {
getCustomDashboard(dashboardId: $dashboardId) {
id
createdTime
updatedTime
dashboardId
domainId
title
}
}Related types
getCustomDashboardAsJson (query)
getCustomDashboardAsJson is a query in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get a specific custom dashboard as JSON
Arguments
| Argument | Type | Description |
|---|---|---|
dashboardId | UUID! |
Returns
CustomDashboardJsonResponse
Example
query GetCustomDashboardAsJson($dashboardId: UUID!) {
getCustomDashboardAsJson(dashboardId: $dashboardId) {
dashboardJson
}
}Types used only by getCustomDashboardAsJson
getCustomDashboardAsJsonCustomDashboardJsonResponse
CustomDashboardJsonResponseObject type.
| Field | Type | Description |
|---|---|---|
dashboardJson | String! |
Related types
getCustomDashboardWidgetAsDefinition (query)
getCustomDashboardWidgetAsDefinition is a query in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get a custom dashboard widget as a human-readable definition
Arguments
Returns
Example
query GetCustomDashboardWidgetAsDefinition($dashboardId: UUID!, $widgetId: UUID!) {
getCustomDashboardWidgetAsDefinition(dashboardId: $dashboardId, widgetId: $widgetId) {
widgetId
json
}
}Related types
listCustomDashboards (query)
listCustomDashboards is a query in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
List all custom dashboards
Arguments
| Argument | Type | Description |
|---|---|---|
domainId | UUID | Filter dashboards by domain UUID |
search | String | Filter dashboards by title (case-insensitive partial match) |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
CustomDashboardListConnection!
Example
query ListCustomDashboards {
listCustomDashboards {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Types used only by listCustomDashboards
listCustomDashboardsCustomDashboardListConnection
CustomDashboardListConnectionObject type.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [CustomDashboardListEdge]! | Contains the nodes in this connection. |
CustomDashboardListEdge
CustomDashboardListEdgeObject type. A Relay edge containing a CustomDashboardList and its cursor.
| Field | Type | Description |
|---|---|---|
node | CustomDashboardList | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
Related types
CustomDashboardList, PageInfo, UUID
loadCustomDashboardWidgetData (query)
loadCustomDashboardWidgetData is a query in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Load the content data of a custom dashboard widget
Arguments
Returns
[CustomDashboardWidgetContentData!]
Example
query LoadCustomDashboardWidgetData($dashboardId: UUID!, $widgetId: UUID!, $startTime: DateTime!, $endTime: DateTime!) {
loadCustomDashboardWidgetData(dashboardId: $dashboardId, widgetId: $widgetId, startTime: $startTime, endTime: $endTime) {
dataSourceId
data
}
}Types used only by loadCustomDashboardWidgetData
loadCustomDashboardWidgetDataCustomDashboardWidgetContentData
CustomDashboardWidgetContentDataObject type.
| Field | Type | Description |
|---|---|---|
dataSourceId | String! | |
data | String! | Content data of the widget |
Related types
lookupCustomDashboardTimeSeriesIdByMcon (query)
lookupCustomDashboardTimeSeriesIdByMcon is a query in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Lookup the time series ID for a given MCON and metric
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String! | |
metricName | String! |
Returns
CustomDashboardTimeSeriesLookup
Example
query LookupCustomDashboardTimeSeriesIdByMcon($mcon: String!, $metricName: String!) {
lookupCustomDashboardTimeSeriesIdByMcon(mcon: $mcon, metricName: $metricName) {
timeSeriesId
}
}Related types
CustomDashboardTimeSeriesLookup
lookupCustomDashboardTimeSeriesIdByMonitor (query)
lookupCustomDashboardTimeSeriesIdByMonitor is a query in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Lookup the time series ID for a given monitor and metric
Arguments
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! | |
metricName | String! | |
field | String | |
whereCondition | String |
Returns
CustomDashboardTimeSeriesLookup
Example
query LookupCustomDashboardTimeSeriesIdByMonitor($monitorUuid: UUID!, $metricName: String!) {
lookupCustomDashboardTimeSeriesIdByMonitor(monitorUuid: $monitorUuid, metricName: $metricName) {
timeSeriesId
}
}Related types
CustomDashboardTimeSeriesLookup, UUID
Mutations
addOrUpdateCustomDashboardWidget (mutation)
addOrUpdateCustomDashboardWidget is a mutation in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Add or update custom dashboard widget
Arguments
| Argument | Type | Description |
|---|---|---|
dashboardId | UUID! | |
dataSources | [WidgetDataSourceUnionInput!] | Data source definitions |
height | Int! | Height of the widget inside the dashboard |
options | WidgetOptionsUnionInput | Widget specific options |
order | Int! | Order of the widget inside the dashboard |
title | String! | Title of the widget |
type | CustomDashboardWidgetType! | Type of the widget |
widgetId | UUID | |
width | Int! | Width of the widget inside the dashboard |
Returns
AddOrUpdateCustomDashboardWidget
Example
mutation AddOrUpdateCustomDashboardWidget($dashboardId: UUID!, $height: Int!, $order: Int!, $title: String!, $type: CustomDashboardWidgetType!, $width: Int!) {
addOrUpdateCustomDashboardWidget(dashboardId: $dashboardId, height: $height, order: $order, title: $title, type: $type, width: $width) {
widget {
id
widgetId
type
title
order
width
height
}
}
}Types used only by addOrUpdateCustomDashboardWidget
addOrUpdateCustomDashboardWidgetAddOrUpdateCustomDashboardWidget
AddOrUpdateCustomDashboardWidgetObject type.
| Field | Type | Description |
|---|---|---|
widget | CustomDashboardWidget! |
Related types
CustomDashboardWidget, CustomDashboardWidgetType, UUID, WidgetDataSourceUnionInput, WidgetOptionsUnionInput
addOrUpdateCustomDashboardWidgetFromDefinition (mutation)
addOrUpdateCustomDashboardWidgetFromDefinition is a mutation in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Add or update a custom dashboard widget from a human-readable definition
Arguments
| Argument | Type | Description |
|---|---|---|
dashboardId | UUID | Required when persisting (dry_run=false) |
dryRun | Boolean | If true, validate without persisting Default: false. |
widget | WidgetDefinitionInput | Widget definition (mutually exclusive with widgetJson) |
widgetId | UUID | |
widgetJson | String | Widget definition as a JSON string in the same camelCase format returned by the json field. Mutually exclusive with widget. |
Returns
AddOrUpdateWidgetFromDefinition
Example
mutation AddOrUpdateCustomDashboardWidgetFromDefinition {
addOrUpdateCustomDashboardWidgetFromDefinition {
result {
widgetId
json
}
}
}Types used only by addOrUpdateCustomDashboardWidgetFromDefinition
addOrUpdateCustomDashboardWidgetFromDefinitionAddOrUpdateWidgetFromDefinition
AddOrUpdateWidgetFromDefinitionObject type.
| Field | Type | Description |
|---|---|---|
result | WidgetDefinitionResult! |
WidgetDefinitionInput
WidgetDefinitionInputInput object type.
| Field | Type | Description |
|---|---|---|
type | CustomDashboardWidgetType! | |
title | String! | |
order | Int! | |
width | Int! | |
height | Int! | |
dataSources | [WidgetDataSourceUnionInput!] | |
options | WidgetOptionsUnionInput |
Related types
CustomDashboardWidgetType, UUID, WidgetDataSourceUnionInput, WidgetDefinitionResult, WidgetOptionsUnionInput
createOrUpdateCustomDashboard (mutation)
createOrUpdateCustomDashboard is a mutation in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Create or update custom dashboard
Arguments
Returns
CreateOrUpdateDashboard
Example
mutation CreateOrUpdateCustomDashboard {
createOrUpdateCustomDashboard {
dashboard {
id
createdTime
updatedTime
dashboardId
domainId
title
}
}
}Types used only by createOrUpdateCustomDashboard
createOrUpdateCustomDashboardCreateOrUpdateDashboard
CreateOrUpdateDashboardObject type.
| Field | Type | Description |
|---|---|---|
dashboard | CustomDashboard! | Dashboard configuration |
Related types
createOrUpdateCustomDashboardFromJson (mutation)
createOrUpdateCustomDashboardFromJson is a mutation in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Create or update a custom dashboard from a JSON definition
Arguments
Returns
CreateOrUpdateDashboardFromJson
Example
mutation CreateOrUpdateCustomDashboardFromJson($dashboardJson: String!) {
createOrUpdateCustomDashboardFromJson(dashboardJson: $dashboardJson) {
dashboard {
id
createdTime
updatedTime
dashboardId
domainId
title
}
}
}Types used only by createOrUpdateCustomDashboardFromJson
createOrUpdateCustomDashboardFromJsonCreateOrUpdateDashboardFromJson
CreateOrUpdateDashboardFromJsonObject type.
| Field | Type | Description |
|---|---|---|
dashboard | CustomDashboard! | Dashboard configuration |
Related types
deleteCustomDashboard (mutation)
deleteCustomDashboard is a mutation in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Delete custom dashboard
Arguments
| Argument | Type | Description |
|---|---|---|
dashboardId | UUID! |
Returns
DeleteDashboard
Example
mutation DeleteCustomDashboard($dashboardId: UUID!) {
deleteCustomDashboard(dashboardId: $dashboardId) {
deleted
}
}Types used only by deleteCustomDashboard
deleteCustomDashboardDeleteDashboard
DeleteDashboardObject type.
| Field | Type | Description |
|---|---|---|
deleted | Boolean |
Related types
deleteCustomDashboardWidget (mutation)
deleteCustomDashboardWidget is a mutation in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Delete custom dashboard widget
Arguments
Returns
DeleteCustomDashboardWidget
Example
mutation DeleteCustomDashboardWidget($dashboardId: UUID!, $widgetId: UUID!) {
deleteCustomDashboardWidget(dashboardId: $dashboardId, widgetId: $widgetId) {
deleted
}
}Types used only by deleteCustomDashboardWidget
deleteCustomDashboardWidgetDeleteCustomDashboardWidget
DeleteCustomDashboardWidgetObject type.
| Field | Type | Description |
|---|---|---|
deleted | Boolean |
Related types
updateCustomDashboardWidgetOrdering (mutation)
updateCustomDashboardWidgetOrdering is a mutation in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Update the ordering of widgets on a custom dashboard
Arguments
| Argument | Type | Description |
|---|---|---|
dashboardId | UUID! | |
widgetOrders | [WidgetOrderInput!]! | List of widget ID and order pairs to update |
Returns
UpdateCustomDashboardWidgetOrdering
Example
mutation UpdateCustomDashboardWidgetOrdering($dashboardId: UUID!, $widgetOrders: [WidgetOrderInput!]!) {
updateCustomDashboardWidgetOrdering(dashboardId: $dashboardId, widgetOrders: $widgetOrders) {
dashboard {
id
createdTime
updatedTime
dashboardId
domainId
title
}
}
}Types used only by updateCustomDashboardWidgetOrdering
updateCustomDashboardWidgetOrderingUpdateCustomDashboardWidgetOrdering
UpdateCustomDashboardWidgetOrderingObject type.
| Field | Type | Description |
|---|---|---|
dashboard | CustomDashboard! | The updated dashboard |
WidgetOrderInput
WidgetOrderInputInput object type.
| Field | Type | Description |
|---|---|---|
widgetId | UUID! | UUID of the widget |
order | Int! | New order value for the widget |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
