<?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 Querying services related to an entity in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Querying-services-related-to-an-entity/m-p/243118#M823</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A customer has requested a particular functionality: to display in a table the list of services associated with a specific entity (hosts, processes, etc.).&lt;/P&gt;
&lt;P&gt;I would like to know if it is possible to perform this task using DQL language. I would appreciate any guidance or examples that you can provide me in this regard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2024 07:14:27 GMT</pubDate>
    <dc:creator>soportetr</dc:creator>
    <dc:date>2024-04-18T07:14:27Z</dc:date>
    <item>
      <title>Querying services related to an entity</title>
      <link>https://community.dynatrace.com/t5/DQL/Querying-services-related-to-an-entity/m-p/243118#M823</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A customer has requested a particular functionality: to display in a table the list of services associated with a specific entity (hosts, processes, etc.).&lt;/P&gt;
&lt;P&gt;I would like to know if it is possible to perform this task using DQL language. I would appreciate any guidance or examples that you can provide me in this regard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 07:14:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Querying-services-related-to-an-entity/m-p/243118#M823</guid>
      <dc:creator>soportetr</dc:creator>
      <dc:date>2024-04-18T07:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Querying services related to an entity</title>
      <link>https://community.dynatrace.com/t5/DQL/Querying-services-related-to-an-entity/m-p/243225#M824</link>
      <description>&lt;P&gt;You can use DQL native syntax:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.service
| filter matchesValue(runs_on[dt.entity.process_group],"PROCESS_GROUP-140E7EA6D10A29E1")&lt;/LI-CODE&gt;&lt;P&gt;But such queries can be slow until entites are stored in Grail too.&lt;/P&gt;&lt;P&gt;For now we recommend using &lt;STRONG&gt;&lt;EM&gt;classicEntitySelector&lt;/EM&gt; &lt;/STRONG&gt;function (where syntax of the filter should be known from classic Data Explorer which is BTW good place to test such expressions). Same result can be achieved this way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.service
| filter in(id, classicEntitySelector("type(service),fromRelationship.runsOn(type(PROCESS_GROUP),entityId(\"PROCESS_GROUP-140E7EA6D10A29E1\"))"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can explore relationship of specific service from its perspective:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.service
| filter id=="SERVICE-086610B2358E4225"
| fieldsAdd runs_on&lt;/LI-CODE&gt;&lt;P&gt;Then you get run_on showing all entities service runs on:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1713457429429.png" style="width: 785px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19185i7E7685CDE6B66F43/image-dimensions/785x263?v=v2" width="785" height="263" role="button" title="krzysztof_hoja_0-1713457429429.png" alt="krzysztof_hoja_0-1713457429429.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 16:24:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Querying-services-related-to-an-entity/m-p/243225#M824</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-04-18T16:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Querying services related to an entity</title>
      <link>https://community.dynatrace.com/t5/DQL/Querying-services-related-to-an-entity/m-p/243858#M834</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I managed to execute the query, however, a complex record appears and I don't get the results as you do. I share with you the following screenshot&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="query-related-service.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19384i43DD36EC3C98A18A/image-size/large?v=v2&amp;amp;px=999" role="button" title="query-related-service.png" alt="query-related-service.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Soport&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 16:17:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Querying-services-related-to-an-entity/m-p/243858#M834</guid>
      <dc:creator>soportetr</dc:creator>
      <dc:date>2024-04-24T16:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Querying services related to an entity</title>
      <link>https://community.dynatrace.com/t5/DQL/Querying-services-related-to-an-entity/m-p/243861#M835</link>
      <description>&lt;P&gt;My screenshot was take in Notebooks app where you can click on "complex record" and see what is inside (show link to menu):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1713975938504.png" style="width: 766px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19385i73C8680FA3388096/image-dimensions/766x203?v=v2" width="766" height="203" role="button" title="krzysztof_hoja_0-1713975938504.png" alt="krzysztof_hoja_0-1713975938504.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I checked and Dashboard app does not have such functionality.&lt;BR /&gt;&lt;BR /&gt;But when you know how fields are named in complex record, you can always extract them from it this way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fieldsAdd runs_on[dt.entity.host]&lt;/LI-CODE&gt;&lt;P&gt;Result in Dashboards looks like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_1-1713976104077.png" style="width: 765px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19386iC4A5D09830F027BB/image-dimensions/765x174?v=v2" width="765" height="174" role="button" title="krzysztof_hoja_1-1713976104077.png" alt="krzysztof_hoja_1-1713976104077.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 16:30:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Querying-services-related-to-an-entity/m-p/243861#M835</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-04-24T16:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Querying services related to an entity</title>
      <link>https://community.dynatrace.com/t5/DQL/Querying-services-related-to-an-entity/m-p/258653#M1313</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to run a DQL that displays the incoming or outgoing services or entities related to a service?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 04:54:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Querying-services-related-to-an-entity/m-p/258653#M1313</guid>
      <dc:creator>soportetr</dc:creator>
      <dc:date>2024-10-09T04:54:33Z</dc:date>
    </item>
  </channel>
</rss>

