Size collection (GraphQL)

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

ArgumentTypeDescription
mconStringMC unique identifier of the object

Returns

SizeCollectionConfiguration

Example

query GetSizeCollectionConfiguration {
  getSizeCollectionConfiguration {
    enabled
    whereCondition
    collectionStatus
    collectionError
    connectionId
    userDisabled
  }
}

Types used only by getSizeCollectionConfiguration

SizeCollectionConfiguration

Object type.

FieldTypeDescription
enabledBooleanTrue if collection is enabled. False if disabled
whereConditionStringWhere condition which is applied to the collection query
collectionStatusJobExecutionStatusStatus of the latest collection run. Adjust the where condition if the run failed or timed-out
collectionErrorStringContains the error message if the latest collection run failed
connectionIdUUIDThe 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.
userDisabledBooleanTrue 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

ArgumentTypeDescription
mconStringMC unique identifier of the object
whereConditionStringWhere condition to include with collection query

Returns

SizeCollectionQuery

Example

query GetSizeCollectionQuery {
  getSizeCollectionQuery {
    query
  }
}

Types used only by getSizeCollectionQuery

SizeCollectionQuery

Object type.

FieldTypeDescription
queryStringQuery 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

ArgumentTypeDescription
connectionIdUUIDConnection to run the size collector on. If not provided, the default connection for SQL jobs will be used.
enabledBoolean!True if collection should be enabled. False if disabled
forceBooleanSet True if table capability checks should be skipped. Defaults to False Default: false.
mconString!MC unique identifier of the object
whereConditionStringWhere 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

ToggleSizeCollection

Object type. Toggle Size Collection for an assets which doesn't support metadata

FieldTypeDescription
enabledBoolean

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.