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

**URL:** <https://community.dynatrace.com/t/position-of-a-unique-child-level-dimension-in-the-api-call/35945>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, hosts-classic, dynatrace-api\
**Created:** [July 21, 2022, 2:53pm UTC](https://community.dynatrace.com/t/position-of-a-unique-child-level-dimension-in-the-api-call/35945 "2022-07-21T14:53:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjunathcr22](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@manjunathcr22](https://community.dynatrace.com/u/manjunathcr22)\
**Post date:** [July 21, 2022, 2:53pm UTC](https://community.dynatrace.com/t/position-of-a-unique-child-level-dimension-in-the-api-call/35945/1 "2022-07-21T14:53:53Z")

</div>

[https://xxx12345.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:host.net.nic.packets.errors:names&from=now-1h&resolution=1h](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](https://xxx12345.live.dynatrace.com/api/v2/entities?entitySelector=type)&nbsp;(“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](http://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.

---

<div class="post-metadata">

**Author:** ![abbachr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/abbachr/32/28551_2.png) [@abbachr](https://community.dynatrace.com/u/abbachr)\
**Post date:** [December 14, 2022, 1:02pm UTC](https://community.dynatrace.com/t/position-of-a-unique-child-level-dimension-in-the-api-call/35945/2 "2022-12-14T13:02:12Z")

</div>

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.
