azure-service-bus
azure-service-bus copied to clipboard
Dimension name case toggles b/w title case & lower case in List metrics API response (as "EntityName" or "entityname")
Description
When we try to get metrics of service bus instance using client.List(...) API (as mentioned in sample programs at - https://learn.microsoft.com/en-us/rest/api/monitor/metrics/list?tabs=Go#code-try-0, sometimes response will contain dimension name as "EntityName" & in other times as "entityname".
Actual Behavior
-
Few runs will return; ... "metadatavalues":[ { "name":{ "value":"EntityName", "localizedValue":"EntityName" }, "value":"
" } ] ... -
Few will return; ... "metadatavalues":[ { "name":{ "value":"entityname", "localizedValue":"entityname" }, "value":"
" } ] ...
Expected Behavior
- Response should contain either "EntityName" or "entityname", but not both. Response with both scenario for same set of parameters attached herewith; DimensionNameMismatch_JSON_SuccessfulRequestsMetric_git.txt