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
| Argument | Type | Description |
|---|---|---|
uuid | UUID! |
Returns
[ComparableDashboardType]
Example
query GetComparableDashboards($uuid: UUID!) {
getComparableDashboards(uuid: $uuid) {
dashboardUuid
sharedTimeAxisFieldName
sharedFieldNames
}
}Types used only by getComparableDashboards
getComparableDashboardsComparableDashboardType
ComparableDashboardTypeObject type. Another dashboard that is compatible for comparison
| Field | Type | Description |
|---|---|---|
dashboardUuid | UUID! | |
sharedTimeAxisFieldName | String | Shared time axis field name |
sharedFieldNames | [String] | Fields shared between dashboards |
Related types
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
| Argument | Type | Description |
|---|---|---|
uuids | [UUID] | |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
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
| Argument | Type | Description |
|---|---|---|
mcon | String! | MCON of table |
Returns
Example
query GetDataExplorerDashboardForTable($mcon: String!) {
getDataExplorerDashboardForTable(mcon: $mcon) {
id
createdTime
updatedTime
uuid
name
mcon
timeAxisFieldName
baseWhereClause
criteria
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
uuids | [UUID] | UUIDs to filter by |
mcon | String | MCON to filter by |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
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
| Argument | Type | Description |
|---|---|---|
mcon | String! | |
connectionId | UUID | Optional connection ID to use for queries |
Returns
TableMetadataType
Example
query GetDataExplorerTableMetadata($mcon: String!) {
getDataExplorerTableMetadata(mcon: $mcon) {
mcon
}
}Types used only by getDataExplorerTableMetadata
getDataExplorerTableMetadataSupportedWidget
SupportedWidgetObject type. Describes a field that can be visualized as a widget
| Field | Type | Description |
|---|---|---|
fieldName | String! | Field name |
widgetType | WidgetType! | Widget type |
isTimeAxis | Boolean! | Whether or not this field is configured as a time axis |
partitionTemplate | String | Partition template for generating partition-aware where clauses |
TableMetadataType
TableMetadataTypeObject type. Describes the possible widgets that are supported for a given table
| Field | Type | Description |
|---|---|---|
mcon | String! | |
supportedWidgets | [SupportedWidget] |
Related types
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
| Argument | Type | Description |
|---|---|---|
dataset | DatasetInput! |
Returns
TableSummaryStatsType
Example
query GetDataExplorerTableSummaryStats($dataset: DatasetInput!) {
getDataExplorerTableSummaryStats(dataset: $dataset) {
rowCountLimit
rowCountLimitExceeded
}
}Types used only by getDataExplorerTableSummaryStats
getDataExplorerTableSummaryStatsRowCountResponseType
RowCountResponseTypeObject type. Row count info
| Field | Type | Description |
|---|---|---|
query | String | SQL query used to fetch row count |
count | Float! | Row count |
approximate | Boolean | Is this an approximate count? |
TableSummaryStatsType
TableSummaryStatsTypeObject type. Summary stats for a given table/criteria
| Field | Type | Description |
|---|---|---|
rowCount | RowCountResponseType | Row count response |
rowCountLimit | Float! | Account-level row count limit |
rowCountLimitExceeded | Boolean! | Whether account-level row count limit has been exceeded |
Related types
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
| Argument | Type | Description |
|---|---|---|
dataset | DatasetInput! |
Returns
DataProfileExportType
Example
query GetDataProfileExport($dataset: DatasetInput!) {
getDataProfileExport(dataset: $dataset) {
filename
csv
}
}Types used only by getDataProfileExport
getDataProfileExportDataProfileExportType
DataProfileExportTypeObject type. CSV export of a table's data profile (top-level stats for every field)
| Field | Type | Description |
|---|---|---|
filename | String! | Suggested download filename |
csv | String! | CSV contents of the data profile export |
Related types
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
| Argument | Type | Description |
|---|---|---|
request | MonitorRecommendationsInput! |
Returns
MonitorRecommendationsResponse
Example
query GetDataProfilerMonitorRecommendations($request: MonitorRecommendationsInput!) {
getDataProfilerMonitorRecommendations(request: $request) {
monitorRecommendations {
resourceId
description
displayDescription
notes
type
labels
reason
}
}
}Types used only by getDataProfilerMonitorRecommendations
getDataProfilerMonitorRecommendationsMonitorRecommendationModel
MonitorRecommendationModelEnum type.
| Value | Description |
|---|---|
VALIDATION | |
METRIC | |
SEGMENTATION | |
REGEX |
MonitorRecommendationType
MonitorRecommendationTypeEnum type.
| Value | Description |
|---|---|
HEURISTIC | |
AI_VALIDATION |
MonitorRecommendationsInput
MonitorRecommendationsInputInput object type.
| Field | Type | Description |
|---|---|---|
dataset | DatasetInput! | |
fieldNames | [String] | Recommend monitors for specific field names |
recommendationType | MonitorRecommendationType | Generate 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
MonitorRecommendationsResponseObject type.
| Field | Type | Description |
|---|---|---|
monitorRecommendations | [RecommendationConfigInterface!]! |
RecommendationConfigInterface
RecommendationConfigInterfaceInterface type.
| Field | Type | Description |
|---|---|---|
scheduleConfig | ScheduleConfig! | |
resourceId | UUID! | |
description | String! | |
displayDescription | String! | |
notes | String! | |
type | UserDefinedMonitors! | |
dataSource | DataSourceInterface! | |
labels | [String!]! | |
reason | String |
RecommendationConfigMetricMonitor
RecommendationConfigMetricMonitorObject type.
| Field | Type | Description |
|---|---|---|
scheduleConfig | ScheduleConfig! | |
resourceId | UUID! | |
description | String! | |
displayDescription | String! | |
notes | String! | |
type | UserDefinedMonitors! | |
dataSource | DataSourceInterface! | |
labels | [String!]! | |
reason | String | |
timeAxisName | String | |
timeAxisType | String | |
whereCondition | String | |
aggTimeInterval | String | |
lookbackDays | Int | |
comparisons | [CustomRuleComparison!]! | |
collectionLagHours | Int | |
segmentedExpressions | [String!] | |
segmentationType | String |
RecommendationConfigValidationMonitor
RecommendationConfigValidationMonitorObject type.
| Field | Type | Description |
|---|---|---|
scheduleConfig | ScheduleConfig! | |
resourceId | UUID! | |
description | String! | |
displayDescription | String! | |
notes | String! | |
type | UserDefinedMonitors! | |
dataSource | DataSourceInterface! | |
labels | [String!]! | |
reason | String | |
sqlBlocks | CustomRuleSqlBlocks! |
ScheduleConfig
ScheduleConfigObject type.
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
| Argument | Type | Description |
|---|---|---|
request | DataProfilerWidgetDataInput! |
Returns
WidgetDataResponseType
Example
query GetDataProfilerWidgetData($request: DataProfilerWidgetDataInput!) {
getDataProfilerWidgetData(request: $request) {
dataFrame
sqlQuery
totalRowCount
limit
offset
}
}Types used only by getDataProfilerWidgetData
getDataProfilerWidgetDataDataProfilerWidgetDataInput
DataProfilerWidgetDataInputInput object type.
| Field | Type | Description |
|---|---|---|
dataset | DatasetInput! | |
widgetType | WidgetType! | |
fieldName | String | filter by field name. Supported by DISCRETE and FIELD_PROFILE widgets |
fieldNamePattern | String | filter by field name pattern. Supported by FIELD_PROFILE widgets |
limit | Int | Default: 50. |
offset | Int | Default: 0. |
widgetConfig | WidgetConfig | Widget configuration |
WidgetDataResponseType
WidgetDataResponseTypeObject type.
| Field | Type | Description |
|---|---|---|
dataFrame | JSONString | |
sqlQuery | String | Raw SQL query that produced this data |
responseMetadata | QueryResponseMetadataType | Provides metadata that describes how response is structured. |
totalRowCount | Int | |
limit | Int | |
offset | Int |
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
| Argument | Type | Description |
|---|---|---|
dataset | DatasetInput! | |
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
getDuplicateKeyStatsDuplicateKeyStatsResponse
DuplicateKeyStatsResponseObject type.
Related types
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
| Argument | Type | Description |
|---|---|---|
dataset | DatasetInput! | |
fieldName | String | Field name to fetch properties |
metric | AggregateMetricType! | Get data for Metric |
aggTimeInterval | TimeBucketSize | Bucket 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
getFieldMetricDataFieldMetricDataResponse
FieldMetricDataResponseObject type.
| Field | Type | Description |
|---|---|---|
data | [MetricMeasurement!]! | |
sqlQuery | String! | |
fieldName | String | |
metricInfo | MetricInfo! |
MetricMeasurement
MetricMeasurementObject type.
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
| Argument | Type | Description |
|---|---|---|
fieldType | String | field_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
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
| Argument | Type | Description |
|---|---|---|
dataset | DatasetInput! | |
fieldName | String! | 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
getFieldOverviewPropertiesFieldOverviewProperty
FieldOverviewPropertyObject type.
| Field | Type | Description |
|---|---|---|
metricName | String! | |
displayName | String! | |
value | String! | |
metricDataType | MetricDataType! |
FieldOverviewResponse
FieldOverviewResponseObject type.
| Field | Type | Description |
|---|---|---|
sqlQuery | String! | |
properties | [FieldOverviewProperty!]! |
Related types
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
| Argument | Type | Description |
|---|---|---|
request | RetrieveTableDataRequestInput! |
Returns
Example
query RetrieveTableData($request: RetrieveTableDataRequestInput!) {
retrieveTableData(request: $request) {
dataFrame
sqlQuery
presignedUrl
isCustomerHostedData
}
}Types used only by retrieveTableData
retrieveTableDataRetrieveTableDataRequestInput
RetrieveTableDataRequestInputInput object type.
| Field | Type | Description |
|---|---|---|
dataset | DatasetInput! | |
orderBy | String | |
limit | Int | Default: 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
| Argument | Type | Description |
|---|---|---|
request | RetrieveWidgetDataRequestInput! |
Returns
Example
query RetrieveWidgetData($request: RetrieveWidgetDataRequestInput!) {
retrieveWidgetData(request: $request) {
dataFrame
sqlQuery
presignedUrl
isCustomerHostedData
}
}Types used only by retrieveWidgetData
retrieveWidgetDataRetrieveWidgetDataRequestInput
RetrieveWidgetDataRequestInputInput object type.
| Field | Type | Description |
|---|---|---|
dataset | DatasetInput! | |
widgetType | WidgetType! | |
fieldName | String | |
limit | Int | Default: 50. |
offset | Int | Default: 0. |
config | JSONString | DEPRECATED - use widget_config |
widgetConfig | WidgetConfig | Widget 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
| Argument | Type | Description |
|---|---|---|
dataExplorerComparisonDashboard | DataExplorerComparisonDashboardInputType! |
Returns
CreateOrUpdateDataExplorerComparisonDashboardMutation
Example
mutation CreateOrUpdateDataExplorerComparisonDashboard($dataExplorerComparisonDashboard: DataExplorerComparisonDashboardInputType!) {
createOrUpdateDataExplorerComparisonDashboard(dataExplorerComparisonDashboard: $dataExplorerComparisonDashboard) {
dataExplorerComparisonDashboard {
id
createdTime
updatedTime
uuid
name
criteria
}
}
}Types used only by createOrUpdateDataExplorerComparisonDashboard
createOrUpdateDataExplorerComparisonDashboardCreateOrUpdateDataExplorerComparisonDashboardMutation
CreateOrUpdateDataExplorerComparisonDashboardMutationObject type.
| Field | Type | Description |
|---|---|---|
dataExplorerComparisonDashboard | DataExplorerComparisonDashboardType |
DataExplorerComparisonDashboardInputType
DataExplorerComparisonDashboardInputTypeInput object type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of comparison dashboard, required if updating existing object |
warehouseUuid | UUID! | UUID of warehouse |
name | String | Descriptive name |
dashboardLeft | UUID! | First dashboard to be compared |
dashboardRight | UUID! | Second dashboard to be compared |
widgets | [DataExplorerWidgetInputType] | |
criteria | JSONString | Saved 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
| Argument | Type | Description |
|---|---|---|
dataExplorerDashboard | DataExplorerDashboardInputType! |
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
createOrUpdateDataExplorerDashboardCreateOrUpdateDataExplorerDashboardMutation
CreateOrUpdateDataExplorerDashboardMutationObject type.
| Field | Type | Description |
|---|---|---|
dataExplorerDashboard | DataExplorerDashboardType |
DataExplorerDashboardInputType
DataExplorerDashboardInputTypeInput object type.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of dashboard, required if updating existing object |
warehouseUuid | UUID! | UUID of warehouse |
mcon | String! | MCON of underlying warehouse table |
name | String! | Descriptive name of dashboard |
timeAxisFieldName | String | Time axis field name |
baseWhereClause | String | Base where clause |
widgets | [DataExplorerWidgetInputType] | Configured widgets |
criteria | JSONString | Saved 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
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | UUID of comparison dashboard to be deleted |
Returns
DeleteDataExplorerComparisonDashboardMutation
Example
mutation DeleteDataExplorerComparisonDashboard($uuid: UUID!) {
deleteDataExplorerComparisonDashboard(uuid: $uuid) {
success
}
}Types used only by deleteDataExplorerComparisonDashboard
deleteDataExplorerComparisonDashboardDeleteDataExplorerComparisonDashboardMutation
DeleteDataExplorerComparisonDashboardMutationObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean! |
Related types
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
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | UUID of dashboard to be deleted |
Returns
DeleteDataExplorerDashboardMutation
Example
mutation DeleteDataExplorerDashboard($uuid: UUID!) {
deleteDataExplorerDashboard(uuid: $uuid) {
success
}
}Types used only by deleteDataExplorerDashboard
deleteDataExplorerDashboardDeleteDataExplorerDashboardMutation
DeleteDataExplorerDashboardMutationObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
