16 Jul 2024 09:40 AM
Hello,
Sometimes I need to do a Fieldsadd, to get extra fields from my query. So I assume there are default fetched fields, and extra?
Who can enlighten me?
KR Henk
Solved! Go to Solution.
29 Sep 2025 04:17 PM
I don't think there is a repo for all the fields present. What I typically do is pull an API call form the target entities and extract the metadata so I can then add in all the desired fields for the ADD Command.
29 Sep 2025 06:05 PM
Hi @henk_stobbe what I do is to click on options and then I see the Visibility and order section under Columns. For me is the easy way to verify all fields returned.
30 Sep 2025 01:14 AM
@henk_stobbe You can use the describe to extract the fields that are available for a data object
https://docs.dynatrace.com/docs/shortlink/data-source-commands#describe
From what I understand if you run a fetch against an object like "fetch dt.entity.host" or "dt.entity.kubernetes_cluster" it would by default fetch the entity.name and id fields . If you need the additional fields extracted , we would do a fieldsAdd of the needed fields .
I guess this is to ensures that only the most needed info is included in the initial query results, reducing unnecessary data transfer and to improve query performance ( Just my understanding, not a official DT statement)