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

Rest API returns unmonitored entities

jimeng_liu
Newcomer

When I use Rest API https://account.live.dynatrace.com/api/v1/entity/ applications in order to get monitored applications in my environment. The API returns me old applications whose rules I already removed. SmartScape already updated itself, not showing those applications. But why my Rest API call still return them ?

The same thing goes to another Rest API to get a list of monitored hosts. After I remove monitoring on few hosts in the Host settings page. They keep showing up in the result of list monitored hosts from Rest API: https://account.live.dynatrace.com/api/v1/entity /infrastructure/hosts There are no fields identifying host monitoring status, such as monitored or unmonitored.

Thanks!

Jim

 

2 REPLIES 2

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

Did you use the from and to timestamp selector parameters within the API? By design the API should not expose entities that are not visible within the selected timeframe. The default timeframe if you did not specified any custom timeframe within the API is 72h.


Thanks Wolfgang! With the timestamp selectors, I am able to filter them out. However, I do expect these are real time, because smartscape UI do update everything real time, but API does not. This is an inconsistence. If API can expose "unmonitored" status field in returned JSON object, that would be much better.


Featured Posts