I have a question about Dynatrace Metric API (API v2)
We are capturing builtin:host.cpu.user.
We wonder how Dynatrace order target hosts.
We use scope function, but the order is different from scope.
response: Host2 -> Host3 -> Host1
Solved! Go to Solution.
Thank you for your response!
In our environment, hosts are sorted by IP address like this.
However, I understood there is no guarantee as to the sorting order of these results.
I asked the same question via chat and got answer from the team.
"The short answer is there is no guarantee as to the sorting order of these results.
Conceptually, your scope expression filters a sorted list of hosts, and the resulting list is still sorted. The sorting order in which you get the results on a single page of metric query cannot be known for sure in advance. Some metric queries are split into sub-queries and these are carried out in parallel - so there's no way of knowing which sub-query will finish first.
It would be best not to rely on the order as this is an internal implementation of our underlying infrastructure and such things might change in the future."