azure-service-bus icon indicating copy to clipboard operation
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")

Open vinay-kalappa-swi opened this issue 1 year ago • 6 comments

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

  1. Few runs will return; ... "metadatavalues":[ { "name":{ "value":"EntityName", "localizedValue":"EntityName" }, "value":"" } ] ...

  2. Few will return; ... "metadatavalues":[ { "name":{ "value":"entityname", "localizedValue":"entityname" }, "value":"" } ] ...

Expected Behavior

  1. 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

vinay-kalappa-swi avatar Jan 20 '23 13:01 vinay-kalappa-swi