azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

List_metrics method's Filter needs Timgrain within

Open IrangaSubasingheMSFT opened this issue 5 years ago • 5 comments

https://docs.microsoft.com/en-us/python/api/azure-mgmt-cosmosdb/azure.mgmt.cosmosdb.operations.databaseaccountsoperations?view=azure-python#list-metrics-resource-group-name--account-name--filter----kwargs-

When customer uses the Python Azure SDK to get the metrics associated with the Cosmos DB account/Database, the filter needs to have the Timegraing included. Otherwise, it throws HTTP 400 error. This requirement is not listed anywhere in our documentations and customer found this wasted their time and we had to engage the engineering team to help.

Example, the filter should be in the format as follow; filter="(name.value eq 'Available Storage' or name.value eq 'Data Size' or name.value eq 'Index Size') and timeGrain eq duration'PT5M'")


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

IrangaSubasingheMSFT avatar Aug 31 '21 13:08 IrangaSubasingheMSFT

Thanks for the feedback, we’ll investigate asap.

xiangyan99 avatar Aug 31 '21 15:08 xiangyan99

swagger example should also be updated and I create issue : https://github.com/Azure/azure-rest-api-specs/issues/15875

msyyc avatar Sep 01 '21 02:09 msyyc

@msyyc @xiangyan99 Should this issue be closed? It appears to be resolved.

gahl-levy avatar Nov 30 '21 18:11 gahl-levy

Hi @IrangaSubasingheMSFT. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.

ghost avatar Nov 30 '21 18:11 ghost

Hi @IrangaSubasingheMSFT, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.

ghost avatar Dec 07 '21 22:12 ghost