Related queries and mutations in Monitors. Each has its own section.
Queries
evaluateAssetSelection (query)
evaluateAssetSelection is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Evaluates an asset selection query and returns a list of asset selection results.
Arguments
| Argument | Type | Description |
|---|---|---|
warehouseUuid | UUID! | |
assetSelection | AssetSelectionInput! | |
assetSelectionLevel | AssetSelectionLevel! | |
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. |
includeUnselected | Boolean | |
filterByDatabaseName | String | |
filterBySchemaName | String | |
domainRestrictions | [UUID!] | |
search | String | |
rankByDatabaseSchema | String | |
searchFullTableId | String | |
isMonitored | Boolean | Filter by monitored status if provided |
includeRequireRowCountCollection | Boolean | Include count of tables that require row count collection but do not have it enabled yet (countRowCountCollectionNotEnabled). |
limit | Int | Default: 100. |
offset | Int | Default: 0. |
Returns
[AssetSelectionResult!]
Example
query EvaluateAssetSelection($warehouseUuid: UUID!, $assetSelection: AssetSelectionInput!, $assetSelectionLevel: AssetSelectionLevel!) {
evaluateAssetSelection(warehouseUuid: $warehouseUuid, assetSelection: $assetSelection, assetSelectionLevel: $assetSelectionLevel) {
name
id
type
count
countUnselected
countDatabaseSchema
selected
mcon
countRowCountCollectionNotEnabled
countRowCountCollectionEnabled
countRowCountCollectionUserDisabled
}
}Types used only by evaluateAssetSelection
evaluateAssetSelectionAssetSelectionLevel
AssetSelectionLevelEnum type.
| Value | Description |
|---|---|
WAREHOUSE | |
DATABASE | |
SCHEMA | |
TABLE |
AssetSelectionResult
AssetSelectionResultObject type.
| Field | Type | Description |
|---|---|---|
name | String! | |
id | String! | |
type | String! | |
count | Int! | |
countUnselected | Int! | |
countDatabaseSchema | Int! | |
selected | Boolean! | |
mcon | String! | |
countRowCountCollectionNotEnabled | Int! | |
countRowCountCollectionEnabled | Int! | |
countRowCountCollectionUserDisabled | Int! |
Related types
evaluateFieldPatternMatches (query)
evaluateFieldPatternMatches is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Evaluates a field pattern against tables from an asset selection and returns matching tables with their matched fields.
Arguments
| Argument | Type | Description |
|---|---|---|
warehouseUuid | UUID! | |
assetSelection | AssetSelectionInput! | |
fieldPattern | FieldPatternInput! | |
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. |
metric | String | Optional metric to filter by compatible field types |
domainRestrictions | [UUID!] | |
search | String | Optional search term to filter tables by name |
Returns
FieldPatternMatchResult
Example
query EvaluateFieldPatternMatches($warehouseUuid: UUID!, $assetSelection: AssetSelectionInput!, $fieldPattern: FieldPatternInput!) {
evaluateFieldPatternMatches(warehouseUuid: $warehouseUuid, assetSelection: $assetSelection, fieldPattern: $fieldPattern) {
tables {
tableName
mcon
fullTableId
matchingFields
}
}
}Types used only by evaluateFieldPatternMatches
evaluateFieldPatternMatchesFieldPatternMatchResult
FieldPatternMatchResultObject type.
| Field | Type | Description |
|---|---|---|
tables | [FieldPatternTableMatch!]! |
FieldPatternTableMatch
FieldPatternTableMatchObject type.
| Field | Type | Description |
|---|---|---|
tableName | String! | |
mcon | String! | |
fullTableId | String! | |
matchingFields | [String!]! |
Related types
AssetSelectionInput, FieldPatternInput, UUID
getAccountUsage (query)
getAccountUsage is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
List of account usages per account.
Arguments
Returns
[AccountUsageObject]
Example
query GetAccountUsage {
getAccountUsage {
ingested
monitored
timestamp
}
}Types used only by getAccountUsage
getAccountUsageAccountUsageObject
AccountUsageObjectObject type. Account usage and consumption.
| Field | Type | Description |
|---|---|---|
ingested | Int! | Number of ingested tables |
monitored | Int! | Number of monitored tables |
timestamp | DateTime | Timestamp of the usage record. |
Related types
getAssetsUsage (query)
getAssetsUsage is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Use this to get a list of assets. The response will only contain assets of one type. The asset hierarchy is warehouses > databases > schemas > tables. If mcon is given, the response will only contain this object. To get all warehouses, omit both mcon and parentMcon. This assumes the parent to be the account. To get all databases/projects under a warehouse, provide the mcon of the warehouse. To get all schemas/datasets under a database, provide the mcon of the database. To get all tables under a schema, provide the mcon of the schema.
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String | Filter by mcon, returns this single object. Include this or parent_mcon.If neither mcon nor parent_mcon is given, will return warehouses. |
parentMcon | String | Only include children of this object. Include this or mcon.If neither mcon nor parent_mcon is given, will return warehouses. |
offset | Int | Starting node index for current page. |
limit | Int | Max nodes to get for page. |
displayNameContains | String | To search a substring of an asset's display name. |
filterOptions | AssetsUsageFilterOptions | To filter results by only ingested/not ingested/monitored/not monitored tables. |
sortOptions | AssetsSortInput | To sort results by a field. Default is ascending order. |
Returns
AssetsUsageResults
Example
query GetAssetsUsage {
getAssetsUsage {
hasNextPage
nextPageOffset
groupObjectType
totalCount
}
}Types used only by getAssetsUsage
getAssetsUsageAssetUsageNode
AssetUsageNodeObject type.
| Field | Type | Description |
|---|---|---|
mconId | String | MCON of the object represented by this node. |
displayName | String | User-friendly display name of the catalog object. |
path | [String] | Object's hierarchy as list of ancestors plus self, if applicable. |
schemaCountIsIngested | Int | The number of schemas associated with this node that are ingested. |
schemaCountIsNotIngested | Int | The number of schemas associated with this node that are not ingested. |
tableCount | Int | The number of tables associated with this node. |
tableCountIsIngested | Int | The number of tables associated with this node that are ingested. |
tableCountIsNotIngested | Int | The number of tables associated with this node that are not ingested. |
tableCountIsMonitored | Int | The number of tables associated with this node that are monitored. |
tableCountIsNotMonitored | Int | The number of tables associated with this node that are not monitored. |
isExcluded | Boolean | Whether or not a table node is excluded from ingestion control. When it is True, it means that the table is excluded for ingestion. |
isMonitored | Boolean | Whether or not a table node is monitored. When it is False, it means that the table is not monitored. |
importanceScore | Float | The importance score of the table. |
lastActivity | DateTime | The last activity date of the table. When was the last time the table was read or written. |
lastRead | DateTime | The last read date of the table. When was the last time the table was read from. |
lastWrite | DateTime | The last write date of the table. When was the last time the table was written to . |
lastVolumeChange | DateTime | The last time a significant write was executed on the table |
objectProperties | [PartialObjectProperty] | Properties of the table (like tags). |
tableType | String | The type of the table. |
AssetsSortDirection
AssetsSortDirectionEnum type.
| Value | Description |
|---|---|
ASC | |
DESC |
AssetsSortInput
AssetsSortInputInput object type.
| Field | Type | Description |
|---|---|---|
sortField | String! | Field to sort by. |
sortDirection | AssetsSortDirection | Sort direction. ASC or DESC, default is ASC Default: "ASC". |
AssetsUsageFilterOptions
AssetsUsageFilterOptionsInput object type.
| Field | Type | Description |
|---|---|---|
onlyIngestedTables | Boolean | To filter results that only has ingested tables. |
onlyNotIngestedTables | Boolean | To filter results that only does not have ingested tables. |
onlyMonitoredTables | Boolean | To filter results that only has monitored tables. |
onlyNotMonitoredTables | Boolean | To filter results that only does not have monitored tables. |
onlyIngestedSchemas | Boolean | To filter results that only has ingested schemas. |
onlyNotIngestedSchemas | Boolean | To filter results that only does not have ingested schemas. |
onlyIngestedDatabases | Boolean | To filter results that only has ingested databases. |
onlyNotIngestedDatabases | Boolean | To filter results that only does not have ingested databases. |
AssetsUsageResults
AssetsUsageResultsObject type.
| Field | Type | Description |
|---|---|---|
nodes | [AssetUsageNode] | Nodes for current page. |
hasNextPage | Boolean | If there are more nodes. |
nextPageOffset | Int | Where to start for next page, if next page exists. |
groupObjectType | String | Object type of the group, when grouping by type. |
totalCount | Int | Total number of nodes. |
PartialObjectProperty
PartialObjectPropertyObject type.
| Field | Type | Description |
|---|---|---|
propertyName | String | Name of the attached property |
propertyValue | String | Value of the attached property |
Related types
getNotMonitoredReason (query)
getNotMonitoredReason is a query in the Monte Carlo GraphQL API, in Monitors. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Explain a reason behind an asset not being monitored
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String! | MCON of the asset |
Returns
NotMonitoredReason
Example
query GetNotMonitoredReason($mcon: String!) {
getNotMonitoredReason(mcon: $mcon) {
mcon
reason
}
}Types used only by getNotMonitoredReason
getNotMonitoredReasonIsNotMonitoredReason
IsNotMonitoredReasonEnum type.
| Value | Description |
|---|---|
NO_REASON_FOUND | |
ACCOUNT_NOT_BASED_ON_MONITORING | |
NOT_MONITORABLE_OTHER | |
NON_MONITORABLE_BI | |
NOT_FOUND_IN_METADATA_COLLECTION_OTHER | |
INGESTION_EXCLUSION_RULE_OTHER | |
MONITORING_EXCLUSION_RULE_OTHER | |
MONITORING_INCLUSION_MISSING_OTHER |
NotMonitoredReason
NotMonitoredReasonObject type.
| Field | Type | Description |
|---|---|---|
mcon | String | MCON of the asset |
reason | IsNotMonitoredReason | Reason why the asset is not monitored |
rule | MonitoredTableRuleObject | The rule that caused the asset to be not monitored Deprecated: Monitoring rules were removed; always null.. |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
