CosmosDbThroughput class

Class representing a CosmosDB throughput.

Constructors

CosmosDbThroughput(int throughput)
Creates a new manual throughput RUs. Must be a multiple of 100. Minimum allowed is 400 RUs.
CosmosDbThroughput.autoScale(int maxThroughput)
Creates a new auto-scale throughput for maxThroughput RUs. Must be a multiple of 1000. Minimum allowed is 1000 RUs.
CosmosDbThroughput.none()
Used for servles instances where throughput can't be set

Properties

hashCode int
The hash code for this object.
no setterinherited
The HTTP header representing the specified throughput.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

minimum CosmosDbThroughput
Minimum manual throughput (400 RU).
final

Static Methods

createHeader(int throughput) Map<String, String>