Data explorer (GraphQL)

Related queries and mutations in Catalog and lineage. Each has its own section.

Queries

getComparableDashboards (query)

getComparableDashboards is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
uuidUUID!

Returns

[ComparableDashboardType]

Example

query GetComparableDashboards($uuid: UUID!) {
  getComparableDashboards(uuid: $uuid) {
    dashboardUuid
    sharedTimeAxisFieldName
    sharedFieldNames
  }
}

Types used only by getComparableDashboards

ComparableDashboardType

Object type. Another dashboard that is compatible for comparison

FieldTypeDescription
dashboardUuidUUID!
sharedTimeAxisFieldNameStringShared time axis field name
sharedFieldNames[String]Fields shared between dashboards

Related types

UUID

getDataExplorerComparisonDashboards (query)

getDataExplorerComparisonDashboards is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
uuids[UUID]
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

DataExplorerComparisonDashboardTypeConnection

Example

query GetDataExplorerComparisonDashboards {
  getDataExplorerComparisonDashboards {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

DataExplorerComparisonDashboardTypeConnection, UUID

getDataExplorerDashboardForTable (query)

getDataExplorerDashboardForTable is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get (or create a default) data explorer dashboard for a table

Arguments

ArgumentTypeDescription
mconString!MCON of table

Returns

DataExplorerDashboardType

Example

query GetDataExplorerDashboardForTable($mcon: String!) {
  getDataExplorerDashboardForTable(mcon: $mcon) {
    id
    createdTime
    updatedTime
    uuid
    name
    mcon
    timeAxisFieldName
    baseWhereClause
    criteria
  }
}

Related types

DataExplorerDashboardType

getDataExplorerDashboards (query)

getDataExplorerDashboards is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get data explorer dashboards

Arguments

ArgumentTypeDescription
uuids[UUID]UUIDs to filter by
mconStringMCON to filter by
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

DataExplorerDashboardTypeConnection

Example

query GetDataExplorerDashboards {
  getDataExplorerDashboards {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

DataExplorerDashboardTypeConnection, UUID

getDataExplorerTableMetadata (query)

getDataExplorerTableMetadata is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
mconString!
connectionIdUUIDOptional connection ID to use for queries

Returns

TableMetadataType

Example

query GetDataExplorerTableMetadata($mcon: String!) {
  getDataExplorerTableMetadata(mcon: $mcon) {
    mcon
  }
}

Types used only by getDataExplorerTableMetadata

SupportedWidget

Object type. Describes a field that can be visualized as a widget

FieldTypeDescription
fieldNameString!Field name
widgetTypeWidgetType!Widget type
isTimeAxisBoolean!Whether or not this field is configured as a time axis
partitionTemplateStringPartition template for generating partition-aware where clauses
TableMetadataType

Object type. Describes the possible widgets that are supported for a given table

FieldTypeDescription
mconString!
supportedWidgets[SupportedWidget]

Related types

UUID, WidgetType

getDataExplorerTableSummaryStats (query)

getDataExplorerTableSummaryStats is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
datasetDatasetInput!

Returns

TableSummaryStatsType

Example

query GetDataExplorerTableSummaryStats($dataset: DatasetInput!) {
  getDataExplorerTableSummaryStats(dataset: $dataset) {
    rowCountLimit
    rowCountLimitExceeded
  }
}

Types used only by getDataExplorerTableSummaryStats

RowCountResponseType

Object type. Row count info

FieldTypeDescription
queryStringSQL query used to fetch row count
countFloat!Row count
approximateBooleanIs this an approximate count?
TableSummaryStatsType

Object type. Summary stats for a given table/criteria

FieldTypeDescription
rowCountRowCountResponseTypeRow count response
rowCountLimitFloat!Account-level row count limit
rowCountLimitExceededBoolean!Whether account-level row count limit has been exceeded

Related types

DatasetInput

getDataProfileExport (query)

getDataProfileExport is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Export a table's full data profile as CSV: top-level stats for every field (capped at 2000), ignoring any field search filter. Large tables may be processed asynchronously — retry the query until the CSV is returned.

Arguments

ArgumentTypeDescription
datasetDatasetInput!

Returns

DataProfileExportType

Example

query GetDataProfileExport($dataset: DatasetInput!) {
  getDataProfileExport(dataset: $dataset) {
    filename
    csv
  }
}

Types used only by getDataProfileExport

DataProfileExportType

Object type. CSV export of a table's data profile (top-level stats for every field)

FieldTypeDescription
filenameString!Suggested download filename
csvString!CSV contents of the data profile export

Related types

DatasetInput

getDataProfilerMonitorRecommendations (query)

getDataProfilerMonitorRecommendations is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

get monitor recommendations for data explorer widget.

Arguments

ArgumentTypeDescription
requestMonitorRecommendationsInput!

Returns

MonitorRecommendationsResponse

Example

query GetDataProfilerMonitorRecommendations($request: MonitorRecommendationsInput!) {
  getDataProfilerMonitorRecommendations(request: $request) {
    monitorRecommendations {
      resourceId
      description
      displayDescription
      notes
      type
      labels
      reason
    }
  }
}

Types used only by getDataProfilerMonitorRecommendations

MonitorRecommendationModel

Enum type.

ValueDescription
VALIDATION
METRIC
SEGMENTATION
REGEX
MonitorRecommendationType

Enum type.

ValueDescription
HEURISTIC
AI_VALIDATION
MonitorRecommendationsInput

Input object type.

FieldTypeDescription
datasetDatasetInput!
fieldNames[String]Recommend monitors for specific field names
recommendationTypeMonitorRecommendationTypeGenerate this type of monitor recommendations
models[MonitorRecommendationModel]Recommend monitors for specific models. Default for HEURISTIC is VALIDATION, METRIC and for AI_VALIDATION is VALIDATION, SEGMENTATION, REGEX
MonitorRecommendationsResponse

Object type.

FieldTypeDescription
monitorRecommendations[RecommendationConfigInterface!]!
RecommendationConfigInterface

Interface type.

FieldTypeDescription
scheduleConfigScheduleConfig!
resourceIdUUID!
descriptionString!
displayDescriptionString!
notesString!
typeUserDefinedMonitors!
dataSourceDataSourceInterface!
labels[String!]!
reasonString
RecommendationConfigMetricMonitor

Object type.

FieldTypeDescription
scheduleConfigScheduleConfig!
resourceIdUUID!
descriptionString!
displayDescriptionString!
notesString!
typeUserDefinedMonitors!
dataSourceDataSourceInterface!
labels[String!]!
reasonString
timeAxisNameString
timeAxisTypeString
whereConditionString
aggTimeIntervalString
lookbackDaysInt
comparisons[CustomRuleComparison!]!
collectionLagHoursInt
segmentedExpressions[String!]
segmentationTypeString
RecommendationConfigValidationMonitor

Object type.

FieldTypeDescription
scheduleConfigScheduleConfig!
resourceIdUUID!
descriptionString!
displayDescriptionString!
notesString!
typeUserDefinedMonitors!
dataSourceDataSourceInterface!
labels[String!]!
reasonString
sqlBlocksCustomRuleSqlBlocks!
ScheduleConfig

Object type.

FieldTypeDescription
scheduleTypeString!
dynamicScheduleMcons[String!]
intervalMinutesInt
intervalCrontab[String!]
intervalCrontabLagMinutesInt
intervalCrontabDayOrBoolean
startTimeDateTime
timezoneString!
minIntervalMinutesInt
lastTriggerFiredAtDateTime
nextExecutionTimeOverrideDateTime
isAutomaticBoolean!

Related types

CustomRuleComparison, CustomRuleSqlBlocks, DataSourceInterface, DatasetInput, DateTime, UUID, UserDefinedMonitors

getDataProfilerWidgetData (query)

getDataProfilerWidgetData is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

This is to fetch widget data in Data Explorer.

Arguments

ArgumentTypeDescription
requestDataProfilerWidgetDataInput!

Returns

WidgetDataResponseType

Example

query GetDataProfilerWidgetData($request: DataProfilerWidgetDataInput!) {
  getDataProfilerWidgetData(request: $request) {
    dataFrame
    sqlQuery
    totalRowCount
    limit
    offset
  }
}

Types used only by getDataProfilerWidgetData

DataProfilerWidgetDataInput

Input object type.

FieldTypeDescription
datasetDatasetInput!
widgetTypeWidgetType!
fieldNameStringfilter by field name. Supported by DISCRETE and FIELD_PROFILE widgets
fieldNamePatternStringfilter by field name pattern. Supported by FIELD_PROFILE widgets
limitIntDefault: 50.
offsetIntDefault: 0.
widgetConfigWidgetConfigWidget configuration
WidgetDataResponseType

Object type.

FieldTypeDescription
dataFrameJSONString
sqlQueryStringRaw SQL query that produced this data
responseMetadataQueryResponseMetadataTypeProvides metadata that describes how response is structured.
totalRowCountInt
limitInt
offsetInt

Related types

DatasetInput, JSONString, QueryResponseMetadataType, WidgetConfig, WidgetType

getDuplicateKeyStats (query)

getDuplicateKeyStats is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Count rows and distinct values of a key made of 1 to 4 fields. Uses the dataset timestamp filter and custom where clause when set.

Arguments

ArgumentTypeDescription
datasetDatasetInput!
keyFields[String!]!Field names that form the key, 1 to 4

Returns

DuplicateKeyStatsResponse

Example

query GetDuplicateKeyStats($dataset: DatasetInput!, $keyFields: [String!]!) {
  getDuplicateKeyStats(dataset: $dataset, keyFields: $keyFields) {
    keyFields
    totalRows
    distinctKeys
    duplicateKeys
    sqlQuery
  }
}

Types used only by getDuplicateKeyStats

DuplicateKeyStatsResponse

Object type.

FieldTypeDescription
keyFields[String!]!
totalRowsBigInt!Rows in the window
distinctKeysBigInt!Distinct key values in the window
duplicateKeysBigInt!Rows whose key value repeats an earlier row (total rows minus distinct keys)
sqlQueryString!

Related types

BigInt, DatasetInput

getFieldMetricData (query)

getFieldMetricData is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get field metric data for charting

Arguments

ArgumentTypeDescription
datasetDatasetInput!
fieldNameStringField name to fetch properties
metricAggregateMetricType!Get data for Metric
aggTimeIntervalTimeBucketSizeBucket size, DAY by default. HOUR needs a timestamp time axis and one time range with start and end, up to 14 days long. Hourly windows include the start and exclude the end. Default: "DAY".

Returns

FieldMetricDataResponse

Example

query GetFieldMetricData($dataset: DatasetInput!, $metric: AggregateMetricType!) {
  getFieldMetricData(dataset: $dataset, metric: $metric) {
    sqlQuery
    fieldName
  }
}

Types used only by getFieldMetricData

FieldMetricDataResponse

Object type.

FieldTypeDescription
data[MetricMeasurement!]!
sqlQueryString!
fieldNameString
metricInfoMetricInfo!
MetricMeasurement

Object type.

FieldTypeDescription
timestampDateTime!
valueFloat!
timeValueDateTimeSet for MIN and MAX of a date or timestamp field. value then holds the same instant as epoch seconds.

Related types

AggregateMetricType, DatasetInput, DateTime, MetricInfo, TimeBucketSize

getFieldMetricsInfo (query)

getFieldMetricsInfo is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Gets Metrics Supported by Data Profiler.

Arguments

ArgumentTypeDescription
fieldTypeStringfield_type to fetch type specific properties. types supported - ['numeric', 'string', 'time', 'date', 'boolean', 'time_of_day', 'unknown']

Returns

[MetricInfo]!

Example

query GetFieldMetricsInfo {
  getFieldMetricsInfo {
    displayName
    metric
    metricDataType
  }
}

Related types

MetricInfo

getFieldOverviewProperties (query)

getFieldOverviewProperties is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

get field overview properties

Arguments

ArgumentTypeDescription
datasetDatasetInput!
fieldNameString!field_name to fetch properties

Returns

FieldOverviewResponse

Example

query GetFieldOverviewProperties($dataset: DatasetInput!, $fieldName: String!) {
  getFieldOverviewProperties(dataset: $dataset, fieldName: $fieldName) {
    sqlQuery
  }
}

Types used only by getFieldOverviewProperties

FieldOverviewProperty

Object type.

FieldTypeDescription
metricNameString!
displayNameString!
valueString!
metricDataTypeMetricDataType!
FieldOverviewResponse

Object type.

FieldTypeDescription
sqlQueryString!
properties[FieldOverviewProperty!]!

Related types

DatasetInput, MetricDataType

retrieveTableData (query)

retrieveTableData is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
requestRetrieveTableDataRequestInput!

Returns

DataResponseType

Example

query RetrieveTableData($request: RetrieveTableDataRequestInput!) {
  retrieveTableData(request: $request) {
    dataFrame
    sqlQuery
    presignedUrl
    isCustomerHostedData
  }
}

Types used only by retrieveTableData

RetrieveTableDataRequestInput

Input object type.

FieldTypeDescription
datasetDatasetInput!
orderByString
limitIntDefault: 500.

Related types

DataResponseType, DatasetInput

retrieveWidgetData (query)

retrieveWidgetData is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
requestRetrieveWidgetDataRequestInput!

Returns

DataResponseType

Example

query RetrieveWidgetData($request: RetrieveWidgetDataRequestInput!) {
  retrieveWidgetData(request: $request) {
    dataFrame
    sqlQuery
    presignedUrl
    isCustomerHostedData
  }
}

Types used only by retrieveWidgetData

RetrieveWidgetDataRequestInput

Input object type.

FieldTypeDescription
datasetDatasetInput!
widgetTypeWidgetType!
fieldNameString
limitIntDefault: 50.
offsetIntDefault: 0.
configJSONStringDEPRECATED - use widget_config
widgetConfigWidgetConfigWidget configuration

Related types

DataResponseType, DatasetInput, JSONString, WidgetConfig, WidgetType

Mutations

createOrUpdateDataExplorerComparisonDashboard (mutation)

createOrUpdateDataExplorerComparisonDashboard is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
dataExplorerComparisonDashboardDataExplorerComparisonDashboardInputType!

Returns

CreateOrUpdateDataExplorerComparisonDashboardMutation

Example

mutation CreateOrUpdateDataExplorerComparisonDashboard($dataExplorerComparisonDashboard: DataExplorerComparisonDashboardInputType!) {
  createOrUpdateDataExplorerComparisonDashboard(dataExplorerComparisonDashboard: $dataExplorerComparisonDashboard) {
    dataExplorerComparisonDashboard {
      id
      createdTime
      updatedTime
      uuid
      name
      criteria
    }
  }
}

Types used only by createOrUpdateDataExplorerComparisonDashboard

CreateOrUpdateDataExplorerComparisonDashboardMutation

Object type.

FieldTypeDescription
dataExplorerComparisonDashboardDataExplorerComparisonDashboardType
DataExplorerComparisonDashboardInputType

Input object type.

FieldTypeDescription
uuidUUIDUUID of comparison dashboard, required if updating existing object
warehouseUuidUUID!UUID of warehouse
nameStringDescriptive name
dashboardLeftUUID!First dashboard to be compared
dashboardRightUUID!Second dashboard to be compared
widgets[DataExplorerWidgetInputType]
criteriaJSONStringSaved criteria

Related types

DataExplorerComparisonDashboardType, DataExplorerWidgetInputType, JSONString, UUID

createOrUpdateDataExplorerDashboard (mutation)

createOrUpdateDataExplorerDashboard is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
dataExplorerDashboardDataExplorerDashboardInputType!

Returns

CreateOrUpdateDataExplorerDashboardMutation

Example

mutation CreateOrUpdateDataExplorerDashboard($dataExplorerDashboard: DataExplorerDashboardInputType!) {
  createOrUpdateDataExplorerDashboard(dataExplorerDashboard: $dataExplorerDashboard) {
    dataExplorerDashboard {
      id
      createdTime
      updatedTime
      uuid
      name
      mcon
      timeAxisFieldName
      baseWhereClause
      criteria
    }
  }
}

Types used only by createOrUpdateDataExplorerDashboard

CreateOrUpdateDataExplorerDashboardMutation

Object type.

FieldTypeDescription
dataExplorerDashboardDataExplorerDashboardType
DataExplorerDashboardInputType

Input object type.

FieldTypeDescription
uuidUUIDUUID of dashboard, required if updating existing object
warehouseUuidUUID!UUID of warehouse
mconString!MCON of underlying warehouse table
nameString!Descriptive name of dashboard
timeAxisFieldNameStringTime axis field name
baseWhereClauseStringBase where clause
widgets[DataExplorerWidgetInputType]Configured widgets
criteriaJSONStringSaved criteria

Related types

DataExplorerDashboardType, DataExplorerWidgetInputType, JSONString, UUID

deleteDataExplorerComparisonDashboard (mutation)

deleteDataExplorerComparisonDashboard is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
uuidUUID!UUID of comparison dashboard to be deleted

Returns

DeleteDataExplorerComparisonDashboardMutation

Example

mutation DeleteDataExplorerComparisonDashboard($uuid: UUID!) {
  deleteDataExplorerComparisonDashboard(uuid: $uuid) {
    success
  }
}

Types used only by deleteDataExplorerComparisonDashboard

DeleteDataExplorerComparisonDashboardMutation

Object type.

FieldTypeDescription
successBoolean!

Related types

UUID

deleteDataExplorerDashboard (mutation)

deleteDataExplorerDashboard is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
uuidUUID!UUID of dashboard to be deleted

Returns

DeleteDataExplorerDashboardMutation

Example

mutation DeleteDataExplorerDashboard($uuid: UUID!) {
  deleteDataExplorerDashboard(uuid: $uuid) {
    success
  }
}

Types used only by deleteDataExplorerDashboard

DeleteDataExplorerDashboardMutation

Object type.

FieldTypeDescription
successBoolean

Related types

UUID

Source: The GraphQL API reference

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