cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Position of a unique child-level dimension in the API call

manjunathcr22
Participant


https://xxx12345.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:host.net.nic.packets.errors:names&from=now-1h&resolution=1h 


Wanted to know when we get entities based on the first dimension (https://xxx12345.live.dynatrace.com/api/v2/entities?entitySelector=type ("host")) then we query for metric data we have multiple dimensions in response. So wanted to confirm if the unique child-level dimension is always the last element in dimension.

{
"dimensions": [
"abxs.xyz.aaa.axe.abc.com",
"HOST-ABCD",
"abccw0.0.1000",
"NETWORK_INTERFACE-23D233184321317A"
]

}

So in this example unique child-level dimension name is at 3rd index i.e, size-1. This size-1 is common across Dynatrace for all metrics? Need confirmation here.

1 REPLY 1

abbachr
Dynatrace Helper
Dynatrace Helper

I don't know what you are referring to as "unique child-level dimension", but in any case, there is no guarantee about the ordering of dimensions in the response, this may vary from metric to metric. Don't rely on this ordering / make any assumptions about it.

Featured Posts