Inbound Cosmos DB Stage
The Inbound Cosmos DB stage allows messages to be ingested into Integration Hub by monitoring a Cosmos DB container for the creation of new payloads.
Stage Overview
The Inbound Cosmos DB stage allows messages to be ingested into Integration Hub by monitoring a Cosmos DB container for the creation of new payloads.
Stage Definition File Location
All Inbound Cosmos DB stages are defined by creating an appropriately formatted JSON definition file in the following location:
interfaces
{businessUnitCode}
{domainCode}
{integrationName}
in
cdb
{STAGE_NAME}.json
Stage JSON Definition File Format
The JSON definition file for an Inbound Cosmos DB stage is as follows:
{
"name": "stage-name",
"displayName": "Brief Stage Title",
"description": "Brief description of the stage.",
"enabled": "$env:STATUS_<INTEGRATION_NAME>",
"concurrency": 10,
"cdb": {
"databaseId": "DatabaseID-string-value",
"containerId": "ContainerID-string-value",
"connectionString": "$env:CDB_CONNECTION_STRING",
"partitionKey": "/KEY"
},
"deduplicate": {
"timeWindow": "HH:MM:SS",
"schemaMessageId": "schemas/path/to/transform.liquid"
},
"preLogTransformSchemaFileName": "schemas/path/to/schema/schema-name.liquid",
"preLogTransformSchemaType": "liquid|javascript",
"preLogTransformFormat": "json|xml|csv"
}
| Property | Sub-Property | Description |
|---|---|---|
name | The name of the stage. | |
displayName | Optional (but highly recommended). A short (3 or 4 word) "display name" for the stage, used as a "title" of the stage in the Integration Hub Portal service's self-documentation capability. | |
description | Optional (but highly recommended). A brief (10 to 15 word) description of the stage, used as a brief description of the stage's purpose in the Integration Hub Portal service's self-documentation capability. For a more detailed explanation (when needed), use the stage markdown feature. | |
enabled | Optional boolean flag (true or false). Default is true. Generally set via a DevOps variable. Controls if the stage is deployed enabled or not. | |
concurrency | Optional number of concurrent runs permitted for the stage. Default is 10. | |
cdb | ||
databaseId | The Cosmos DB Database ID that should be monitored for changes to data. | |
containerId | The Cosmos DB Container ID that should be monitored for changes to data. | |
connectionString | The connection string for the Cosmos DB resource. Generally set via a DevOps variable. | |
partitionKey | The Cosmos DB Partition Key for the Database/Container. | |
deduplicate | Inbound message de-duplication options, to allow incoming duplicate messages to be discarded. | |
timeWindow | The time window in which any duplicate payloads detected should be discarded. (Hours, minutes, and seconds.) | |
schemaMessageId | A filename that defines a Liquid transform, which will transform the received payload into a text string, which defines a unique ID for each message, allowing any duplicates of this unique ID received within the timeWindow to be discarded. |
Pre-Logging Transformation
This stage supports the optional pre-logging transformation feature using the following fields:
preLogTransformSchemaFileNamepreLogTransformSchemaTypepreLogTransformFormat
See the Pre-Logging Transformation for details.
Last updated on