Cosmos Db吞吐量 [英] Cosmos Db Throughput

查看:126
本文介绍了Cosmos Db吞吐量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过编程方式检索Cosmos DB(SQL API)吞吐量.我正在使用以下代码来获取数据库列表

Is there any option to retrieve Cosmos DB (SQL API) throughput programmatically. I'm using the below code to get the list of DB

DocumentClient client = new DocumentClient(ClientURL, ClientKey,);
var databaseList = client.CreateDatabaseQuery().ToList();

接下来,我想知道每个数据库的吞吐量.

Next I wanted to know the throughput for each of the database.

请告诉我这是否可行

推荐答案

您可以参考

You could refer to CreateOfferQuery method to get throughout settings of Database or Collections.

此外,请参考此其余api:

Also,please refer to this rest api:https://docs.microsoft.com/en-us/rest/api/cosmos-db/get-an-offer

这篇关于Cosmos Db吞吐量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆