CosmosDBv4OutputOptions interface

Properties

connection

An app setting (or environment variable) with the Cosmos DB connection string

containerName

The name of the collection being monitored

containerThroughput

When createIfNotExists is true, it defines the throughput of the created collection

createIfNotExists

A boolean value to indicate whether the collection is created when it doesn't exist. The default is false because new collections are created with reserved throughput, which has cost implications. For more information, see the pricing page.

databaseName

The name of the Azure Cosmos DB database with the collection being monitored

partitionKey

When createIfNotExists is true, it defines the partition key path for the created collection. May include binding parameters.

preferredLocations

Defines preferred locations (regions) for geo-replicated database accounts in the Azure Cosmos DB service. Values should be comma-separated. For example, East US,South Central US,North Europe

Property Details

connection

An app setting (or environment variable) with the Cosmos DB connection string

connection: string

Property Value

string

containerName

The name of the collection being monitored

containerName: string

Property Value

string

containerThroughput

When createIfNotExists is true, it defines the throughput of the created collection

containerThroughput?: number

Property Value

number

createIfNotExists

A boolean value to indicate whether the collection is created when it doesn't exist. The default is false because new collections are created with reserved throughput, which has cost implications. For more information, see the pricing page.

createIfNotExists?: boolean

Property Value

boolean

databaseName

The name of the Azure Cosmos DB database with the collection being monitored

databaseName: string

Property Value

string

partitionKey

When createIfNotExists is true, it defines the partition key path for the created collection. May include binding parameters.

partitionKey?: string

Property Value

string

preferredLocations

Defines preferred locations (regions) for geo-replicated database accounts in the Azure Cosmos DB service. Values should be comma-separated. For example, East US,South Central US,North Europe

preferredLocations?: string

Property Value

string