Add Index metrics to python sdk#33034
Conversation
This PR adds Index Metrics to Python SDK
|
API change check APIView has identified API level changes in this PR and created following API reviews. |
simorenoh
left a comment
There was a problem hiding this comment.
small suggestions but great stuff nonetheless, thank you Bryan! 👍
let's make sure to include the CHANGELOG like you said as well
|
also side random question, but from what I saw we send "x-ms-cosmos-populateindexmetrics" and the service returns "x-ms-cosmos-index-utilization" - is that right? there's no other additional headers that get returned on this right? |
That is correct. |
|
/azp run python - cosmos - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Removed the param reference so that we can use it as a keyword
|
/azp run python - cosmos - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
kushagraThapar
left a comment
There was a problem hiding this comment.
LGTM, thanks @bambriz !
Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
This PR adds Index Metrics to Python SDK.
You can capture index metrics by passing in the populate_index_metrics keyword in query items.
query_items = container.query_items(query="Select * from c", populate_index_metrics=True)All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines