DQL
Questions about Dynatrace Query Language
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace APi v2 : Manage monitored entities - Deprecated in SaaS

Carl_Me
Participant

Hello,

It seems that it's no longer possible to view an entity's properties using the v2 API (/entities) -  see image.

Do you have an example of a DQL query that returns all the properties as the API used to?

We have scripts that make API calls. Will this be deprecated in the near future?

Thanks

 

Carl_Me_0-1769461219546.png

 

 

 

3 REPLIES 3

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

Properties field is being returned using Monitored entities API - GET entities list.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

t_pawlak
Champion

Hi,
Yes — in Dynatrace SaaS the direction is to replace the classic “Monitored entities / Manage monitored entities” API usage with DQL + Smartscape on Grail (and OpenPipeline where applicable). That’s why you see it marked as Deprecated

IMO, u can use DQL to discover which fields/properties exist for an entity type.
Look here:

t_pawlak_0-1769508996570.png

This returns the available fields you can later add via fieldsAdd.
Then you can fetch entities of a given type and add the properties you need.

t_pawlak_1-1769509088534.png

Another TRICK and TIPS. If you want “all types” (topology-style):

smartscapeNodes "*"
| limit 100

t_pawlak_2-1769509160123.png

That’s the “show me nodes regardless of type” approach in Smartscape on Grail.

Her u have links, with u can check:
https://docs.dynatrace.com/docs/whats-new/dynatrace-api/deprecated-apis
https://docs.dynatrace.com/docs/discover-dynatrace/platform/grail/querying-monitored-entities
ANd this what @AntonPineiro send
Monitored entities API - GET entities list.

 

 

 

It's not clear to me how one would replace existing API calls to "api/v2/entities?entitySelector=type..." with "DQL and SmartScape"

Featured Posts