Custom dashboards (GraphQL)

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

ArgumentTypeDescription
dashboardIdUUID!

Returns

CustomDashboard

Example

query GetCustomDashboard($dashboardId: UUID!) {
  getCustomDashboard(dashboardId: $dashboardId) {
    id
    createdTime
    updatedTime
    dashboardId
    domainId
    title
  }
}

Related types

CustomDashboard, UUID

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

ArgumentTypeDescription
dashboardIdUUID!

Returns

CustomDashboardJsonResponse

Example

query GetCustomDashboardAsJson($dashboardId: UUID!) {
  getCustomDashboardAsJson(dashboardId: $dashboardId) {
    dashboardJson
  }
}

Types used only by getCustomDashboardAsJson

CustomDashboardJsonResponse

Object type.

FieldTypeDescription
dashboardJsonString!

Related types

UUID

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

ArgumentTypeDescription
dashboardIdUUID!
widgetIdUUID!

Returns

WidgetDefinitionResult

Example

query GetCustomDashboardWidgetAsDefinition($dashboardId: UUID!, $widgetId: UUID!) {
  getCustomDashboardWidgetAsDefinition(dashboardId: $dashboardId, widgetId: $widgetId) {
    widgetId
    json
  }
}

Related types

UUID, WidgetDefinitionResult

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

ArgumentTypeDescription
domainIdUUIDFilter dashboards by domain UUID
searchStringFilter dashboards by title (case-insensitive partial match)
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

CustomDashboardListConnection!

Example

query ListCustomDashboards {
  listCustomDashboards {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Types used only by listCustomDashboards

CustomDashboardListConnection

Object type.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[CustomDashboardListEdge]!Contains the nodes in this connection.
CustomDashboardListEdge

Object type. A Relay edge containing a CustomDashboardList and its cursor.

FieldTypeDescription
nodeCustomDashboardListThe item at the end of the edge
cursorString!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

ArgumentTypeDescription
dashboardIdUUID!
widgetIdUUID!
startTimeDateTime!
endTimeDateTime!

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

CustomDashboardWidgetContentData

Object type.

FieldTypeDescription
dataSourceIdString!
dataString!Content data of the widget

Related types

DateTime, UUID

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

ArgumentTypeDescription
mconString!
metricNameString!

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

ArgumentTypeDescription
monitorUuidUUID!
metricNameString!
fieldString
whereConditionString

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

ArgumentTypeDescription
dashboardIdUUID!
dataSources[WidgetDataSourceUnionInput!]Data source definitions
heightInt!Height of the widget inside the dashboard
optionsWidgetOptionsUnionInputWidget specific options
orderInt!Order of the widget inside the dashboard
titleString!Title of the widget
typeCustomDashboardWidgetType!Type of the widget
widgetIdUUID
widthInt!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

AddOrUpdateCustomDashboardWidget

Object type.

FieldTypeDescription
widgetCustomDashboardWidget!

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

ArgumentTypeDescription
dashboardIdUUIDRequired when persisting (dry_run=false)
dryRunBooleanIf true, validate without persisting Default: false.
widgetWidgetDefinitionInputWidget definition (mutually exclusive with widgetJson)
widgetIdUUID
widgetJsonStringWidget 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

AddOrUpdateWidgetFromDefinition

Object type.

FieldTypeDescription
resultWidgetDefinitionResult!
WidgetDefinitionInput

Input object type.

FieldTypeDescription
typeCustomDashboardWidgetType!
titleString!
orderInt!
widthInt!
heightInt!
dataSources[WidgetDataSourceUnionInput!]
optionsWidgetOptionsUnionInput

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

ArgumentTypeDescription
dashboardIdUUID
domainIdUUIDDomain to assign the dashboard to. Omit to leave unchanged on update.
titleStringTitle of the dashboard

Returns

CreateOrUpdateDashboard

Example

mutation CreateOrUpdateCustomDashboard {
  createOrUpdateCustomDashboard {
    dashboard {
      id
      createdTime
      updatedTime
      dashboardId
      domainId
      title
    }
  }
}

Types used only by createOrUpdateCustomDashboard

CreateOrUpdateDashboard

Object type.

FieldTypeDescription
dashboardCustomDashboard!Dashboard configuration

Related types

CustomDashboard, UUID

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

ArgumentTypeDescription
dashboardIdUUIDId of the dashboard to update existing. If not specified, a new dashboard is created.
dashboardJsonString!Dashboard definition as JSON string
domainIdUUIDDomain to assign the dashboard to. Can also be set in the JSON.

Returns

CreateOrUpdateDashboardFromJson

Example

mutation CreateOrUpdateCustomDashboardFromJson($dashboardJson: String!) {
  createOrUpdateCustomDashboardFromJson(dashboardJson: $dashboardJson) {
    dashboard {
      id
      createdTime
      updatedTime
      dashboardId
      domainId
      title
    }
  }
}

Types used only by createOrUpdateCustomDashboardFromJson

CreateOrUpdateDashboardFromJson

Object type.

FieldTypeDescription
dashboardCustomDashboard!Dashboard configuration

Related types

CustomDashboard, UUID

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

ArgumentTypeDescription
dashboardIdUUID!

Returns

DeleteDashboard

Example

mutation DeleteCustomDashboard($dashboardId: UUID!) {
  deleteCustomDashboard(dashboardId: $dashboardId) {
    deleted
  }
}

Types used only by deleteCustomDashboard

DeleteDashboard

Object type.

FieldTypeDescription
deletedBoolean

Related types

UUID

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

ArgumentTypeDescription
dashboardIdUUID!
widgetIdUUID!

Returns

DeleteCustomDashboardWidget

Example

mutation DeleteCustomDashboardWidget($dashboardId: UUID!, $widgetId: UUID!) {
  deleteCustomDashboardWidget(dashboardId: $dashboardId, widgetId: $widgetId) {
    deleted
  }
}

Types used only by deleteCustomDashboardWidget

DeleteCustomDashboardWidget

Object type.

FieldTypeDescription
deletedBoolean

Related types

UUID

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

ArgumentTypeDescription
dashboardIdUUID!
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

UpdateCustomDashboardWidgetOrdering

Object type.

FieldTypeDescription
dashboardCustomDashboard!The updated dashboard
WidgetOrderInput

Input object type.

FieldTypeDescription
widgetIdUUID!UUID of the widget
orderInt!New order value for the widget

Related types

CustomDashboard, UUID

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.