What does Atlan crawl from Microsoft Azure Cosmos DB for NoSQL?
This reference document details the Microsoft Azure Cosmos DB for NoSQL assets and properties that Atlan crawls and maps during metadata extraction. Atlan currently doesn't support lineage for Cosmos DB for NoSQL assets.
Asset model
Atlan crawls and maps the following asset types from Cosmos DB for NoSQL, in this hierarchy:
- Account → Database → Container → Column (inferred field), Stored procedure, Trigger, and User-defined function.
Columns, stored procedures, triggers, and user-defined functions all attach to their parent container.
Cosmos DB for NoSQL reuses Atlan's existing Cosmos DB asset family for accounts, databases, and containers, so some property names carry a cosmosMongoDB prefix even though the assets come from the NoSQL API. Atlan distinguishes these assets using the connectorName="cosmosnosql" discriminator on the connection, so they appear under the Cosmos DB for NoSQL connector in the Atlan UI, separately from any Microsoft Azure Cosmos DB connection.
After crawling Cosmos DB for NoSQL, you can use connector-specific filters to discover assets.
The following sections show how each asset type is mapped, including the source metadata and the corresponding Atlan property.
Accounts
Atlan maps accounts from Cosmos DB for NoSQL to its CosmosMongoDBAccount asset type.
| Source metadata | Atlan property |
|---|---|
| Account name | name |
| Number of databases in the account | cosmosMongoDBDatabaseCount |
| Subscription that contains the account | cosmosMongoDBAccountSubscriptionId |
| Resource group that contains the account | cosmosMongoDBAccountResourceGroup |
| Document endpoint of the account | cosmosMongoDBAccountDocumentEndpoint |
| Default consistency level | cosmosMongoDBAccountConsistencyPolicy |
| Whether public network access is enabled | cosmosMongoDBAccountPublicNetworkAccess |
| Whether multiple write locations are enabled | cosmosMongoDBAccountEnableMultipleWriteLocations |
| All Azure regions configured for the account | cosmosMongoDBAccountLocations |
| Regions serving reads | cosmosMongoDBAccountReadLocations |
| Regions serving writes | cosmosMongoDBAccountWriteLocations |
Databases
Atlan maps databases from Cosmos DB for NoSQL to its CosmosMongoDBDatabase asset type.
| Source metadata | Atlan property |
|---|---|
| Database name | name |
| Parent account | cosmosMongoDBAccountQualifiedName |
| Time the database was last modified | sourceUpdatedAt |
Containers
Atlan maps containers from Cosmos DB for NoSQL to its CosmosMongoDBCollection asset type, with assetUserDefinedType set to Container.
| Source metadata | Atlan property |
|---|---|
| Container name | name |
| Parent database name | databaseName |
Container | assetUserDefinedType |
| Whether the container is partitioned | isPartitioned |
| Partitioning strategy | partitionStrategy |
| Partition key paths | partitionList |
| Number of inferred fields | columnCount |
| Time the container was last modified | sourceUpdatedAt |
Columns
Atlan maps each inferred field from a container to its Column asset type. Fields are inferred by sampling up to 200 items per container and consolidating the fields found across those items into a single schema. Nested fields are published up to 35 levels deep.
| Source metadata | Atlan property |
|---|---|
| Field name | name |
| Field order within the container | order |
| Inferred data type | dataType |
nested for fields below the top level | subDataType |
| Raw inferred type definition | rawDataTypeDefinition |
| Whether the field matches a partition key path | isPrimary |
| Whether the field is absent from at least one sampled item | isNullable |
| Nesting depth of the field | columnDepthLevel |
| Complete hierarchy from parent column to child column | columnHierarchy |
| Position of the field within its nesting level | nestedColumnOrder |
| Number of fields nested beneath this field | nestedColumnCount |
| Parent field name, for nested fields | parentColumnName |
| Parent field, for nested fields | parentColumnQualifiedName |
| Parent container name | nosqlCollectionName |
| Parent container | nosqlCollectionQualifiedName |
Stored procedures
Atlan maps stored procedures from Cosmos DB for NoSQL to its Procedure asset type, with assetUserDefinedType set to Stored Procedure.
| Source metadata | Atlan property |
|---|---|
| Stored procedure name | name |
| Stored procedure body | definition |
| Language the stored procedure is written in | sqlLanguage |
Stored Procedure | assetUserDefinedType |
| Parent database name | databaseName |
| Time the stored procedure was last modified | sourceUpdatedAt |
Triggers
Atlan maps triggers from Cosmos DB for NoSQL to its Procedure asset type, with subType and assetUserDefinedType both set to Trigger.
| Source metadata | Atlan property |
|---|---|
| Trigger name | name |
| Trigger body | definition |
| Language the trigger is written in | sqlLanguage |
Trigger | subType |
Trigger | assetUserDefinedType |
| Parent database name | databaseName |
| Time the trigger was last modified | sourceUpdatedAt |
User-defined functions
Atlan maps user-defined functions from Cosmos DB for NoSQL to its Function asset type.
| Source metadata | Atlan property |
|---|---|
| Function name | name |
| Function body | functionDefinition |
| Language the function is written in | functionLanguage |
| Parent database name | databaseName |
| Time the function was last modified | sourceUpdatedAt |