ConsistencyPolicy interface

The consistency policy for the Cosmos DB database account.

Properties

defaultConsistencyLevel

The default consistency level and configuration settings of the Cosmos DB account.

maxIntervalInSeconds

When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.

maxStalenessPrefix

When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.

Property Details

defaultConsistencyLevel

The default consistency level and configuration settings of the Cosmos DB account.

defaultConsistencyLevel: DefaultConsistencyLevel

Property Value

maxIntervalInSeconds

When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.

maxIntervalInSeconds?: number

Property Value

number

maxStalenessPrefix

When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.

maxStalenessPrefix?: number

Property Value

number