Related queries and mutations in Catalog and lineage. Each has its own section.
Queries
getSizeCollectionConfiguration (query)
getSizeCollectionConfiguration 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.
Size Collection configuration for an assets with size collection
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String | MC unique identifier of the object |
Returns
SizeCollectionConfiguration
Example
query GetSizeCollectionConfiguration {
getSizeCollectionConfiguration {
enabled
whereCondition
collectionStatus
collectionError
connectionId
userDisabled
}
}Types used only by getSizeCollectionConfiguration
getSizeCollectionConfigurationSizeCollectionConfiguration
SizeCollectionConfigurationObject type.
| Field | Type | Description |
|---|---|---|
enabled | Boolean | True if collection is enabled. False if disabled |
whereCondition | String | Where condition which is applied to the collection query |
collectionStatus | JobExecutionStatus | Status of the latest collection run. Adjust the where condition if the run failed or timed-out |
collectionError | String | Contains the error message if the latest collection run failed |
connectionId | UUID | The connection ID where the size collector is run on. |
enabledByTableMonitor | [TableMonitor!] | List of table monitors that enabled row count collection for this table. Empty list if manually enabled by user/API or not enabled at all. |
userDisabled | Boolean | True if the user explicitly disabled row count collection for this table. When true, table monitors will not re-enable it. |
Related types
JobExecutionStatus, TableMonitor, UUID
getSizeCollectionQuery (query)
getSizeCollectionQuery 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 query executed by size collection for the given asset
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String | MC unique identifier of the object |
whereCondition | String | Where condition to include with collection query |
Returns
SizeCollectionQuery
Example
query GetSizeCollectionQuery {
getSizeCollectionQuery {
query
}
}Types used only by getSizeCollectionQuery
getSizeCollectionQuerySizeCollectionQuery
SizeCollectionQueryObject type.
| Field | Type | Description |
|---|---|---|
query | String | Query executed by size collection |
Mutations
toggleSizeCollection (mutation)
toggleSizeCollection 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.
Toggle Size Collection for an assets which doesn't support metadata
Arguments
| Argument | Type | Description |
|---|---|---|
connectionId | UUID | Connection to run the size collector on. If not provided, the default connection for SQL jobs will be used. |
enabled | Boolean! | True if collection should be enabled. False if disabled |
force | Boolean | Set True if table capability checks should be skipped. Defaults to False Default: false. |
mcon | String! | MC unique identifier of the object |
whereCondition | String | Where condition which is applied to the collection query |
Returns
ToggleSizeCollection
Example
mutation ToggleSizeCollection($enabled: Boolean!, $mcon: String!) {
toggleSizeCollection(enabled: $enabled, mcon: $mcon) {
enabled
}
}Types used only by toggleSizeCollection
toggleSizeCollectionToggleSizeCollection
ToggleSizeCollectionObject type. Toggle Size Collection for an assets which doesn't support metadata
| Field | Type | Description |
|---|---|---|
enabled | 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.
