21 Jul 2022 03:53 PM - last edited on 27 Mar 2023 10:26 AM by MaciejNeumann
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.
Solved! Go to Solution.
14 Dec 2022 01:02 PM
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.