<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: No longer able to easily lookup entity relationships in DQL as per the documentation in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Lookup-Entity-Relationships-in-Dynatrace-DQL-Queries/m-p/266646#M1578</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41155"&gt;@36Krazyfists&lt;/a&gt;&amp;nbsp;- in DQL it looks liek they went more specifc to call out the relationship types:&lt;/P&gt;&lt;P&gt;&amp;nbsp;fetch dt.entity.host&lt;BR /&gt;| filter entity.name == "NAME"&lt;BR /&gt;| fieldsAdd calls, called_by, instance_of, contains&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2025 15:38:39 GMT</pubDate>
    <dc:creator>ChadTurner</dc:creator>
    <dc:date>2025-01-03T15:38:39Z</dc:date>
    <item>
      <title>Lookup Entity Relationships in Dynatrace DQL Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/Lookup-Entity-Relationships-in-Dynatrace-DQL-Queries/m-p/238439#M684</link>
      <description>&lt;P&gt;In the DQL documentation (&lt;A href="https://docs.dynatrace.com/docs/platform/grail/querying-monitored-entities#describe-command" target="_blank" rel="noopener"&gt;here&lt;/A&gt;), it says that to find all the relationships of an entity, you can just use a command like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;describe dt.entity.service_instance
| filter in(data_types, "RELATIONSHIP")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this used to work just a few months ago (I even have a similar query saved in an old Notebook of mine that I would use as a template to quickly look up relationships for entities).&amp;nbsp; But as of at least this week (and who knows how long ago really since I hadn't tried using it in at least a couple of months), this query no longer works because there is no longer a &lt;STRONG&gt;data_types&lt;/STRONG&gt; field called &lt;STRONG&gt;RELATIONSHIP&lt;/STRONG&gt;.&amp;nbsp; All the fields that used to have a &lt;STRONG&gt;data_types&lt;/STRONG&gt; value of &lt;STRONG&gt;RELATIONSHIP&lt;/STRONG&gt; now have a value of &lt;STRONG&gt;record&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, good news is that by just swapping &lt;STRONG&gt;RELATIONSHIP&lt;/STRONG&gt; with &lt;STRONG&gt;record&lt;/STRONG&gt; in that query does seem to get you all of the relationships for an entity.&amp;nbsp; However, not all of the fields it returns seem to be relationships.&amp;nbsp; For example, if you &lt;STRONG&gt;describe&lt;/STRONG&gt; &lt;STRONG&gt;dt.entity.host&lt;/STRONG&gt; &lt;STRONG&gt;record&lt;/STRONG&gt; &lt;STRONG&gt;data_types&lt;/STRONG&gt;, you do get relationship fields like "&lt;STRONG&gt;belongs_to&lt;/STRONG&gt;", "&lt;STRONG&gt;called_by&lt;/STRONG&gt;", and "&lt;STRONG&gt;runs&lt;/STRONG&gt;", but you also get fields like "&lt;STRONG&gt;logSourceState&lt;/STRONG&gt;", "&lt;STRONG&gt;logPathLastUpdate&lt;/STRONG&gt;", "icon", and "&lt;STRONG&gt;additionalSystemInfo&lt;/STRONG&gt;" which, unless I'm mistaken, are not relationships.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, was this a mistake?&amp;nbsp; Do you guys plan to change relationship fields back to have a &lt;STRONG&gt;data_types&lt;/STRONG&gt; value of &lt;STRONG&gt;RELATIONSHIP&lt;/STRONG&gt;?&amp;nbsp; If not, please reconsider, as this made it super easy to find relationships (and&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;only&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;relationships) of an entity.&amp;nbsp; However, if this is a permanent change, please update the documentation to whatever is the new best way to list all the relationships of an entity.&amp;nbsp; Hopefully there's a way to do it other than looking for &lt;STRONG&gt;record&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;data_types&lt;/STRONG&gt;...&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 09:16:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Lookup-Entity-Relationships-in-Dynatrace-DQL-Queries/m-p/238439#M684</guid>
      <dc:creator>36Krazyfists</dc:creator>
      <dc:date>2025-12-19T09:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: No longer able to easily lookup entity relationships in DQL as per the documentation</title>
      <link>https://community.dynatrace.com/t5/DQL/Lookup-Entity-Relationships-in-Dynatrace-DQL-Queries/m-p/266646#M1578</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41155"&gt;@36Krazyfists&lt;/a&gt;&amp;nbsp;- in DQL it looks liek they went more specifc to call out the relationship types:&lt;/P&gt;&lt;P&gt;&amp;nbsp;fetch dt.entity.host&lt;BR /&gt;| filter entity.name == "NAME"&lt;BR /&gt;| fieldsAdd calls, called_by, instance_of, contains&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 15:38:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Lookup-Entity-Relationships-in-Dynatrace-DQL-Queries/m-p/266646#M1578</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2025-01-03T15:38:39Z</dc:date>
    </item>
  </channel>
</rss>

