Cosmos Db Throughput

岁酱吖の 提交于 2019-12-20 02:08:21

问题


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.

Please let me know if this is feasible


回答1:


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

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



来源:https://stackoverflow.com/questions/53830016/cosmos-db-throughput

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!