Is there a way to retrieve last 7 days brand new onboarding hosts? We used the below test cases but return incorrect results:
Test case1:
“api/v1/entity/infrastructure/hosts?from=now-14d&to=now-7d&includeDetails=false”
vs “api/v1/entity/infrastructure/hosts?from=now-7d&to=now&includeDetails=false”
compare “displayName” (=hostname) return no diff.
Test case2:
“api/v1/entity/infrastructure/hosts?from=now-90d&to=now-14d&includeDetails=false”
vs “api/v1/entity/infrastructure/hosts?from=now-14d&to=now-7d&includeDetails=false”: compare “displayName” (=hostname) , return very small qty of hosts and missing many.
The goal is to retrieve last 7 days brand new on-boarding hosts.
- Please note firstSeenTimestamp can not be the reliable indicator (reason mentioned in https://community.dynatrace.com/t5/Dynatrace-API/Which-API-and-field-Indicator-of-brand-new-on-boarding-hosts/m-p/198335#M2138 ) ; Host restart will make new record of “entityId” + “firstSeenTimestamp”.
That is why we intend to use alternative solution: compare last 7-14days hosts list with last 7 days hosts list to see any brand new.

