ThroughputProperties 類別

表示 Azure Cosmos DB SQL API 容器中的輸送量屬性。

若要讀取和更新輸送量屬性,請使用 上的 <xref:Container> 相關聯方法。 如果設定自動調整,則必須設定auto_scale_max_throughput,而且auto_scale_increment_percent也可以與它一起設定。 不允許 將offer_throughput 的值與自動調整設定一起設定。

繼承
builtins.object
ThroughputProperties

建構函式

ThroughputProperties(*args, **kwargs)

僅限關鍵字的參數

名稱 Description
offer_throughput
int

以每秒要求單位為單位的布建輸送量,以數位表示。

auto_scale_max_throughput
int

最大自動調整輸送量。 其應具有介於 1000 到 1000000 之間的有效輸送量值,其增量為 1000。

auto_scale_increment_percent
int

是從基底選取的 RU 中,于指定時間增加的百分比,遞增百分比應該大於或等於零。