Related queries and mutations in Catalog and lineage. Each has its own section.
Queries
getCommonFields (query)
getCommonFields 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 fields that are common across a set of tables.
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String] | The tables to inspect. All tables must belong to the same warehouse. |
Returns
[String]
Example
query GetCommonFields {
getCommonFields
}getCommonFieldsV2 (query)
getCommonFieldsV2 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 fields that are common across a set of tables. Either provide 'mcons' directly, or provide 'warehouseUuid' + 'assetSelection' to resolve tables from asset selection criteria. These inputs are mutually exclusive.
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String] | The tables to inspect. All tables must belong to the same warehouse. |
warehouseUuid | UUID | UUID of the warehouse. Required when using assetSelection, mutually exclusive with mcons. |
assetSelection | AssetSelectionInput | Asset selection criteria to resolve tables. Required when using warehouseUuid, mutually exclusive with mcons. |
monitorUuid | UUID | UUID of the table or bulk monitor being edited. When set, joiner keys omitted from assetSelection are filled from the stored monitor, matching the save mutation. Only used with assetSelection. |
domainRestrictions | [UUID!] | Optional domain restrictions. Only used with warehouseUuid + assetSelection. |
Returns
TableFields
Example
query GetCommonFieldsV2 {
getCommonFieldsV2 {
tableFields {
fieldName
sqlName
fieldTypeDb
fieldType
}
}
}Types used only by getCommonFieldsV2
getCommonFieldsV2TableFieldDescriptor
TableFieldDescriptorObject type. Information about the table fields
| Field | Type | Description |
|---|---|---|
fieldName | String | Display name |
sqlName | String | Field identifier |
fieldTypeDb | String | Field type as fetched from the warehouse metadata |
fieldType | FieldType | Display field type |
TableFields
TableFieldsObject type.
| Field | Type | Description |
|---|---|---|
tableFields | [TableFieldDescriptor] |
Related types
AssetSelectionInput, FieldType, UUID
getConnectedMconLineage (query)
getConnectedMconLineage 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 mcon and and directly connected mcons
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String]! | |
direction | LineageGraphTraversalDirection | This can be either 'upstream' or 'downstream' or 'both' based on the direction in which to traverse the lineage graph. Default to 'upstream'. |
levels | Int | The number of hops to query in the lineage graph. Defaults to 1. Default: 1. |
Returns
ConnectedMcons
Example
query GetConnectedMconLineage($mcons: [String]!) {
getConnectedMconLineage(mcons: $mcons) {
connectedMcons {
mcon
importanceScore
}
}
}Types used only by getConnectedMconLineage
getConnectedMconLineageConnectedMcons
ConnectedMconsObject type.
| Field | Type | Description |
|---|---|---|
connectedMcons | [LineageMconNode] | List of mcons |
LineageMconNode
LineageMconNodeObject type.
| Field | Type | Description |
|---|---|---|
mcon | String! | MC resource identifier |
importanceScore | Float | Entity importance score |
Related types
LineageGraphTraversalDirection
getCustomSqlOutputDownload (query)
getCustomSqlOutputDownload 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.
Runs custom sql rule and returns a download link for all results.
Arguments
| Argument | Type | Description |
|---|---|---|
dwId | UUID! | Warehouse the custom SQL ran in |
customRuleUuid | UUID! | Custom rule to run |
eventUuid | UUID | Breach event whose captured runtime variable values should be substituted into the SQL before execution. Required for custom SQL rules that use runtime template variables (e.g. {effective_date}); omit for rules without runtime variables. |
Returns
CustomSQLOutputDownload
Example
query GetCustomSqlOutputDownload($dwId: UUID!, $customRuleUuid: UUID!) {
getCustomSqlOutputDownload(dwId: $dwId, customRuleUuid: $customRuleUuid) {
samplingDisabled
downloadUrl
}
}Types used only by getCustomSqlOutputDownload
getCustomSqlOutputDownloadCustomSQLOutputDownload
CustomSQLOutputDownloadObject type.
| Field | Type | Description |
|---|---|---|
samplingDisabled | Boolean | |
downloadUrl | String | Link to download the query response which expires in 5 minutes. |
Related types
getDataLakeCatalogMappings (query)
getDataLakeCatalogMappings 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 catalog mappings for a connection
Arguments
| Argument | Type | Description |
|---|---|---|
connectionUuid | UUID! | Connection UUID |
Returns
CatalogMappings
Example
query GetDataLakeCatalogMappings($connectionUuid: UUID!) {
getDataLakeCatalogMappings(connectionUuid: $connectionUuid) {
databaseMappings {
fromName
toName
}
}
}Types used only by getDataLakeCatalogMappings
getDataLakeCatalogMappingsCatalogMapping
CatalogMappingObject type.
| Field | Type | Description |
|---|---|---|
fromName | String | From catalog object name. |
toName | String | To catalog object name. |
CatalogMappings
CatalogMappingsObject type.
| Field | Type | Description |
|---|---|---|
databaseMappings | [CatalogMapping] |
Related types
getDigraph (query)
getDigraph 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
| Argument | Type | Description |
|---|---|---|
metadataVersion | String |
Returns
DirectedGraph
Example
query GetDigraph {
getDigraph {
vertices
edges
}
}Types used only by getDigraph
getDigraphDirectedGraph
DirectedGraphObject type.
| Field | Type | Description |
|---|---|---|
vertices | String | |
edges | String |
getDownstreamAgents (query)
getDownstreamAgents 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 the agents downstream of a list of tables, up to 25. Tables the user can't read lineage on are skipped.
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String!]! | List of MCONs where each MCON identifies a table whose downstream agents are being queried. |
Returns
DownstreamAgents
Example
query GetDownstreamAgents($mcons: [String!]!) {
getDownstreamAgents(mcons: $mcons) {
hasMore
}
}Types used only by getDownstreamAgents
getDownstreamAgentsDownstreamAgent
DownstreamAgentObject type.
| Field | Type | Description |
|---|---|---|
mcon | String! | MCON of the trace table or platform agent that, with the agent name, identifies the agent. |
agentName | String! | Name of the agent |
DownstreamAgents
DownstreamAgentsObject type.
| Field | Type | Description |
|---|---|---|
agents | [DownstreamAgent!]! | Agents downstream of the tables, ordered by agent name |
hasMore | Boolean! | Whether more downstream agents exist than were returned |
getDownstreamBi (query)
getDownstreamBi 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
Returns
[DownstreamBI]
Example
query GetDownstreamBi {
getDownstreamBi {
nodeId
fullTableId
}
}Types used only by getDownstreamBi
getDownstreamBiBiLineage
BiLineageObject type.
| Field | Type | Description |
|---|---|---|
workbookId | String | |
friendlyName | String | |
contentUrl | String | |
ownerId | String | |
projectId | String | |
projectName | String | |
created | DateTime | |
updated | DateTime | |
totalViews | Int | |
workbookCreators | [String] | |
viewId | String | |
category | String | Node type |
mcon | String | Monte Carlo object name |
name | String | Object name (table name, report name, etc) |
displayName | String | Friendly display name |
DownstreamBI
DownstreamBIObject type.
| Field | Type | Description |
|---|---|---|
nodeId | String | |
fullTableId | String | |
downstreamBi | [BiLineage] |
Related types
getDownstreamImpactRadiusSummary (query)
getDownstreamImpactRadiusSummary 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
| Argument | Type | Description |
|---|---|---|
mcons | [String]! | List of MCONs where each MCON identifies a table whose downstream reports are being queried. |
Returns
DownstreamImpactRadiusSummary
Example
query GetDownstreamImpactRadiusSummary($mcons: [String]!) {
getDownstreamImpactRadiusSummary(mcons: $mcons) {
totalUsersAffected
totalReportsAffected
}
}Types used only by getDownstreamImpactRadiusSummary
getDownstreamImpactRadiusSummaryDownstreamImpactRadiusSummary
DownstreamImpactRadiusSummaryObject type.
| Field | Type | Description |
|---|---|---|
totalUsersAffected | Int | Number of users affected |
totalReportsAffected | Int | Number of reports affected |
getDownstreamReportOwners (query)
getDownstreamReportOwners 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.
Gets owners of downstream reports for a list of tables.
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String]! | List of MCONs where each MCON identifies a table whose downstream report owners are being queried. |
limit | Int | Limit results returned |
offset | Int | Offset when paging |
Returns
DownstreamReportOwners
Example
query GetDownstreamReportOwners($mcons: [String]!) {
getDownstreamReportOwners(mcons: $mcons) {
ownerIds
hasNextPage
limit
offset
}
}Types used only by getDownstreamReportOwners
getDownstreamReportOwnersDownstreamReportOwners
DownstreamReportOwnersObject type.
| Field | Type | Description |
|---|---|---|
ownerIds | [String]! | Owner ID of a BI report |
hasNextPage | Boolean | Whether more pages of results exist. Used for pagination. |
limit | Int | Limit results returned |
offset | Int | Offset when paging |
getDownstreamReports (query)
getDownstreamReports 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.
Gets downstream reports for a list of tables.
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String]! | List of MCONs where each MCON identifies a table whose downstream reports are being queried. |
nameMatcher | String | A string to filter names by performing substring match. |
reportTypes | [String] | Report types to query. |
limit | Int | Limit results returned |
offset | Int | Offset when paging |
sortBy | String | Sort by property: [last_updated, owner_id, display_name, type, importance_score] |
sortDesc | Boolean | Sort in descending order |
Returns
DownstreamReports
Example
query GetDownstreamReports($mcons: [String]!) {
getDownstreamReports(mcons: $mcons) {
limit
offset
hasNextPage
}
}Types used only by getDownstreamReports
getDownstreamReportsDownstreamReport
DownstreamReportObject type.
| Field | Type | Description |
|---|---|---|
mcon | String! | MCON of the report. |
displayName | String! | Display name of the report |
reportType | String | Type of the report |
objectId | String | ID of the object |
ownerId | String | ID of the owner of this object |
isCustom | Boolean | Indicates whether this is a custom lineage node (created by a user) |
importanceScore | Float | Importance score of the report |
tableauMetadata | TableauMetadata | Metadata for Tableau objects |
DownstreamReports
DownstreamReportsObject type.
| Field | Type | Description |
|---|---|---|
downstreamReports | [DownstreamReport] | List of downstream reports |
limit | Int | Limit results returned |
offset | Int | Offset when paging |
hasNextPage | Boolean | Whether more pages of results exist. Used for pagination. |
TableauMetadata
TableauMetadataObject type.
| Field | Type | Description |
|---|---|---|
tableauLuid | String | Tableau LUID of a Tableau asset |
tableauAssetType | String | Tableau asset type |
tableauWarningId | String | Tableau Data Quality Warning ID if there is one |
getDownstreamReportTypes (query)
getDownstreamReportTypes 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.
Gets all report types of downstream reports for a table.
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String | MCON of the table whose downstream reports are being queried. |
mcons | [String] | List of MCONs of the tables whose downstream reports are being queried. |
Returns
DownstreamReportTypes
Example
query GetDownstreamReportTypes {
getDownstreamReportTypes {
downstreamReportTypes
}
}Types used only by getDownstreamReportTypes
getDownstreamReportTypesDownstreamReportTypes
DownstreamReportTypesObject type.
| Field | Type | Description |
|---|---|---|
downstreamReportTypes | [String] | List of distinct downstream report types. |
getFhReproductionQuery (query)
getFhReproductionQuery 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.
Generates a SQL query that will reproduce the anomalous data on a table
Arguments
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! | UUID of the monitor on which the anomaly occurred |
eventCreatedTime | DateTime! | When the anomaly occurred |
field | String! | The field on which the anomaly was found |
metric | String! | The metric which measured the anomaly |
dimension | String | FH segment if segmented monitor |
dryRun | Boolean | Generate sample query without running Default: true. |
Returns
InvestigationQuery
Example
query GetFhReproductionQuery($monitorUuid: UUID!, $eventCreatedTime: DateTime!, $field: String!, $metric: String!) {
getFhReproductionQuery(monitorUuid: $monitorUuid, eventCreatedTime: $eventCreatedTime, field: $field, metric: $metric) {
query
hasError
}
}Types used only by getFhReproductionQuery
getFhReproductionQueryInvestigationQuery
InvestigationQueryObject type.
| Field | Type | Description |
|---|---|---|
query | String | |
hasError | Boolean |
Related types
getLineageNodeProperties (query)
getLineageNodeProperties 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 properties (metadata) from nodes (DEPRECATED, use GetMetadata instead!)
Arguments
| Argument | Type | Description |
|---|---|---|
dwId | UUID | Warehouse the asset is contained within. Not required when using an mcon as node id |
nodeIds | [String] | Deprecated - use mcon. Ignored if mcon is present |
mcons | [String] | List of mcons to get properties for |
Returns
[NodeProperties]
Example
query GetLineageNodeProperties {
getLineageNodeProperties {
workbookId
friendlyName
contentUrl
ownerId
projectId
projectName
created
updated
totalViews
workbookCreators
viewId
category
mcon
name
displayName
tableId
dataSet
nodeId
resource
sampling
}
}Types used only by getLineageNodeProperties
getLineageNodePropertiesNodeProperties
NodePropertiesObject type.
| Field | Type | Description |
|---|---|---|
workbookId | String | |
friendlyName | String | |
contentUrl | String | |
ownerId | String | |
projectId | String | |
projectName | String | |
created | DateTime | |
updated | DateTime | |
totalViews | Int | |
workbookCreators | [String] | |
viewId | String | |
category | String | Node type |
mcon | String | Monte Carlo object name |
name | String | Object name (table name, report name, etc) |
displayName | String | Friendly display name |
tableId | String | |
dataSet | String | |
nodeId | String | Lineage node id, to be deprecated in favor of MCONs |
resource | String | Resource containing this object (warehouse, Tableau account, etc) |
sampling | [String] | A subset of the nodes that were collapsed into a node, only present on nodes of type collapsed-etl or collapsed-ext |
Related types
getLineageNodeTypes (query)
getLineageNodeTypes 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: General availability
Counts of upstream and downstream nodes grouped by type
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String! | MCON for which to fetch the counts |
Returns
LineageNodeTypeStats
Example
query GetLineageNodeTypes($mcon: String!) {
getLineageNodeTypes(mcon: $mcon) {
nodeTypeStats {
objectType
count
}
}
}Types used only by getLineageNodeTypes
getLineageNodeTypesLineageNodeTypeStat
LineageNodeTypeStatObject type.
| Field | Type | Description |
|---|---|---|
objectType | String | Type of element object |
count | Int | Number of elements of object_type |
LineageNodeTypeStats
LineageNodeTypeStatsObject type.
| Field | Type | Description |
|---|---|---|
nodeTypeStats | [LineageNodeTypeStat] | Stats for node types |
getMetadata (query)
getMetadata 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
| Argument | Type | Description |
|---|---|---|
mcons | [String] |
Returns
Example
query GetMetadata {
getMetadata {
mcon
resourceId
objectId
objectType
displayName
}
}Related types
getObject (query)
getObject 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
| Argument | Type | Description |
|---|---|---|
mcon | String |
Returns
Example
query GetObject {
getObject {
mcon
resourceId
objectId
objectType
displayName
}
}Related types
getQueryById (query)
getQueryById 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.
Gets the query by query ID
Arguments
| Argument | Type | Description |
|---|---|---|
queryId | String! | Query unique identifier |
timestamp | DateTime! | Query execution time (can be reduced to day on which it ran) |
queryFormat | String | 'raw' or 'base64' format |
Returns
Example
query GetQueryById($queryId: String!, $timestamp: DateTime!) {
getQueryById(queryId: $queryId, timestamp: $timestamp) {
queryId
groupId
userName
timestamp
query
sourceDisplayName
destinationDisplayName
errorCode
errorMsg
}
}Related types
getQueryByQueryHash (query)
getQueryByQueryHash 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.
Gets the query by query hash
Arguments
| Argument | Type | Description |
|---|---|---|
queryHash | String! | The query_hash for which to fetch query data |
day | Date! | The day on which the query ran |
queryFormat | String | 'raw' or 'base64' format |
Returns
Example
query GetQueryByQueryHash($queryHash: String!, $day: Date!) {
getQueryByQueryHash(queryHash: $queryHash, day: $day) {
queryId
groupId
userName
timestamp
query
sourceDisplayName
destinationDisplayName
errorCode
errorMsg
}
}Related types
getQueryData (query)
getQueryData 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.
Fetch query metadata for a single query for all daily occurrences
Arguments
| Argument | Type | Description |
|---|---|---|
queryId | String | The query_id for which to fetch the queries |
queryHash | String | The query_hash for which to fetch the queries |
day | Date! | The day for which to fetch the query metadata |
limit | Int | Limit results returned |
offset | Int | Offset when paging |
groupId | String | Fetch queries that share the same group_id |
Returns
Example
query GetQueryData($day: Date!) {
getQueryData(day: $day) {
offset
}
}Related types
getQueryDataByQueryHash (query)
getQueryDataByQueryHash 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.
Fetch query metadata for a single query for all daily occurrences
Arguments
| Argument | Type | Description |
|---|---|---|
queryHash | String! | The query_hash for which to fetch the queries |
day | Date! | The day for which to fetch the query metadata |
limit | Int | Limit results returned |
offset | Int | Offset when paging |
Returns
Example
query GetQueryDataByQueryHash($queryHash: String!, $day: Date!) {
getQueryDataByQueryHash(queryHash: $queryHash, day: $day) {
offset
}
}Related types
getQueryList (query)
getQueryList 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.
Gets the queries on a table, or the queries a job ran
Arguments
| Argument | Type | Description |
|---|---|---|
queryType | String | source (reads) or destination (writes). Required for a table. Optional for a job: omit it for every query the job ran. |
mcon | String! | Monte Carlo object name of a table or job |
startTime | DateTime! | Filter for queries newer than this |
endTime | DateTime! | Filter for queries older than this |
userName | String | [DEPRECATED] Filter by user name |
limit | Int | Limit results returned |
offset | Int | Offset when paging |
users | [String] | Filter by users |
subCategories | [String] | Filter by subcategory |
sortFields | [String] | List of fields to sort by |
Returns
[QueryListResponse]
Example
query GetQueryList($mcon: String!, $startTime: DateTime!, $endTime: DateTime!) {
getQueryList(mcon: $mcon, startTime: $startTime, endTime: $endTime) {
offset
total
timeline
}
}Types used only by getQueryList
getQueryListQueryListObject
QueryListObjectObject type.
| Field | Type | Description |
|---|---|---|
queryId | String | |
userName | String | |
timestamp | DateTime | |
queryLength | Int | |
queryHash | String | |
groupHash | String | |
subCategory | String | |
querySnippet | String | |
runtime | Int | |
startTime | DateTime | When the query started running, in UTC. Falls back to timestamp when the warehouse didn't report a separate start. For BigQuery, timestamp is the job's creation time. |
endTime | DateTime | When the query finished, in UTC. Null when the warehouse didn't report it. |
clusterNumber | Int | Snowflake warehouse cluster the query ran on. Null for other warehouses and for queries collected before this was kept. |
warehouseName | String | Snowflake warehouse the query ran on. Null for other warehouses and for queries collected without it. |
databricksWarehouseId | String | Databricks SQL warehouse the query ran on. Null for other warehouses, for queries on other Databricks compute, and for queries collected without it. |
rowsProduced | BigInt | |
rowsUpdated | BigInt | |
rowsInserted | BigInt | |
rowsDeleted | BigInt | |
bytesDeleted | BigInt | |
rowsProducedFloat | Float | |
rowsUpdatedFloat | Float | |
rowsInsertedFloat | Float | |
rowsDeletedFloat | Float | |
bytesDeletedFloat | Float | |
status | String | |
jobRunId | String | Source id of the job run that issued the query. Set only when listing a job's queries. |
etlJobRun | EtlJobRunV3 | The job run that issued the query. Null until Monte Carlo ingests the run, and outside a job's queries. |
etlTask | EtlTaskV3 | The job task that issued the query. Null until Monte Carlo ingests its run, and outside a job's queries. |
QueryListResponse
QueryListResponseObject type.
| Field | Type | Description |
|---|---|---|
queries | [QueryListObject] | |
queriesByType | [QueryMapObject] | |
offset | Int | |
total | Int | |
timeline | [String] |
QueryMapObject
QueryMapObjectObject type.
| Field | Type | Description |
|---|---|---|
queries | [QueryListObject] | |
queryLength | Int |
Related types
BigInt, DateTime, EtlJobRunV3, EtlTaskV3
getReducedDownstreamLineage (query)
getReducedDownstreamLineage 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: General availability
Reduces a list of nodes to the most downstream ones
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String]! | A list of nodes to check |
Returns
[String]
Example
query GetReducedDownstreamLineage($mcons: [String]!) {
getReducedDownstreamLineage(mcons: $mcons)
}getRelatedUsers (query)
getRelatedUsers 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 users related to object
Arguments
Returns
[RelatedUserCount]
Example
query GetRelatedUsers($mcon: String!) {
getRelatedUsers(mcon: $mcon) {
user
count
}
}Types used only by getRelatedUsers
getRelatedUsersRelatedUserCount
RelatedUserCountObject type.
| Field | Type | Description |
|---|---|---|
user | String | |
count | Int |
Related types
getResource (query)
getResource 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.
Retrieve a specific resource
Arguments
| Argument | Type | Description |
|---|---|---|
uuid | UUID | The resource id |
name | String | The resource name |
Returns
Example
query GetResource {
getResource {
uuid
name
type
isUserProvided
isDefault
createdTime
lastUpdateTime
id
}
}Related types
getResources (query)
getResources 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.
Retrieve all resources in an account
Returns
[Resource]
Example
query GetResources {
getResources {
uuid
name
type
isUserProvided
isDefault
createdTime
lastUpdateTime
id
}
}Related types
getSegmentedWhereConditionLabelCount (query)
getSegmentedWhereConditionLabelCount 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 approximate segmented where_condition count for a metric monitor. Higher counts may not be exact for performance reasons.
Arguments
Returns
Int!
Example
query GetSegmentedWhereConditionLabelCount($monitorUuid: UUID!) {
getSegmentedWhereConditionLabelCount(monitorUuid: $monitorUuid)
}Related types
getSegmentedWhereConditionLabels (query)
getSegmentedWhereConditionLabels 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 segmented where_conditions for a metric monitor
Arguments
| Argument | Type | Description |
|---|---|---|
monitorUuid | UUID! | The monitor for which to locate labels |
warehouseUuid | UUID | DEPRECATED |
first | Int | Number of results to return (default/max: 10,000) |
after | String | Fetch batch of 'first' results after this value |
includeTerms | [String!] | Filter to segments where all terms are present in segment fields |
metric | String | Filter to this metric |
Returns
[WhereConditionSegments]
Example
query GetSegmentedWhereConditionLabels($monitorUuid: UUID!) {
getSegmentedWhereConditionLabels(monitorUuid: $monitorUuid) {
timeSeriesUuids
whereConditions
lastWhereCondition
}
}Types used only by getSegmentedWhereConditionLabels
getSegmentedWhereConditionLabelsWhereConditionSegments
WhereConditionSegmentsObject type.
| Field | Type | Description |
|---|---|---|
timeSeriesUuids | [UUID!]! | |
whereConditions | [String] | |
lastWhereCondition | String | Value to use as 'after' for pagination |
Related types
getTable (query)
getTable 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 information about a table
Arguments
| Argument | Type | Description |
|---|---|---|
dwId | UUID | Warehouse the table is contained in. Required when using a fullTableId |
fullTableId | String | Deprecated - use mcon. Ignored if mcon is present |
mcon | String | Mcon for table to get details for |
Returns
Example
query GetTable {
getTable {
id
tableId
fullTableId
discoveredTime
friendlyName
location
projectName
dataset
originalTableId
originalProjectName
originalDataset
description
tableType
isEncrypted
createdTime
lastModified
viewQuery
viewIsMaterialized
labels
path
}
}Related types
getTableauWorkbookCount (query)
getTableauWorkbookCount 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.
Gets the number of workbooks in a Tableau instance.
Arguments
| Argument | Type | Description |
|---|---|---|
biContainerId | UUID! | Monte Carlo UUID of the Tableau BI container |
Returns
TableauWorkbookCount
Example
query GetTableauWorkbookCount($biContainerId: UUID!) {
getTableauWorkbookCount(biContainerId: $biContainerId) {
workbookCount
}
}Types used only by getTableauWorkbookCount
getTableauWorkbookCountTableauWorkbookCount
TableauWorkbookCountObject type.
| Field | Type | Description |
|---|---|---|
workbookCount | Int | Total number of workbooks in the Tableau instance. |
Related types
getTableFieldsImportance (query)
getTableFieldsImportance 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
| Argument | Type | Description |
|---|---|---|
mcon | String! | |
importanceScoreCutoff | Float | |
limit | Int | |
fieldTypes | [FieldType!] | Filter to these field types |
Returns
TableFieldsImportance
Example
query GetTableFieldsImportance($mcon: String!) {
getTableFieldsImportance(mcon: $mcon) {
tableFields {
fieldName
isImportant
importanceScore
fieldTypeDb
fieldType
mode
}
}
}Types used only by getTableFieldsImportance
getTableFieldsImportanceTableFieldImportance
TableFieldImportanceObject type. Information about the table fields with an important flag
| Field | Type | Description |
|---|---|---|
fieldName | String | Display name |
isImportant | Boolean | |
importanceScore | Float | |
fieldTypeDb | String | Field type as fetched from the warehouse metadata |
fieldType | FieldType | Display field type |
mode | String | Field mode from the warehouse metadata (e.g. NULLABLE, REQUIRED, REPEATED) |
TableFieldsImportance
TableFieldsImportanceObject type.
| Field | Type | Description |
|---|---|---|
tableFields | [TableFieldImportance] |
Related types
getTableLineage (query)
getTableLineage 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.
Gets the lineage for an asset up to specified number of hops in the lineage graph.
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String | MCON of the asset whose lineage is being queried. Must provide either mcon or mcons. |
mcons | [String] | MCONs of the assets whose lineage is being queried to a maximum of 12. Must provide either mcons or mcon. |
direction | String! | This can be either 'upstream' or 'downstream' based on the direction in which to traverse the lineage graph |
hops | Int | The number of hops to query in the lineage graph. Defaults to 1. |
startTime | DateTime | Filter for lineage data newer than this. Defaults to no date filtering. |
endTime | DateTime | Filter for lineage data older than this. Defaults to no date filtering. |
limit | Int | Maximum number of connected nodes to return. Defaults to 500 Default: 500. |
filters | [LineageFilter] | List of lineage filters Default: []. |
agentName | String | Agent name to scope the lineage query to within the supplied trace-table MCON. When provided, the query returns lineage rooted at the named agent. Requires exactly one mcon. |
toolCalls | [String!] | Tool call names that should appear in the agent's lineage tree. A single name additionally focuses the response on that tool (its upstream data tables / downstream agent). Two or more names render those tools alongside the agent. Requires agentName. |
Returns
LineageGraph
Example
query GetTableLineage($direction: String!) {
getTableLineage(direction: $direction) {
baseNode {
mcon
displayName
hasDownstreamNodes
hasUpstreamNodes
objectType
isCustom
jobTs
expireAt
isMonitored
isExcluded
lastActivity
elementId
agentName
toolCall
biAssetType
}
}
}Types used only by getTableLineage
getTableLineageFlattenedLineageGraphEdges
FlattenedLineageGraphEdgesObject type.
| Field | Type | Description |
|---|---|---|
mcon | String! | Monte Carlo full identifier for an entity |
directlyConnectedMcons | [String] | MCONs of nodes directly connected to the entity |
directlyConnectedNodes | [LineageGraphEdgeNode] | Nodes directly connected to the entity, including edge properties |
agentName | String | Agent name of the source node, when the source is an agent or tool-call node. Lets callers disambiguate adjacency entries that share an mcon. |
toolCall | String | Tool-call name of the source node, set only on tool-call sources. |
LineageGraph
LineageGraphObject type.
| Field | Type | Description |
|---|---|---|
baseNode | LineageGraphNode | This is the base node for which lineage is fetched. If there are multiples nodes requested this is the first one. |
baseNodes | [LineageGraphNode] | These are the base nodes for which lineages are fetched |
connectedNodes | [LineageGraphNode] | List of nodes connected to the base node. This could be nodes that are multiple hops away from the base node in the graph in cases where nodes at multiple hops were queried. |
flattenedEdges | [FlattenedLineageGraphEdges] | Each entry is an mcon and a list of mcons it is directly connected to |
LineageGraphEdgeNode
LineageGraphEdgeNodeObject type.
| Field | Type | Description |
|---|---|---|
mcon | String! | Target MCON of this edge |
jobs | [LineageEdgeJob]! | Jobs associated to this edge |
hidden | Int | The number of hidden nodes for virtual/collapsed edges |
agentName | String | Agent name of the target node, when the target is an agent or tool-call node. Lets callers disambiguate targets that share an mcon. |
toolCall | String | Tool-call name of the target node, set only on tool-call targets. |
Related types
DateTime, LineageEdgeJob, LineageFilter, LineageGraphNode
getTableLineageJobs (query)
getTableLineageJobs 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 jobs attached to lineage nodes or edges
Arguments
| Argument | Type | Description |
|---|---|---|
nodeMcons | [String] | Table MCONs to query job information for. Supply this OR edges. |
edges | [LineageEdgeInput] | Edges to query job information for. Supply this OR node_mcons. |
Returns
LineageGraphNodesEdgesJobs
Example
query GetTableLineageJobs {
getTableLineageJobs {
nodes {
mcon
}
}
}Types used only by getTableLineageJobs
getTableLineageJobsLineageEdgeInput
LineageEdgeInputInput object type.
| Field | Type | Description |
|---|---|---|
sourceMcon | String! | Source table MCON of an edge |
destinationMcon | String! | Destination table MCON of an edge |
LineageGraphEdgeJobs
LineageGraphEdgeJobsObject type.
| Field | Type | Description |
|---|---|---|
sourceMcon | String! | |
destinationMcon | String! | |
jobs | [LineageEdgeJob]! | Jobs associated to this edge |
LineageGraphNodeJobs
LineageGraphNodeJobsObject type.
| Field | Type | Description |
|---|---|---|
mcon | String! | Table MCON |
jobs | [LineageNodeJob] | List of jobs |
modelExecutionStatus | LineageGraphNodeModelExecutionStatus | The most recent model execution status information which affected this table (e.g. DBT model) |
LineageGraphNodesEdgesJobs
LineageGraphNodesEdgesJobsObject type.
| Field | Type | Description |
|---|---|---|
nodes | [LineageGraphNodeJobs] | Lineage nodes with jobs |
edges | [LineageGraphEdgeJobs] | Lineage edges with jobs |
Related types
LineageEdgeJob, LineageGraphNodeModelExecutionStatus, LineageNodeJob
getTableLineageV2 (query)
getTableLineageV2 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: General availability
Load the whole lineage in one go, upstream.
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String]! | MCONs of the tables whose lineage is being queried to a maximum of 12. Must provide either mcons or mcon. |
direction | LineageGraphTraversalDirection! | This can be either 'upstream', 'downstream' based on the direction in which to traverse the lineage graph |
filters | [LineageFilter] | List of lineage filters |
agentName | String | Agent name to scope the lineage query to within the supplied trace-table MCON. When provided, the query returns lineage rooted at the named agent. Requires exactly one mcon. |
toolCalls | [String!] | Tool call names that should appear in the agent's lineage tree. A single name additionally focuses the response on that tool (its upstream data tables / downstream agent). Two or more names render those tools alongside the agent. Requires agentName. |
Returns
NodeEdgeGraph
Example
query GetTableLineageV2($mcons: [String]!, $direction: LineageGraphTraversalDirection!) {
getTableLineageV2(mcons: $mcons, direction: $direction) {
nodes {
mcon
displayName
hasDownstreamNodes
hasUpstreamNodes
objectType
isCustom
jobTs
expireAt
isMonitored
isExcluded
lastActivity
elementId
agentName
toolCall
biAssetType
}
}
}Types used only by getTableLineageV2
getTableLineageV2GraphEdge
GraphEdgeObject type.
| Field | Type | Description |
|---|---|---|
source | String | |
destination | String | |
sourceId | Int | |
destinationId | Int | |
hidden | Boolean |
NodeEdgeGraph
NodeEdgeGraphObject type.
| Field | Type | Description |
|---|---|---|
nodes | [LineageGraphNode] | Lineage nodes |
edges | [GraphEdge] | Lineage edges |
Related types
LineageFilter, LineageGraphNode, LineageGraphTraversalDirection
getTableLineageV3 (query)
getTableLineageV3 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: General availability
Load the whole lineage in one go, upstream.
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String]! | MCONs of the tables whose lineage is being queried to a maximum of 12. Must provide either mcons or mcon. |
direction | LineageGraphTraversalDirection! | This can be either 'upstream', 'downstream' based on the direction in which to traverse the lineage graph |
filters | [LineageFilter] | List of lineage filters |
Returns
NodeEdgeStrings
Example
query GetTableLineageV3($mcons: [String]!, $direction: LineageGraphTraversalDirection!) {
getTableLineageV3(mcons: $mcons, direction: $direction) {
nodesStr
edgesStr
}
}Types used only by getTableLineageV3
getTableLineageV3NodeEdgeStrings
NodeEdgeStringsObject type.
| Field | Type | Description |
|---|---|---|
nodesStr | String | String containing JSON of nodes |
edgesStr | String | String containing JSON of edges |
Related types
LineageFilter, LineageGraphTraversalDirection
getTableLineageV4 (query)
getTableLineageV4 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: General availability
Load the whole lineage in one go and return it as CSV data.
Arguments
| Argument | Type | Description |
|---|---|---|
mcons | [String]! | MCONs of the tables whose lineage is being queried to a maximum of 12. |
direction | LineageGraphTraversalDirection! | This can be either 'upstream', 'downstream' based on the direction in which to traverse the lineage graph |
filters | [LineageFilter] | List of lineage filters |
Returns
NodeEdgeCSVStrings
Example
query GetTableLineageV4($mcons: [String]!, $direction: LineageGraphTraversalDirection!) {
getTableLineageV4(mcons: $mcons, direction: $direction) {
nodesStr
edgesStr
}
}Types used only by getTableLineageV4
getTableLineageV4NodeEdgeCSVStrings
NodeEdgeCSVStringsObject type.
| Field | Type | Description |
|---|---|---|
nodesStr | String | String containing CSV of nodes |
edgesStr | String | String containing CSV of edges |
Related types
LineageFilter, LineageGraphTraversalDirection
getTables (query)
getTables 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 tables in account
Arguments
| Argument | Type | Description |
|---|---|---|
dwId | UUID | Filter by a specific warehouse |
search | String | Filter by partial asset names (e.g. dataset) |
status | [String] | Filter by table statuses |
domainId | UUID | Filter by domain UUID |
mcons | [String] | Filter by a list of mcons |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int | |
tableId | String | |
fullTableId | String | |
warehouse | ID | |
discoveredTime | DateTime | |
friendlyName | String | |
location | String | |
projectName | String | |
dataset | String | |
originalTableId | String | |
originalProjectName | String | |
originalDataset | String | |
description | String | |
tableType | String | |
isEncrypted | Boolean | |
createdTime | DateTime | |
lastModified | DateTime | |
viewQuery | String | |
viewIsMaterialized | Boolean | |
path | String | |
priority | Int | |
tracked | Boolean | |
dynamicTable | Boolean | |
isDeleted | Boolean | |
deletedAt | DateTime | |
lastObserved | DateTime | |
isExcluded | Boolean | |
isMonitored | Boolean | |
dataProvider | String | |
ingestType | String | |
ingestInvocationId | String | |
mcon | String | |
importanceScore | Float | |
isImportant | Boolean | |
lastActivity | DateTime | |
lastRead | DateTime | |
lastWrite | DateTime | |
lastVolumeChange | DateTime | |
importanceScoreIsCustom | Boolean | |
isImportantIsCustom | Boolean | |
lastObserved_Gt | DateTime | |
freshnessAnomaly | Boolean | |
sizeAnomaly | Boolean | |
metricAnomaly | Boolean | |
freshnessSizeAnomaly | Boolean | |
orderBy | String | Ordering |
Returns
Example
query GetTables {
getTables {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
DateTime, UUID, WarehouseTableConnection
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
